Home
last modified time | relevance | path

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

/Linux-v4.19/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.c449 u32 i, pending_work, wqe_idx; in i40iw_cleanup_pending_cqp_op() local
452 wqe_idx = I40IW_RING_GETCURRENT_TAIL(cqp->sc_cqp.sq_ring); in i40iw_cleanup_pending_cqp_op()
454 cqp_request = (struct i40iw_cqp_request *)(unsigned long)cqp->scratch_array[wqe_idx]; in i40iw_cleanup_pending_cqp_op()
457 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-v4.19/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c1669 u32 qpn = 0, wqe_idx = 0; in ocrdma_discard_cqes() local
1702 wqe_idx = (le32_to_cpu(cqe->rq.buftag_qpn) >> in ocrdma_discard_cqes()
1705 BUG_ON(wqe_idx < 1); in ocrdma_discard_cqes()
1708 ocrdma_srq_toggle_bit(qp->srq, wqe_idx - 1); in ocrdma_discard_cqes()
2484 u32 wqe_idx) in ocrdma_update_wc() argument
2490 hdr = ocrdma_hwq_head_from_idx(&qp->sq, wqe_idx); in ocrdma_update_wc()
2492 ibwc->wr_id = qp->wqe_wr_id_tbl[wqe_idx].wrid; in ocrdma_update_wc()
2645 u32 wqe_idx; in ocrdma_poll_success_scqe() local
2656 wqe_idx = (le32_to_cpu(cqe->wq.wqeidx) & in ocrdma_poll_success_scqe()
2658 if (tail != wqe_idx) in ocrdma_poll_success_scqe()
[all …]