Lines Matching refs:wq
102 static enum ib_wc_opcode get_umr_comp(struct mlx5_ib_wq *wq, int idx) in get_umr_comp() argument
104 switch (wq->wr_data[idx]) { in get_umr_comp()
121 struct mlx5_ib_wq *wq, int idx) in handle_good_req() argument
160 wc->opcode = get_umr_comp(wq, idx); in handle_good_req()
175 struct mlx5_ib_wq *wq; in handle_responder() local
197 wq = &qp->rq; in handle_responder()
198 wc->wr_id = wq->wrid[wq->tail & (wq->wqe_cnt - 1)]; in handle_responder()
199 ++wq->tail; in handle_responder()
410 struct mlx5_ib_wq *wq; in mlx5_poll_one() local
466 wq = &(*cur_qp)->sq; in mlx5_poll_one()
468 idx = wqe_ctr & (wq->wqe_cnt - 1); in mlx5_poll_one()
469 handle_good_req(wc, cqe64, wq, idx); in mlx5_poll_one()
470 handle_atomics(*cur_qp, cqe64, wq->last_poll, idx); in mlx5_poll_one()
471 wc->wr_id = wq->wrid[idx]; in mlx5_poll_one()
472 wq->tail = wq->wqe_head[idx] + 1; in mlx5_poll_one()
494 wq = &(*cur_qp)->sq; in mlx5_poll_one()
496 idx = wqe_ctr & (wq->wqe_cnt - 1); in mlx5_poll_one()
497 wc->wr_id = wq->wrid[idx]; in mlx5_poll_one()
498 wq->tail = wq->wqe_head[idx] + 1; in mlx5_poll_one()
508 wq = &(*cur_qp)->rq; in mlx5_poll_one()
509 wc->wr_id = wq->wrid[wq->tail & (wq->wqe_cnt - 1)]; in mlx5_poll_one()
510 ++wq->tail; in mlx5_poll_one()