Lines Matching refs:wq
103 static enum ib_wc_opcode get_umr_comp(struct mlx5_ib_wq *wq, int idx) in get_umr_comp() argument
105 switch (wq->wr_data[idx]) { in get_umr_comp()
122 struct mlx5_ib_wq *wq, int idx) in handle_good_req() argument
161 wc->opcode = get_umr_comp(wq, idx); in handle_good_req()
176 struct mlx5_ib_wq *wq; in handle_responder() local
198 wq = &qp->rq; in handle_responder()
199 wc->wr_id = wq->wrid[wq->tail & (wq->wqe_cnt - 1)]; in handle_responder()
200 ++wq->tail; in handle_responder()
418 struct mlx5_ib_wq *wq; in mlx5_poll_one() local
474 wq = &(*cur_qp)->sq; in mlx5_poll_one()
476 idx = wqe_ctr & (wq->wqe_cnt - 1); in mlx5_poll_one()
477 handle_good_req(wc, cqe64, wq, idx); in mlx5_poll_one()
478 handle_atomics(*cur_qp, cqe64, wq->last_poll, idx); in mlx5_poll_one()
479 wc->wr_id = wq->wrid[idx]; in mlx5_poll_one()
480 wq->tail = wq->wqe_head[idx] + 1; in mlx5_poll_one()
502 wq = &(*cur_qp)->sq; in mlx5_poll_one()
504 idx = wqe_ctr & (wq->wqe_cnt - 1); in mlx5_poll_one()
505 wc->wr_id = wq->wrid[idx]; in mlx5_poll_one()
506 wq->tail = wq->wqe_head[idx] + 1; in mlx5_poll_one()
516 wq = &(*cur_qp)->rq; in mlx5_poll_one()
517 wc->wr_id = wq->wrid[wq->tail & (wq->wqe_cnt - 1)]; in mlx5_poll_one()
518 ++wq->tail; in mlx5_poll_one()