| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/i40iw/ |
| H A D | i40iw_uk.c | 51 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 …]
|
| H A D | i40iw_puda.c | 48 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 …]
|
| H A D | i40iw_user.h | 407 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);
|
| H A D | i40iw_ctrl.c | 605 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 …]
|
| H A D | i40iw_utils.c | 461 u32 i, pending_work, wqe_idx; in i40iw_cleanup_pending_cqp_op() local 464 wqe_idx = I40IW_RING_GETCURRENT_TAIL(cqp->sc_cqp.sq_ring); in i40iw_cleanup_pending_cqp_op() 466 cqp_request = (struct i40iw_cqp_request *)(unsigned long)cqp->scratch_array[wqe_idx]; in i40iw_cleanup_pending_cqp_op() 469 wqe_idx = (wqe_idx + 1) % I40IW_RING_GETSIZE(cqp->sc_cqp.sq_ring); in i40iw_cleanup_pending_cqp_op()
|
| H A D | i40iw_puda.h | 66 u32 wqe_idx; member
|
| H A D | i40iw_hw.c | 418 ctx_info->err_rq_idx = info->wqe_idx; in i40iw_process_aeq()
|
| H A D | i40iw_type.h | 766 u16 wqe_idx; member
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/ocrdma/ |
| H A D | ocrdma_verbs.c | 1593 u32 qpn = 0, wqe_idx = 0; in ocrdma_discard_cqes() local 1626 wqe_idx = (le32_to_cpu(cqe->rq.buftag_qpn) >> in ocrdma_discard_cqes() 1629 BUG_ON(wqe_idx < 1); in ocrdma_discard_cqes() 1632 ocrdma_srq_toggle_bit(qp->srq, wqe_idx - 1); in ocrdma_discard_cqes() 2402 u32 wqe_idx) in ocrdma_update_wc() argument 2408 hdr = ocrdma_hwq_head_from_idx(&qp->sq, wqe_idx); in ocrdma_update_wc() 2410 ibwc->wr_id = qp->wqe_wr_id_tbl[wqe_idx].wrid; in ocrdma_update_wc() 2563 u32 wqe_idx; in ocrdma_poll_success_scqe() local 2574 wqe_idx = (le32_to_cpu(cqe->wq.wqeidx) & in ocrdma_poll_success_scqe() 2576 if (tail != wqe_idx) in ocrdma_poll_success_scqe() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/hns/ |
| H A D | hns_roce_hw_v2.c | 643 unsigned int wqe_idx; in hns_roce_v2_post_send() local 666 wqe_idx = (qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1); in hns_roce_v2_post_send() 676 wqe = hns_roce_get_send_wqe(qp, wqe_idx); in hns_roce_v2_post_send() 677 qp->sq.wrid[wqe_idx] = wr->wr_id; in hns_roce_v2_post_send() 729 u32 wqe_idx; in hns_roce_v2_post_recv() local 751 wqe_idx = (hr_qp->rq.head + nreq) & (hr_qp->rq.wqe_cnt - 1); in hns_roce_v2_post_recv() 761 wqe = hns_roce_get_recv_wqe(hr_qp, wqe_idx); in hns_roce_v2_post_recv() 777 sge_list = hr_qp->rq_inl_buf.wqe_list[wqe_idx].sg_list; in hns_roce_v2_post_recv() 778 hr_qp->rq_inl_buf.wqe_list[wqe_idx].sge_cnt = in hns_roce_v2_post_recv() 787 hr_qp->rq.wrid[wqe_idx] = wr->wr_id; in hns_roce_v2_post_recv() [all …]
|
| H A D | hns_roce_hw_v1.c | 79 u32 wqe_idx; in hns_roce_v1_post_send() local 99 wqe_idx = (qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1); in hns_roce_v1_post_send() 109 wqe = hns_roce_get_send_wqe(qp, wqe_idx); in hns_roce_v1_post_send() 110 qp->sq.wrid[wqe_idx] = wr->wr_id; in hns_roce_v1_post_send() 354 unsigned int wqe_idx; in hns_roce_v1_post_recv() local 370 wqe_idx = (hr_qp->rq.head + nreq) & (hr_qp->rq.wqe_cnt - 1); in hns_roce_v1_post_recv() 380 ctrl = hns_roce_get_recv_wqe(hr_qp, wqe_idx); in hns_roce_v1_post_recv() 392 hr_qp->rq.wrid[wqe_idx] = wr->wr_id; in hns_roce_v1_post_recv()
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/bnxt_re/ |
| H A D | qplib_fp.c | 1712 u32 wqe_idx; in bnxt_qplib_post_send() local 1735 swq = bnxt_qplib_get_swqe(sq, &wqe_idx); in bnxt_qplib_post_send() 1924 bnxt_qplib_swq_mod_start(sq, wqe_idx); in bnxt_qplib_post_send() 1962 u32 wqe_idx; in bnxt_qplib_post_recv() local 1981 swq = bnxt_qplib_get_swqe(rq, &wqe_idx); in bnxt_qplib_post_recv() 2010 base_hdr->wr_id[0] = cpu_to_le32(wqe_idx); in bnxt_qplib_post_recv() 2012 bnxt_qplib_swq_mod_start(rq, wqe_idx); in bnxt_qplib_post_recv()
|