Lines Matching refs:nreq
2374 static int mlx4_wq_overflow(struct mlx4_ib_wq *wq, int nreq, struct ib_cq *ib_cq) in mlx4_wq_overflow() argument
2380 if (likely(cur + nreq < wq->max_post)) in mlx4_wq_overflow()
2388 return cur + nreq >= wq->max_post; in mlx4_wq_overflow()
2647 int nreq; in mlx4_ib_post_send() local
2664 nreq = 0; in mlx4_ib_post_send()
2670 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mlx4_ib_post_send()
2674 if (mlx4_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in mlx4_ib_post_send()
2687 qp->sq.wrid[(qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1)] = wr->wr_id; in mlx4_ib_post_send()
2924 if (likely(nreq)) { in mlx4_ib_post_send()
2925 qp->sq.head += nreq; in mlx4_ib_post_send()
2960 int nreq; in mlx4_ib_post_recv() local
2972 nreq = 0; in mlx4_ib_post_recv()
2978 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mlx4_ib_post_recv()
2979 if (mlx4_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { in mlx4_ib_post_recv()
3023 if (likely(nreq)) { in mlx4_ib_post_recv()
3024 qp->rq.head += nreq; in mlx4_ib_post_recv()