Home
last modified time | relevance | path

Searched refs:wqe_idx (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.4/drivers/infiniband/hw/i40iw/
Di40iw_uk.c51 u32 wqe_idx, peek_head; in i40iw_nop_1() local
57 wqe_idx = I40IW_RING_GETCURRENT_HEAD(qp->sq_ring); in i40iw_nop_1()
58 wqe = qp->sq_base[wqe_idx].elem; in i40iw_nop_1()
60 qp->sq_wrtrk_array[wqe_idx].wqe_size = I40IW_QP_WQE_MIN_SIZE; in i40iw_nop_1()
122 static void i40iw_qp_ring_push_db(struct i40iw_qp_uk *qp, u32 wqe_idx) in i40iw_qp_ring_push_db() argument
124 …set_32bit_val(qp->push_db, 0, LS_32((wqe_idx >> 2), I40E_PFPE_WQEALLOC_WQE_DESC_INDEX) | qp->qp_id… in i40iw_qp_ring_push_db()
135 u32 *wqe_idx, in i40iw_qp_get_next_send_wqe() argument
149 *wqe_idx = I40IW_RING_GETCURRENT_HEAD(qp->sq_ring); in i40iw_qp_get_next_send_wqe()
151 if (!*wqe_idx) in i40iw_qp_get_next_send_wqe()
153 wqe_ptr = (uintptr_t)qp->sq_base[*wqe_idx].elem; in i40iw_qp_get_next_send_wqe()
[all …]
Di40iw_puda.c48 static void i40iw_ilq_putback_rcvbuf(struct i40iw_sc_qp *qp, u32 wqe_idx);
109 static void i40iw_puda_post_recvbuf(struct i40iw_puda_rsrc *rsrc, u32 wqe_idx, in i40iw_puda_post_recvbuf() argument
116 qp->qp_uk.rq_wrid_array[wqe_idx] = (uintptr_t)buf; in i40iw_puda_post_recvbuf()
117 wqe = qp->qp_uk.rq_base[wqe_idx].elem; in i40iw_puda_post_recvbuf()
120 wqe_idx, buf, wqe); in i40iw_puda_post_recvbuf()
206 static u64 *i40iw_puda_get_next_send_wqe(struct i40iw_qp_uk *qp, u32 *wqe_idx) in i40iw_puda_get_next_send_wqe() argument
211 *wqe_idx = I40IW_RING_GETCURRENT_HEAD(qp->sq_ring); in i40iw_puda_get_next_send_wqe()
212 if (!*wqe_idx) in i40iw_puda_get_next_send_wqe()
217 wqe = qp->sq_base[*wqe_idx].elem; in i40iw_puda_get_next_send_wqe()
262 info->wqe_idx = (u32)RS_64(qword3, I40IW_CQ_WQEIDX); in i40iw_puda_poll_info()
[all …]
Di40iw_user.h407 u64 *i40iw_qp_get_next_send_wqe(struct i40iw_qp_uk *qp, u32 *wqe_idx,
412 u64 *i40iw_qp_get_next_recv_wqe(struct i40iw_qp_uk *qp, u32 *wqe_idx);
413 u64 *i40iw_qp_get_next_srq_wqe(struct i40iw_srq_uk *srq, u32 *wqe_idx);
Di40iw_ctrl.c605 u64 scratch, u32 *wqe_idx) in i40iw_sc_cqp_get_next_send_wqe_idx() argument
620 I40IW_ATOMIC_RING_MOVE_HEAD(cqp->sq_ring, *wqe_idx, ret_code); in i40iw_sc_cqp_get_next_send_wqe_idx()
624 if (!*wqe_idx) in i40iw_sc_cqp_get_next_send_wqe_idx()
627 wqe = cqp->sq_base[*wqe_idx].elem; in i40iw_sc_cqp_get_next_send_wqe_idx()
628 cqp->scratch_array[*wqe_idx] = scratch; in i40iw_sc_cqp_get_next_send_wqe_idx()
641 u32 wqe_idx; in i40iw_sc_cqp_get_next_send_wqe() local
643 return i40iw_sc_cqp_get_next_send_wqe_idx(cqp, scratch, &wqe_idx); in i40iw_sc_cqp_get_next_send_wqe()
726 u32 wqe_idx; in i40iw_sc_ccq_get_cqe_info() local
748 wqe_idx = (u32)RS_64(temp, I40IW_CQ_WQEIDX); in i40iw_sc_ccq_get_cqe_info()
749 info->scratch = cqp->scratch_array[wqe_idx]; in i40iw_sc_ccq_get_cqe_info()
[all …]
Di40iw_puda.h66 u32 wqe_idx; member
Di40iw_utils.c463 u32 i, pending_work, wqe_idx; in i40iw_cleanup_pending_cqp_op() local
466 wqe_idx = I40IW_RING_GETCURRENT_TAIL(cqp->sc_cqp.sq_ring); in i40iw_cleanup_pending_cqp_op()
468 cqp_request = (struct i40iw_cqp_request *)(unsigned long)cqp->scratch_array[wqe_idx]; in i40iw_cleanup_pending_cqp_op()
471 wqe_idx = (wqe_idx + 1) % I40IW_RING_GETSIZE(cqp->sc_cqp.sq_ring); in i40iw_cleanup_pending_cqp_op()
Di40iw_hw.c419 ctx_info->err_rq_idx = info->wqe_idx; in i40iw_process_aeq()
Di40iw_type.h759 u16 wqe_idx; member
/Linux-v5.4/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c1608 u32 qpn = 0, wqe_idx = 0; in ocrdma_discard_cqes() local
1641 wqe_idx = (le32_to_cpu(cqe->rq.buftag_qpn) >> in ocrdma_discard_cqes()
1644 BUG_ON(wqe_idx < 1); in ocrdma_discard_cqes()
1647 ocrdma_srq_toggle_bit(qp->srq, wqe_idx - 1); in ocrdma_discard_cqes()
2416 u32 wqe_idx) in ocrdma_update_wc() argument
2422 hdr = ocrdma_hwq_head_from_idx(&qp->sq, wqe_idx); in ocrdma_update_wc()
2424 ibwc->wr_id = qp->wqe_wr_id_tbl[wqe_idx].wrid; in ocrdma_update_wc()
2577 u32 wqe_idx; in ocrdma_poll_success_scqe() local
2588 wqe_idx = (le32_to_cpu(cqe->wq.wqeidx) & in ocrdma_poll_success_scqe()
2590 if (tail != wqe_idx) in ocrdma_poll_success_scqe()
[all …]
/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c6209 int wqe_idx; in find_empty_entry() local
6214 wqe_idx = find_first_zero_bit(idx_que->bitmap, size); in find_empty_entry()
6216 bitmap_set(idx_que->bitmap, wqe_idx, 1); in find_empty_entry()
6218 return wqe_idx; in find_empty_entry()
6222 int cur_idx, int wqe_idx) in fill_idx_queue() argument
6228 *addr = wqe_idx; in fill_idx_queue()
6241 int wqe_idx; in hns_roce_v2_post_srq_recv() local
6264 wqe_idx = find_empty_entry(&srq->idx_que, srq->max); in hns_roce_v2_post_srq_recv()
6265 if (wqe_idx < 0) { in hns_roce_v2_post_srq_recv()
6271 fill_idx_queue(&srq->idx_que, ind, wqe_idx); in hns_roce_v2_post_srq_recv()
[all …]