Lines Matching refs:nreq
3278 static int mlx4_wq_overflow(struct mlx4_ib_wq *wq, int nreq, struct ib_cq *ib_cq) in mlx4_wq_overflow() argument
3284 if (likely(cur + nreq < wq->max_post)) in mlx4_wq_overflow()
3292 return cur + nreq >= wq->max_post; in mlx4_wq_overflow()
3530 int nreq; in _mlx4_ib_post_send() local
3566 nreq = 0; in _mlx4_ib_post_send()
3572 for (nreq = 0; wr; ++nreq, wr = wr->next) { in _mlx4_ib_post_send()
3576 if (mlx4_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in _mlx4_ib_post_send()
3589 qp->sq.wrid[(qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1)] = wr->wr_id; in _mlx4_ib_post_send()
3815 if (likely(nreq)) { in _mlx4_ib_post_send()
3816 qp->sq.head += nreq; in _mlx4_ib_post_send()
3850 int nreq; in _mlx4_ib_post_recv() local
3863 nreq = 0; in _mlx4_ib_post_recv()
3869 for (nreq = 0; wr; ++nreq, wr = wr->next) { in _mlx4_ib_post_recv()
3870 if (mlx4_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { in _mlx4_ib_post_recv()
3914 if (likely(nreq)) { in _mlx4_ib_post_recv()
3915 qp->rq.head += nreq; in _mlx4_ib_post_recv()