Lines Matching refs:nreq
3034 static int mlx5_wq_overflow(struct mlx5_ib_wq *wq, int nreq, struct ib_cq *ib_cq) in mlx5_wq_overflow() argument
3040 if (likely(cur + nreq < wq->max_post)) in mlx5_wq_overflow()
3048 return cur + nreq >= wq->max_post; in mlx5_wq_overflow()
3850 int *size, int nreq, int send_flags) in begin_wqe() argument
3852 if (unlikely(mlx5_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq))) in begin_wqe()
3875 int nreq, u8 fence, u8 next_fence, in finish_wqe() argument
3890 qp->sq.wqe_head[idx] = qp->sq.head + nreq; in finish_wqe()
3914 int nreq; in mlx5_ib_post_send() local
3931 nreq = 0; in mlx5_ib_post_send()
3935 for (nreq = 0; wr; nreq++, wr = wr->next) { in mlx5_ib_post_send()
3952 err = begin_wqe(qp, &seg, &ctrl, wr, &idx, &size, nreq, wr->send_flags); in mlx5_ib_post_send()
4018 nreq, get_fence(fence, wr), in mlx5_ib_post_send()
4025 &idx, &size, nreq, IB_SEND_SOLICITED); in mlx5_ib_post_send()
4043 nreq, get_fence(fence, wr), in mlx5_ib_post_send()
4046 &idx, &size, nreq, wr->send_flags); in mlx5_ib_post_send()
4065 nreq, get_fence(fence, wr), in mlx5_ib_post_send()
4170 finish_wqe(qp, ctrl, size, idx, wr->wr_id, nreq, in mlx5_ib_post_send()
4179 if (likely(nreq)) { in mlx5_ib_post_send()
4180 qp->sq.head += nreq; in mlx5_ib_post_send()
4221 int nreq; in mlx5_ib_post_recv() local
4233 nreq = 0; in mlx5_ib_post_recv()
4239 for (nreq = 0; wr; nreq++, wr = wr->next) { in mlx5_ib_post_recv()
4240 if (mlx5_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { in mlx5_ib_post_recv()
4276 if (likely(nreq)) { in mlx5_ib_post_recv()
4277 qp->rq.head += nreq; in mlx5_ib_post_recv()