Lines Matching refs:wqe_idx
698 unsigned int wqe_idx;
721 wqe_idx = (qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1);
731 wqe = hns_roce_get_send_wqe(qp, wqe_idx);
732 qp->sq.wrid[wqe_idx] = wr->wr_id;
805 u32 wqe_idx, u32 max_sge)
809 wqe = hns_roce_get_recv_wqe(hr_qp, wqe_idx);
820 u32 wqe_idx, nreq, max_sge;
850 wqe_idx = (hr_qp->rq.head + nreq) & (hr_qp->rq.wqe_cnt - 1);
851 fill_rq_wqe(hr_qp, wr, wqe_idx, max_sge);
852 hr_qp->rq.wrid[wqe_idx] = wr->wr_id;
916 static int get_srq_wqe_idx(struct hns_roce_srq *srq, u32 *wqe_idx)
926 *wqe_idx = pos;
930 static void fill_wqe_idx(struct hns_roce_srq *srq, unsigned int wqe_idx)
939 *buf = cpu_to_le32(wqe_idx);
964 u32 wqe_idx;
978 ret = get_srq_wqe_idx(srq, &wqe_idx);
984 wqe = get_srq_wqe_buf(srq, wqe_idx);
986 fill_wqe_idx(srq, wqe_idx);
987 srq->wrid[wqe_idx] = wr->wr_id;
3892 u16 wqe_idx;
3910 wqe_idx = hr_reg_read(cqe, CQE_WQE_IDX);
3920 wq->tail += (wqe_idx - (u16)wq->tail) &
3930 wc->wr_id = srq->wrid[wqe_idx];
3931 hns_roce_free_srq_wqe(srq, wqe_idx);