Lines Matching defs:wqe_idx
694 unsigned int wqe_idx;
717 wqe_idx = (qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1);
727 wqe = hns_roce_get_send_wqe(qp, wqe_idx);
728 qp->sq.wrid[wqe_idx] = wr->wr_id;
801 u32 wqe_idx, u32 max_sge)
805 wqe = hns_roce_get_recv_wqe(hr_qp, wqe_idx);
816 u32 wqe_idx, nreq, max_sge;
846 wqe_idx = (hr_qp->rq.head + nreq) & (hr_qp->rq.wqe_cnt - 1);
847 fill_rq_wqe(hr_qp, wr, wqe_idx, max_sge);
848 hr_qp->rq.wrid[wqe_idx] = wr->wr_id;
912 static int get_srq_wqe_idx(struct hns_roce_srq *srq, u32 *wqe_idx)
922 *wqe_idx = pos;
926 static void fill_wqe_idx(struct hns_roce_srq *srq, unsigned int wqe_idx)
935 *buf = cpu_to_le32(wqe_idx);
960 u32 wqe_idx;
974 ret = get_srq_wqe_idx(srq, &wqe_idx);
980 wqe = get_srq_wqe_buf(srq, wqe_idx);
982 fill_wqe_idx(srq, wqe_idx);
983 srq->wrid[wqe_idx] = wr->wr_id;
3895 u16 wqe_idx;
3913 wqe_idx = hr_reg_read(cqe, CQE_WQE_IDX);
3923 wq->tail += (wqe_idx - (u16)wq->tail) &
3933 wc->wr_id = srq->wrid[wqe_idx];
3934 hns_roce_free_srq_wqe(srq, wqe_idx);