Lines Matching refs:nreq
3281 static int mlx4_wq_overflow(struct mlx4_ib_wq *wq, int nreq, struct ib_cq *ib_cq) in mlx4_wq_overflow() argument
3287 if (likely(cur + nreq < wq->max_post)) in mlx4_wq_overflow()
3295 return cur + nreq >= wq->max_post; in mlx4_wq_overflow()
3533 int nreq; in _mlx4_ib_post_send() local
3569 nreq = 0; in _mlx4_ib_post_send()
3575 for (nreq = 0; wr; ++nreq, wr = wr->next) { in _mlx4_ib_post_send()
3579 if (mlx4_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in _mlx4_ib_post_send()
3592 qp->sq.wrid[(qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1)] = wr->wr_id; in _mlx4_ib_post_send()
3819 if (likely(nreq)) { in _mlx4_ib_post_send()
3820 qp->sq.head += nreq; in _mlx4_ib_post_send()
3854 int nreq; in _mlx4_ib_post_recv() local
3867 nreq = 0; in _mlx4_ib_post_recv()
3873 for (nreq = 0; wr; ++nreq, wr = wr->next) { in _mlx4_ib_post_recv()
3874 if (mlx4_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { in _mlx4_ib_post_recv()
3918 if (likely(nreq)) { in _mlx4_ib_post_recv()
3919 qp->rq.head += nreq; in _mlx4_ib_post_recv()