/linux-6.12.1/drivers/net/ethernet/cavium/liquidio/ |
D | request_manager.c | 39 static void __check_db_timeout(struct octeon_device *oct, u64 iq_no); 53 u32 iq_no = (u32)txpciq.s.q_no; in octeon_init_instr_queue() local 73 iq = oct->instr_queue[iq_no]; in octeon_init_instr_queue() 80 iq_no); in octeon_init_instr_queue() 96 iq_no); in octeon_init_instr_queue() 101 iq_no, iq->base_addr, &iq->base_addr_dma, iq->max_count); in octeon_init_instr_queue() 117 if (iq_no == 0) { in octeon_init_instr_queue() 126 oct->io_qmask.iq |= BIT_ULL(iq_no); in octeon_init_instr_queue() 129 oct->io_qmask.iq64B |= ((conf->instr_type == 64) << iq_no); in octeon_init_instr_queue() 132 oct->fn_list.setup_iq_regs(oct, iq_no); in octeon_init_instr_queue() [all …]
|
D | octeon_iq.h | 296 u32 iq_no; member 324 #define INCR_INSTRQUEUE_PKT_COUNT(octeon_dev_ptr, iq_no, field, count) \ argument 325 (((octeon_dev_ptr)->instr_queue[iq_no]->stats.field) += count) 362 int octeon_delete_instr_queue(struct octeon_device *octeon_dev, u32 iq_no); 367 octeon_ring_doorbell_locked(struct octeon_device *oct, u32 iq_no); 377 int octeon_send_command(struct octeon_device *oct, u32 iq_no, 391 int q_index, union oct_txpciq iq_no, u32 num_descs,
|
D | octeon_nic.h | 53 u64 iq_no; member 94 u32 iq_no:8; member 140 port = (int)oct->instr_queue[setup->s.iq_no]->txpciq.s.port; in octnet_prepare_pci_cmd_o2() 191 ih3->pkind = oct->instr_queue[setup->s.iq_no]->txpciq.s.pkind; in octnet_prepare_pci_cmd_o3() 206 pki_ih3->uqpg = oct->instr_queue[setup->s.iq_no]->txpciq.s.use_qpg; in octnet_prepare_pci_cmd_o3() 208 port = (int)oct->instr_queue[setup->s.iq_no]->txpciq.s.port; in octnet_prepare_pci_cmd_o3() 216 pki_ih3->qpg = oct->instr_queue[setup->s.iq_no]->txpciq.s.qpg; in octnet_prepare_pci_cmd_o3()
|
D | cn66xx_device.c | 264 void lio_cn6xxx_setup_iq_regs(struct octeon_device *oct, u32 iq_no) in lio_cn6xxx_setup_iq_regs() argument 266 struct octeon_instr_queue *iq = oct->instr_queue[iq_no]; in lio_cn6xxx_setup_iq_regs() 268 octeon_write_csr64(oct, CN6XXX_SLI_IQ_PKT_INSTR_HDR64(iq_no), 0); in lio_cn6xxx_setup_iq_regs() 271 octeon_write_csr64(oct, CN6XXX_SLI_IQ_BASE_ADDR64(iq_no), in lio_cn6xxx_setup_iq_regs() 273 octeon_write_csr(oct, CN6XXX_SLI_IQ_SIZE(iq_no), iq->max_count); in lio_cn6xxx_setup_iq_regs() 278 iq->doorbell_reg = oct->mmio[0].hw_addr + CN6XXX_SLI_IQ_DOORBELL(iq_no); in lio_cn6xxx_setup_iq_regs() 280 + CN6XXX_SLI_IQ_INSTR_COUNT(iq_no); in lio_cn6xxx_setup_iq_regs() 282 iq_no, iq->doorbell_reg, iq->inst_cnt_reg); in lio_cn6xxx_setup_iq_regs() 290 static void lio_cn66xx_setup_iq_regs(struct octeon_device *oct, u32 iq_no) in lio_cn66xx_setup_iq_regs() argument 292 lio_cn6xxx_setup_iq_regs(oct, iq_no); in lio_cn66xx_setup_iq_regs() [all …]
|
D | lio_vf_main.c | 622 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in send_rx_ctrl_cmd() 1054 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_uc_list() 1103 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mcast_list() 1146 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mac() 1180 int i, iq_no, oq_no; in liquidio_get_stats64() local 1188 iq_no = lio->linfo.txpciq[i].s.q_no; in liquidio_get_stats64() 1189 iq_stats = &oct->instr_queue[iq_no]->stats; in liquidio_get_stats64() 1379 sc->iq_no = ndata->q_no; in send_nic_timestamp_pkt() 1385 retval = octeon_send_command(oct, sc->iq_no, ring_doorbell, &sc->cmd, in send_nic_timestamp_pkt() 1414 int q_idx = 0, iq_no = 0; in liquidio_xmit() local [all …]
|
D | cn23xx_vf_device.c | 212 static void cn23xx_setup_vf_iq_regs(struct octeon_device *oct, u32 iq_no) in cn23xx_setup_vf_iq_regs() argument 214 struct octeon_instr_queue *iq = oct->instr_queue[iq_no]; in cn23xx_setup_vf_iq_regs() 218 octeon_write_csr64(oct, CN23XX_VF_SLI_IQ_BASE_ADDR64(iq_no), in cn23xx_setup_vf_iq_regs() 220 octeon_write_csr(oct, CN23XX_VF_SLI_IQ_SIZE(iq_no), iq->max_count); in cn23xx_setup_vf_iq_regs() 226 (u8 *)oct->mmio[0].hw_addr + CN23XX_VF_SLI_IQ_DOORBELL(iq_no); in cn23xx_setup_vf_iq_regs() 228 (u8 *)oct->mmio[0].hw_addr + CN23XX_VF_SLI_IQ_INSTR_COUNT64(iq_no); in cn23xx_setup_vf_iq_regs() 230 iq_no, iq->doorbell_reg, iq->inst_cnt_reg); in cn23xx_setup_vf_iq_regs()
|
D | lio_vf_rep.c | 81 sc->iq_no = 0; in lio_vf_rep_send_soft_command() 353 u32 iq_no; in lio_vf_rep_packet_sent_callback() local 358 iq_no = sc->iq_no; in lio_vf_rep_packet_sent_callback() 361 if (octnet_iq_is_full(oct, iq_no)) in lio_vf_rep_packet_sent_callback() 416 sc->iq_no = parent_lio->txq; in lio_vf_rep_pkt_xmit()
|
D | lio_main.c | 630 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in lio_sync_octeon_time() 1168 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in send_rx_ctrl_cmd() 1962 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mcast_list() 2010 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mac() 2045 int i, iq_no, oq_no; in liquidio_get_stats64() local 2053 iq_no = lio->linfo.txpciq[i].s.q_no; in liquidio_get_stats64() 2054 iq_stats = &oct->instr_queue[iq_no]->stats; in liquidio_get_stats64() 2263 sc->iq_no = ndata->q_no; in send_nic_timestamp_pkt() 2274 retval = octeon_send_command(oct, sc->iq_no, ring_doorbell, &sc->cmd, in send_nic_timestamp_pkt() 2307 int q_idx = 0, iq_no = 0; in liquidio_xmit() local [all …]
|
D | lio_core.c | 176 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_feature() 756 int tx_done = 0, iq_no; in liquidio_napi_poll() local 761 iq_no = droq->q_no; in liquidio_napi_poll() 767 iq = oct->instr_queue[iq_no]; in liquidio_napi_poll() 781 lio_update_txq_status(oct, iq_no); in liquidio_napi_poll() 784 __func__, iq_no); in liquidio_napi_poll() 1242 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_change_mtu() 1423 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in lio_fetch_vf_stats() 1498 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in lio_fetch_stats() 1565 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_speed() [all …]
|
D | octeon_nic.c | 127 sc->iq_no = (u32)nctrl->iq_no; in octnic_alloc_ctrl_pkt_sc()
|
D | cn23xx_pf_device.c | 587 static void cn23xx_setup_iq_regs(struct octeon_device *oct, u32 iq_no) in cn23xx_setup_iq_regs() argument 589 struct octeon_instr_queue *iq = oct->instr_queue[iq_no]; in cn23xx_setup_iq_regs() 592 iq_no += oct->sriov_info.pf_srn; in cn23xx_setup_iq_regs() 595 octeon_write_csr64(oct, CN23XX_SLI_IQ_BASE_ADDR64(iq_no), in cn23xx_setup_iq_regs() 597 octeon_write_csr(oct, CN23XX_SLI_IQ_SIZE(iq_no), iq->max_count); in cn23xx_setup_iq_regs() 603 (u8 *)oct->mmio[0].hw_addr + CN23XX_SLI_IQ_DOORBELL(iq_no); in cn23xx_setup_iq_regs() 605 (u8 *)oct->mmio[0].hw_addr + CN23XX_SLI_IQ_INSTR_COUNT64(iq_no); in cn23xx_setup_iq_regs() 607 iq_no, iq->doorbell_reg, iq->inst_cnt_reg); in cn23xx_setup_iq_regs()
|
D | cn66xx_device.h | 76 void lio_cn6xxx_setup_iq_regs(struct octeon_device *oct, u32 iq_no);
|
D | lio_ethtool.c | 483 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in lio_send_queue_count_update() 718 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_gpio_access() 744 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_id_active() 787 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_mdio45_access() 1026 sc->iq_no = 0; in lio_23xx_reconfigure_queue_count() 1397 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in lio_set_pauseparam() 2021 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_get_intrmod_cfg() 2080 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_set_intrmod_cfg()
|
D | octeon_device.c | 875 u32 iq_no = 0; in octeon_setup_instr_queues() local 901 txpciq.s.q_no = iq_no; in octeon_setup_instr_queues()
|
/linux-6.12.1/drivers/net/ethernet/marvell/octeon_ep_vf/ |
D | octep_vf_cn9k.c | 161 static void octep_vf_setup_iq_regs_cn93(struct octep_vf_device *oct, int iq_no) in octep_vf_setup_iq_regs_cn93() argument 163 struct octep_vf_iq *iq = oct->iq[iq_no]; in octep_vf_setup_iq_regs_cn93() 167 reg_val = octep_vf_read_csr64(oct, CN93_VF_SDP_R_IN_CONTROL(iq_no)); in octep_vf_setup_iq_regs_cn93() 172 reg_val = octep_vf_read_csr64(oct, CN93_VF_SDP_R_IN_CONTROL(iq_no)); in octep_vf_setup_iq_regs_cn93() 178 octep_vf_write_csr64(oct, CN93_VF_SDP_R_IN_CONTROL(iq_no), reg_val); in octep_vf_setup_iq_regs_cn93() 181 octep_vf_write_csr64(oct, CN93_VF_SDP_R_IN_INSTR_BADDR(iq_no), iq->desc_ring_dma); in octep_vf_setup_iq_regs_cn93() 182 octep_vf_write_csr64(oct, CN93_VF_SDP_R_IN_INSTR_RSIZE(iq_no), iq->max_count); in octep_vf_setup_iq_regs_cn93() 185 iq->doorbell_reg = oct->mmio.hw_addr + CN93_VF_SDP_R_IN_INSTR_DBELL(iq_no); in octep_vf_setup_iq_regs_cn93() 186 iq->inst_cnt_reg = oct->mmio.hw_addr + CN93_VF_SDP_R_IN_CNTS(iq_no); in octep_vf_setup_iq_regs_cn93() 187 iq->intr_lvl_reg = oct->mmio.hw_addr + CN93_VF_SDP_R_IN_INT_LEVELS(iq_no); in octep_vf_setup_iq_regs_cn93() [all …]
|
D | octep_vf_cnxk.c | 164 static void octep_vf_setup_iq_regs_cnxk(struct octep_vf_device *oct, int iq_no) in octep_vf_setup_iq_regs_cnxk() argument 166 struct octep_vf_iq *iq = oct->iq[iq_no]; in octep_vf_setup_iq_regs_cnxk() 170 reg_val = octep_vf_read_csr64(oct, CNXK_VF_SDP_R_IN_CONTROL(iq_no)); in octep_vf_setup_iq_regs_cnxk() 175 reg_val = octep_vf_read_csr64(oct, CNXK_VF_SDP_R_IN_CONTROL(iq_no)); in octep_vf_setup_iq_regs_cnxk() 181 octep_vf_write_csr64(oct, CNXK_VF_SDP_R_IN_CONTROL(iq_no), reg_val); in octep_vf_setup_iq_regs_cnxk() 184 octep_vf_write_csr64(oct, CNXK_VF_SDP_R_IN_INSTR_BADDR(iq_no), iq->desc_ring_dma); in octep_vf_setup_iq_regs_cnxk() 185 octep_vf_write_csr64(oct, CNXK_VF_SDP_R_IN_INSTR_RSIZE(iq_no), iq->max_count); in octep_vf_setup_iq_regs_cnxk() 188 iq->doorbell_reg = oct->mmio.hw_addr + CNXK_VF_SDP_R_IN_INSTR_DBELL(iq_no); in octep_vf_setup_iq_regs_cnxk() 189 iq->inst_cnt_reg = oct->mmio.hw_addr + CNXK_VF_SDP_R_IN_CNTS(iq_no); in octep_vf_setup_iq_regs_cnxk() 190 iq->intr_lvl_reg = oct->mmio.hw_addr + CNXK_VF_SDP_R_IN_INT_LEVELS(iq_no); in octep_vf_setup_iq_regs_cnxk() [all …]
|
/linux-6.12.1/drivers/net/ethernet/marvell/octeon_ep/ |
D | octep_cn9k_pf.c | 263 static void octep_setup_iq_regs_cn93_pf(struct octep_device *oct, int iq_no) in octep_setup_iq_regs_cn93_pf() argument 265 struct octep_iq *iq = oct->iq[iq_no]; in octep_setup_iq_regs_cn93_pf() 269 iq_no += CFG_GET_PORTS_PF_SRN(oct->conf); in octep_setup_iq_regs_cn93_pf() 270 reg_val = octep_read_csr64(oct, CN93_SDP_R_IN_CONTROL(iq_no)); in octep_setup_iq_regs_cn93_pf() 275 reg_val = octep_read_csr64(oct, CN93_SDP_R_IN_CONTROL(iq_no)); in octep_setup_iq_regs_cn93_pf() 282 octep_write_csr64(oct, CN93_SDP_R_IN_CONTROL(iq_no), reg_val); in octep_setup_iq_regs_cn93_pf() 285 octep_write_csr64(oct, CN93_SDP_R_IN_INSTR_BADDR(iq_no), in octep_setup_iq_regs_cn93_pf() 287 octep_write_csr64(oct, CN93_SDP_R_IN_INSTR_RSIZE(iq_no), in octep_setup_iq_regs_cn93_pf() 294 CN93_SDP_R_IN_INSTR_DBELL(iq_no); in octep_setup_iq_regs_cn93_pf() 296 CN93_SDP_R_IN_CNTS(iq_no); in octep_setup_iq_regs_cn93_pf() [all …]
|
D | octep_cnxk_pf.c | 283 static void octep_setup_iq_regs_cnxk_pf(struct octep_device *oct, int iq_no) in octep_setup_iq_regs_cnxk_pf() argument 285 struct octep_iq *iq = oct->iq[iq_no]; in octep_setup_iq_regs_cnxk_pf() 289 iq_no += CFG_GET_PORTS_PF_SRN(oct->conf); in octep_setup_iq_regs_cnxk_pf() 290 reg_val = octep_read_csr64(oct, CNXK_SDP_R_IN_CONTROL(iq_no)); in octep_setup_iq_regs_cnxk_pf() 295 reg_val = octep_read_csr64(oct, CNXK_SDP_R_IN_CONTROL(iq_no)); in octep_setup_iq_regs_cnxk_pf() 302 octep_write_csr64(oct, CNXK_SDP_R_IN_CONTROL(iq_no), reg_val); in octep_setup_iq_regs_cnxk_pf() 305 octep_write_csr64(oct, CNXK_SDP_R_IN_INSTR_BADDR(iq_no), in octep_setup_iq_regs_cnxk_pf() 307 octep_write_csr64(oct, CNXK_SDP_R_IN_INSTR_RSIZE(iq_no), in octep_setup_iq_regs_cnxk_pf() 314 CNXK_SDP_R_IN_INSTR_DBELL(iq_no); in octep_setup_iq_regs_cnxk_pf() 316 CNXK_SDP_R_IN_CNTS(iq_no); in octep_setup_iq_regs_cnxk_pf() [all …]
|