Lines Matching refs:nreq
2688 static int mlx4_wq_overflow(struct mlx4_ib_wq *wq, int nreq, struct ib_cq *ib_cq) in mlx4_wq_overflow() argument
2694 if (likely(cur + nreq < wq->max_post)) in mlx4_wq_overflow()
2702 return cur + nreq >= wq->max_post; in mlx4_wq_overflow()
2939 int nreq; in mlx4_ib_post_send() local
2979 nreq = 0; in mlx4_ib_post_send()
2985 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mlx4_ib_post_send()
2989 if (mlx4_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in mlx4_ib_post_send()
3002 qp->sq.wrid[(qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1)] = wr->wr_id; in mlx4_ib_post_send()
3237 if (likely(nreq)) { in mlx4_ib_post_send()
3238 qp->sq.head += nreq; in mlx4_ib_post_send()
3273 int nreq; in mlx4_ib_post_recv() local
3285 nreq = 0; in mlx4_ib_post_recv()
3291 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mlx4_ib_post_recv()
3292 if (mlx4_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { in mlx4_ib_post_recv()
3336 if (likely(nreq)) { in mlx4_ib_post_recv()
3337 qp->rq.head += nreq; in mlx4_ib_post_recv()