Lines Matching refs:wq
121 struct mlx5_ib_wq *wq = send ? &qp->sq : &qp->rq; in mlx5_ib_read_user_wqe() local
129 if (wq->wqe_cnt == 0) { in mlx5_ib_read_user_wqe()
135 offset = wq->offset + ((wqe_index % wq->wqe_cnt) << wq->wqe_shift); in mlx5_ib_read_user_wqe()
136 wq_end = wq->offset + (wq->wqe_cnt << wq->wqe_shift); in mlx5_ib_read_user_wqe()
156 wqe_length = 1 << wq->wqe_shift; in mlx5_ib_read_user_wqe()
162 ret = ib_umem_copy_from(buffer + first_copy_length, umem, wq->offset, in mlx5_ib_read_user_wqe()
1813 static int mlx5_wq_overflow(struct mlx5_ib_wq *wq, int nreq, struct ib_cq *ib_cq) in mlx5_wq_overflow() argument
1818 cur = wq->head - wq->tail; in mlx5_wq_overflow()
1819 if (likely(cur + nreq < wq->max_post)) in mlx5_wq_overflow()
1824 cur = wq->head - wq->tail; in mlx5_wq_overflow()
1827 return cur + nreq >= wq->max_post; in mlx5_wq_overflow()