Lines Matching refs:wq
126 struct mlx5_ib_wq *wq = send ? &qp->sq : &qp->rq; in mlx5_ib_read_user_wqe() local
134 if (wq->wqe_cnt == 0) { in mlx5_ib_read_user_wqe()
140 offset = wq->offset + ((wqe_index % wq->wqe_cnt) << wq->wqe_shift); in mlx5_ib_read_user_wqe()
141 wq_end = wq->offset + (wq->wqe_cnt << wq->wqe_shift); in mlx5_ib_read_user_wqe()
161 wqe_length = 1 << wq->wqe_shift; in mlx5_ib_read_user_wqe()
167 ret = ib_umem_copy_from(buffer + first_copy_length, umem, wq->offset, in mlx5_ib_read_user_wqe()
1825 static int mlx5_wq_overflow(struct mlx5_ib_wq *wq, int nreq, struct ib_cq *ib_cq) in mlx5_wq_overflow() argument
1830 cur = wq->head - wq->tail; in mlx5_wq_overflow()
1831 if (likely(cur + nreq < wq->max_post)) in mlx5_wq_overflow()
1836 cur = wq->head - wq->tail; in mlx5_wq_overflow()
1839 return cur + nreq >= wq->max_post; in mlx5_wq_overflow()