/kernel/linux/linux-5.10/include/linux/qed/ |
D | qed_chain.h | 60 u16 prod_idx; member 66 u32 prod_idx; member 188 return chain->u.chain16.prod_idx; in qed_chain_get_prod_idx() 198 return chain->u.chain32.prod_idx; in qed_chain_get_prod_idx_u32() 371 if ((p_chain->u.chain16.prod_idx & in qed_chain_produce() 373 p_prod_idx = &p_chain->u.chain16.prod_idx; in qed_chain_produce() 378 p_chain->u.chain16.prod_idx++; in qed_chain_produce() 380 if ((p_chain->u.chain32.prod_idx & in qed_chain_produce() 382 p_prod_idx = &p_chain->u.chain32.prod_idx; in qed_chain_produce() 387 p_chain->u.chain32.prod_idx++; in qed_chain_produce() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_qp.c | 54 #define SQ_DB_PI_HI(prod_idx) ((prod_idx) >> SQ_DB_PI_HI_SHIFT) argument 57 #define SQ_DB_PI_LOW(prod_idx) ((prod_idx) & SQ_DB_PI_LOW_MASK) argument 102 pi_start = atomic_read(&wq->prod_idx); in hinic_sq_prepare_ctxt() 164 pi_start = atomic_read(&wq->prod_idx); in hinic_rq_prepare_ctxt() 476 static void sq_prepare_ctrl(struct hinic_sq_ctrl *ctrl, u16 prod_idx, in sq_prepare_ctrl() argument 597 void hinic_sq_prepare_wqe(struct hinic_sq *sq, u16 prod_idx, in hinic_sq_prepare_wqe() argument 603 sq_prepare_ctrl(&sq_wqe->ctrl, prod_idx, nr_sges); in hinic_sq_prepare_wqe() 619 static u32 sq_prepare_db(struct hinic_sq *sq, u16 prod_idx, unsigned int cos) in sq_prepare_db() argument 622 u8 hi_prod_idx = SQ_DB_PI_HI(SQ_MASKED_IDX(sq, prod_idx)); in sq_prepare_db() 639 void hinic_sq_write_db(struct hinic_sq *sq, u16 prod_idx, unsigned int wqe_size, in hinic_sq_write_db() argument [all …]
|
D | hinic_hw_qp.h | 178 void hinic_sq_prepare_wqe(struct hinic_sq *sq, u16 prod_idx, 182 void hinic_sq_write_db(struct hinic_sq *sq, u16 prod_idx, unsigned int wqe_size, 186 unsigned int wqe_size, u16 *prod_idx); 190 void hinic_sq_write_wqe(struct hinic_sq *sq, u16 prod_idx, 208 unsigned int wqe_size, u16 *prod_idx); 210 void hinic_rq_write_wqe(struct hinic_rq *rq, u16 prod_idx, 228 void hinic_rq_prepare_wqe(struct hinic_rq *rq, u16 prod_idx, 231 void hinic_rq_update(struct hinic_rq *rq, u16 prod_idx);
|
D | hinic_hw_api_cmd.c | 93 u32 addr, prod_idx; in set_prod_idx() local 96 prod_idx = hinic_hwif_read_reg(hwif, addr); in set_prod_idx() 98 prod_idx = HINIC_API_CMD_PI_CLEAR(prod_idx, IDX); in set_prod_idx() 100 prod_idx |= HINIC_API_CMD_PI_SET(chain->prod_idx, IDX); in set_prod_idx() 102 hinic_hwif_write_reg(hwif, addr, prod_idx); in set_prod_idx() 145 u32 prod_idx; in chain_busy() local 150 prod_idx = chain->prod_idx; in chain_busy() 153 if (chain->cons_idx == MASKED_IDX(chain, prod_idx + 1)) { in chain_busy() 156 chain->prod_idx); in chain_busy() 231 cell_ctxt = &chain->cell_ctxt[chain->prod_idx]; in prepare_api_cmd() [all …]
|
D | hinic_hw_cmdq.c | 184 enum hinic_mod_type mod, u8 cmd, u16 prod_idx, in cmdq_prepare_wqe_ctrl() argument 209 ctrl->ctrl_info = HINIC_CMDQ_CTRL_SET(prod_idx, PI) | in cmdq_prepare_wqe_ctrl() 253 enum hinic_mod_type mod, u8 cmd, u16 prod_idx) in cmdq_set_lcmd_wqe() argument 270 prod_idx, complete_format, DATA_SGE, in cmdq_set_lcmd_wqe() 281 enum hinic_mod_type mod, u8 cmd, u16 prod_idx) in cmdq_set_direct_wqe() argument 300 cmdq_prepare_wqe_ctrl(wqe, wrapped, ack_type, mod, cmd, prod_idx, in cmdq_set_direct_wqe() 317 enum hinic_cmdq_type cmdq_type, u16 prod_idx) in cmdq_fill_db() argument 319 *db_info = HINIC_CMDQ_DB_INFO_SET(UPPER_8_BITS(prod_idx), HI_PROD_IDX) | in cmdq_fill_db() 326 enum hinic_cmdq_type cmdq_type, u16 prod_idx) in cmdq_set_db() argument 330 cmdq_fill_db(&db_info, cmdq_type, prod_idx); in cmdq_set_db() [all …]
|
D | hinic_hw_wq.c | 564 atomic_set(&wq->prod_idx, 0); in hinic_wq_allocate() 668 atomic_set(&wq[i].prod_idx, 0); in hinic_wqs_cmdq_alloc() 742 u16 *prod_idx) in hinic_get_wqe() argument 747 *prod_idx = MASKED_WQE_IDX(wq, atomic_read(&wq->prod_idx)); in hinic_get_wqe() 756 end_prod_idx = atomic_add_return(num_wqebbs, &wq->prod_idx); in hinic_get_wqe() 768 *prod_idx = curr_prod_idx; in hinic_get_wqe() 773 if (curr_pg != end_pg || end_prod_idx < *prod_idx) { in hinic_get_wqe() 776 copy_wqe_to_shadow(wq, shadow_addr, num_wqebbs, *prod_idx); in hinic_get_wqe() 778 wq->shadow_idx[curr_pg] = *prod_idx; in hinic_get_wqe() 782 return WQ_PAGE_ADDR(wq, *prod_idx) + WQE_PAGE_OFF(wq, *prod_idx); in hinic_get_wqe() [all …]
|
D | hinic_tx.c | 492 u16 prod_idx, q_id = skb->queue_mapping; in hinic_lb_xmit_frame() local 510 sq_wqe = hinic_sq_get_wqe(txq->sq, wqe_size, &prod_idx); in hinic_lb_xmit_frame() 514 sq_wqe = hinic_sq_get_wqe(txq->sq, wqe_size, &prod_idx); in hinic_lb_xmit_frame() 531 hinic_sq_prepare_wqe(txq->sq, prod_idx, sq_wqe, txq->sges, nr_sges); in hinic_lb_xmit_frame() 532 hinic_sq_write_wqe(txq->sq, prod_idx, sq_wqe, skb, wqe_size); in hinic_lb_xmit_frame() 537 hinic_sq_write_db(txq->sq, prod_idx, wqe_size, 0); in hinic_lb_xmit_frame() 553 u16 prod_idx, q_id = skb->queue_mapping; in hinic_xmit_frame() local 591 sq_wqe = hinic_sq_get_wqe(txq->sq, wqe_size, &prod_idx); in hinic_xmit_frame() 598 sq_wqe = hinic_sq_get_wqe(txq->sq, wqe_size, &prod_idx); in hinic_xmit_frame() 615 hinic_sq_prepare_wqe(txq->sq, prod_idx, sq_wqe, txq->sges, nr_sges); in hinic_xmit_frame() [all …]
|
D | hinic_hw_wq.h | 45 atomic_t prod_idx; member 97 u16 *prod_idx);
|
D | hinic_rx.c | 202 u16 prod_idx; in rx_alloc_pkts() local 221 &prod_idx); in rx_alloc_pkts() 227 hinic_rq_prepare_wqe(rxq->rq, prod_idx, rq_wqe, &sge); in rx_alloc_pkts() 229 hinic_rq_write_wqe(rxq->rq, prod_idx, rq_wqe, skb); in rx_alloc_pkts() 236 hinic_rq_update(rxq->rq, prod_idx); in rx_alloc_pkts()
|
D | hinic_debugfs.c | 31 return atomic_read(&wq->prod_idx) & wq->mask; in hinic_dbg_get_sq_info() 65 return atomic_read(&wq->prod_idx) & wq->mask; in hinic_dbg_get_rq_info()
|
D | hinic_hw_api_cmd.h | 180 u32 prod_idx; member
|
D | hinic_main.c | 836 sw_pi = atomic_read(&sq->wq->prod_idx) & sq->wq->mask; in hinic_tx_timeout()
|
/kernel/linux/linux-5.10/drivers/scsi/qedi/ |
D | qedi_debugfs.c | 142 u16 prod_idx; in qedi_gbl_ctx_show() local 154 prod_idx = (sb->pi_array[QEDI_PROTO_CQ_PROD_IDX] & in qedi_gbl_ctx_show() 156 seq_printf(s, "SB PROD IDX: %d\n", prod_idx); in qedi_gbl_ctx_show()
|
D | qedi_main.c | 1267 u16 prod_idx; in qedi_process_completions() local 1274 prod_idx = sb->pi_array[QEDI_PROTO_CQ_PROD_IDX]; in qedi_process_completions() 1276 if (prod_idx >= QEDI_CQ_SIZE) in qedi_process_completions() 1277 prod_idx = prod_idx % QEDI_CQ_SIZE; in qedi_process_completions() 1282 que, prod_idx, que->cq_cons_idx, fp->sb_id); in qedi_process_completions() 1292 while (que->cq_cons_idx != prod_idx) { in qedi_process_completions() 1297 cqe, prod_idx, que->cq_cons_idx); in qedi_process_completions() 1321 u16 prod_idx; in qedi_fp_has_work() local 1326 prod_idx = sb->pi_array[QEDI_PROTO_CQ_PROD_IDX]; in qedi_fp_has_work() 1332 if (prod_idx >= QEDI_CQ_SIZE) in qedi_fp_has_work() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/emac/ |
D | emac-mac.c | 907 u32 prod_idx = (rx_q->rfd.produce_idx << rx_q->produce_shift) & in emac_mac_rx_descs_refill() local 910 rx_q->produce_mask, prod_idx); in emac_mac_rx_descs_refill() 1439 u32 prod_idx; in emac_mac_tx_buf_send() local 1474 prod_idx = (tx_q->tpd.produce_idx << tx_q->produce_shift) & in emac_mac_tx_buf_send() 1477 tx_q->produce_mask, prod_idx); in emac_mac_tx_buf_send()
|
/kernel/linux/linux-5.10/drivers/scsi/qedf/ |
D | qedf_main.c | 2192 u16 prod_idx; in qedf_fp_has_work() local 2201 prod_idx = sb->pi_array[QEDF_FCOE_PARAMS_GL_RQ_PI]; in qedf_fp_has_work() 2203 return (que->cq_prod_idx != prod_idx); in qedf_fp_has_work() 2220 u16 prod_idx; in qedf_process_completions() local 2231 prod_idx = sb->pi_array[QEDF_FCOE_PARAMS_GL_RQ_PI]; in qedf_process_completions() 2237 new_cqes = (prod_idx >= que->cq_prod_idx) ? in qedf_process_completions() 2238 (prod_idx - que->cq_prod_idx) : in qedf_process_completions() 2239 0x10000 - que->cq_prod_idx + prod_idx; in qedf_process_completions() 2242 que->cq_prod_idx = prod_idx; in qedf_process_completions()
|
/kernel/linux/linux-5.10/drivers/scsi/bnx2i/ |
D | bnx2i.h | 548 u16 prod_idx; member
|
D | bnx2i_hwi.c | 250 rq_db->prod_idx = ep->qp.rq_prod_idx; in bnx2i_put_rq_buf() 277 sq_db->prod_idx = ep->qp.sq_prod_idx; in bnx2i_ring_sq_dbell()
|
/kernel/linux/linux-5.10/drivers/staging/qlge/ |
D | qlge_main.c | 2560 tx_ring_desc = &tx_ring->q[tx_ring->prod_idx]; in qlge_send() 2596 tx_ring->prod_idx++; in qlge_send() 2597 if (tx_ring->prod_idx == tx_ring->wq_len) in qlge_send() 2598 tx_ring->prod_idx = 0; in qlge_send() 2601 ql_write_db_reg_relaxed(tx_ring->prod_idx, tx_ring->prod_idx_db_reg); in qlge_send() 2604 tx_ring->prod_idx, skb->len); in qlge_send() 3096 tx_ring->prod_idx = 0; in ql_start_tx_ring()
|
D | qlge.h | 1058 u32 prod_idx; /* 0x00 */ member 1383 u16 prod_idx; /* current value for prod idx */ member
|
D | qlge_dbg.c | 1653 netdev_err(qdev->ndev, "tx_ring->prod_idx = %d\n", tx_ring->prod_idx); in ql_dump_tx_ring()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/ |
D | roce_hsi.h | 1055 __le32 prod_idx; member 1062 __le32 prod_idx; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
D | qed_ll2.c | 1816 u16 prod_idx = qed_chain_get_prod_idx(p_tx_chain); in qed_ll2_prepare_tx_packet_set_bd() local 1878 prod_idx, in qed_ll2_prepare_tx_packet_set_bd()
|