Lines Matching refs:nreq
3241 static int mlx4_wq_overflow(struct mlx4_ib_wq *wq, int nreq, struct ib_cq *ib_cq) in mlx4_wq_overflow() argument
3247 if (likely(cur + nreq < wq->max_post)) in mlx4_wq_overflow()
3255 return cur + nreq >= wq->max_post; in mlx4_wq_overflow()
3493 int nreq; in _mlx4_ib_post_send() local
3529 nreq = 0; in _mlx4_ib_post_send()
3535 for (nreq = 0; wr; ++nreq, wr = wr->next) { in _mlx4_ib_post_send()
3539 if (mlx4_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in _mlx4_ib_post_send()
3552 qp->sq.wrid[(qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1)] = wr->wr_id; in _mlx4_ib_post_send()
3778 if (likely(nreq)) { in _mlx4_ib_post_send()
3779 qp->sq.head += nreq; in _mlx4_ib_post_send()
3813 int nreq; in _mlx4_ib_post_recv() local
3826 nreq = 0; in _mlx4_ib_post_recv()
3832 for (nreq = 0; wr; ++nreq, wr = wr->next) { in _mlx4_ib_post_recv()
3833 if (mlx4_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { in _mlx4_ib_post_recv()
3877 if (likely(nreq)) { in _mlx4_ib_post_recv()
3878 qp->rq.head += nreq; in _mlx4_ib_post_recv()