Lines Matching refs:sw_prod
680 u32 sw_prod, sw_cons, count = 0; in bnxt_qplib_modify_srq() local
682 sw_prod = HWQ_CMP(srq_hwq->prod, srq_hwq); in bnxt_qplib_modify_srq()
685 count = sw_prod > sw_cons ? sw_prod - sw_cons : in bnxt_qplib_modify_srq()
686 srq_hwq->max_elements - sw_cons + sw_prod; in bnxt_qplib_modify_srq()
731 u32 sw_prod, sw_cons, count = 0; in bnxt_qplib_post_srq_recv() local
746 sw_prod = HWQ_CMP(srq_hwq->prod, srq_hwq); in bnxt_qplib_post_srq_recv()
747 srqe = bnxt_qplib_get_qe(srq_hwq, sw_prod, NULL); in bnxt_qplib_post_srq_recv()
766 sw_prod = HWQ_CMP(srq_hwq->prod, srq_hwq); in bnxt_qplib_post_srq_recv()
772 count = sw_prod > sw_cons ? sw_prod - sw_cons : in bnxt_qplib_post_srq_recv()
773 srq_hwq->max_elements - sw_cons + sw_prod; in bnxt_qplib_post_srq_recv()
1505 u32 sw_prod; in bnxt_qplib_get_qp1_sq_buf() local
1510 sw_prod = sq->swq_start; in bnxt_qplib_get_qp1_sq_buf()
1512 sw_prod * qp->sq_hdr_buf_size); in bnxt_qplib_get_qp1_sq_buf()
1515 return qp->sq_hdr_buf + sw_prod * sge->size; in bnxt_qplib_get_qp1_sq_buf()
1536 u32 sw_prod; in bnxt_qplib_get_qp1_rq_buf() local
1541 sw_prod = rq->swq_start; in bnxt_qplib_get_qp1_rq_buf()
1543 sw_prod * qp->rq_hdr_buf_size); in bnxt_qplib_get_qp1_rq_buf()
1546 return qp->rq_hdr_buf + sw_prod * sge->size; in bnxt_qplib_get_qp1_rq_buf()