Lines Matching refs:nreq
173 static int mlx5_wq_overflow(struct mlx5_wq *wq, int nreq, struct mlx5_cq *cq) in mlx5_wq_overflow() argument
178 if (cur + nreq < wq->max_post) in mlx5_wq_overflow()
185 return cur + nreq >= wq->max_post; in mlx5_wq_overflow()
622 int nreq; in _mlx5_post_send() local
642 for (nreq = 0; wr; ++nreq, wr = wr->next) { in _mlx5_post_send()
651 if (unlikely(mlx5_wq_overflow(&qp->sq, nreq, in _mlx5_post_send()
910 qp->sq.wqe_head[idx] = qp->sq.head + nreq; in _mlx5_post_send()
920 if (likely(nreq)) { in _mlx5_post_send()
921 qp->sq.head += nreq; in _mlx5_post_send()
939 if (!ctx->shut_up_bf && nreq == 1 && bf->uuarn && in _mlx5_post_send()
1067 int nreq; in mlx5_post_wq_recv() local
1076 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mlx5_post_wq_recv()
1077 if (unlikely(mlx5_wq_overflow(&rwq->rq, nreq, in mlx5_post_wq_recv()
1119 if (likely(nreq)) { in mlx5_post_wq_recv()
1120 rwq->rq.head += nreq; in mlx5_post_wq_recv()
1140 int nreq; in mlx5_post_recv() local
1149 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mlx5_post_recv()
1150 if (unlikely(mlx5_wq_overflow(&qp->rq, nreq, in mlx5_post_recv()
1192 if (likely(nreq)) { in mlx5_post_recv()
1193 qp->rq.head += nreq; in mlx5_post_recv()