Home
last modified time | relevance | path

Searched refs:iq_no (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/cavium/liquidio/
Drequest_manager.c39 static void __check_db_timeout(struct octeon_device *oct, u64 iq_no);
43 static inline int IQ_INSTR_MODE_64B(struct octeon_device *oct, int iq_no) in IQ_INSTR_MODE_64B() argument
46 (struct octeon_instr_queue *)oct->instr_queue[iq_no]; in IQ_INSTR_MODE_64B()
50 #define IQ_INSTR_MODE_32B(oct, iq_no) (!IQ_INSTR_MODE_64B(oct, iq_no)) argument
62 u32 iq_no = (u32)txpciq.s.q_no; in octeon_init_instr_queue() local
82 iq = oct->instr_queue[iq_no]; in octeon_init_instr_queue()
89 iq_no); in octeon_init_instr_queue()
105 iq_no); in octeon_init_instr_queue()
110 iq_no, iq->base_addr, &iq->base_addr_dma, iq->max_count); in octeon_init_instr_queue()
126 if (iq_no == 0) { in octeon_init_instr_queue()
[all …]
Docteon_iq.h296 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,
394 int q_index, union oct_txpciq iq_no, u32 num_descs,
Docteon_nic.h53 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()
Dcn66xx_device.c264 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 …]
Dlio_vf_main.c625 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in send_rx_ctrl_cmd()
1060 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_uc_list()
1109 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mcast_list()
1152 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mac()
1186 int i, iq_no, oq_no; in liquidio_get_stats64() local
1194 iq_no = lio->linfo.txpciq[i].s.q_no; in liquidio_get_stats64()
1195 iq_stats = &oct->instr_queue[iq_no]->stats; in liquidio_get_stats64()
1385 sc->iq_no = ndata->q_no; in send_nic_timestamp_pkt()
1391 retval = octeon_send_command(oct, sc->iq_no, ring_doorbell, &sc->cmd, in send_nic_timestamp_pkt()
1420 int q_idx = 0, iq_no = 0; in liquidio_xmit() local
[all …]
Dcn23xx_vf_device.c212 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()
Dlio_vf_rep.c81 sc->iq_no = 0; in lio_vf_rep_send_soft_command()
354 u32 iq_no; in lio_vf_rep_packet_sent_callback() local
359 iq_no = sc->iq_no; in lio_vf_rep_packet_sent_callback()
362 if (octnet_iq_is_full(oct, iq_no)) in lio_vf_rep_packet_sent_callback()
417 sc->iq_no = parent_lio->txq; in lio_vf_rep_pkt_xmit()
Dlio_core.c170 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_feature()
746 int tx_done = 0, iq_no; in liquidio_napi_poll() local
751 iq_no = droq->q_no; in liquidio_napi_poll()
757 iq = oct->instr_queue[iq_no]; in liquidio_napi_poll()
771 lio_update_txq_status(oct, iq_no); in liquidio_napi_poll()
774 __func__, iq_no); in liquidio_napi_poll()
1230 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_change_mtu()
1409 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in lio_fetch_vf_stats()
1484 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in lio_fetch_stats()
1550 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_speed()
[all …]
Docteon_nic.c125 sc->iq_no = (u32)nctrl->iq_no; in octnic_alloc_ctrl_pkt_sc()
Dlio_main.c637 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in lio_sync_octeon_time()
1177 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in send_rx_ctrl_cmd()
1971 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mcast_list()
2019 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mac()
2054 int i, iq_no, oq_no; in liquidio_get_stats64() local
2062 iq_no = lio->linfo.txpciq[i].s.q_no; in liquidio_get_stats64()
2063 iq_stats = &oct->instr_queue[iq_no]->stats; in liquidio_get_stats64()
2272 sc->iq_no = ndata->q_no; in send_nic_timestamp_pkt()
2283 retval = octeon_send_command(oct, sc->iq_no, ring_doorbell, &sc->cmd, in send_nic_timestamp_pkt()
2316 int q_idx = 0, iq_no = 0; in liquidio_xmit() local
[all …]
Dcn23xx_pf_device.c587 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()
Dcn66xx_device.h76 void lio_cn6xxx_setup_iq_regs(struct octeon_device *oct, u32 iq_no);
Dlio_ethtool.c481 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in lio_send_queue_count_update()
716 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_gpio_access()
742 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_id_active()
785 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_mdio45_access()
1024 sc->iq_no = 0; in lio_23xx_reconfigure_queue_count()
1395 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in lio_set_pauseparam()
2019 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_get_intrmod_cfg()
2078 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_set_intrmod_cfg()
Docteon_device.c867 u32 iq_no = 0; in octeon_setup_instr_queues() local
893 txpciq.s.q_no = iq_no; in octeon_setup_instr_queues()
/linux-6.1.9/drivers/net/ethernet/marvell/octeon_ep/
Doctep_cn9k_pf.c241 static void octep_setup_iq_regs_cn93_pf(struct octep_device *oct, int iq_no) in octep_setup_iq_regs_cn93_pf() argument
243 struct octep_iq *iq = oct->iq[iq_no]; in octep_setup_iq_regs_cn93_pf()
247 iq_no += CFG_GET_PORTS_PF_SRN(oct->conf); in octep_setup_iq_regs_cn93_pf()
248 reg_val = octep_read_csr64(oct, CN93_SDP_R_IN_CONTROL(iq_no)); in octep_setup_iq_regs_cn93_pf()
253 reg_val = octep_read_csr64(oct, CN93_SDP_R_IN_CONTROL(iq_no)); in octep_setup_iq_regs_cn93_pf()
260 octep_write_csr64(oct, CN93_SDP_R_IN_CONTROL(iq_no), reg_val); in octep_setup_iq_regs_cn93_pf()
263 octep_write_csr64(oct, CN93_SDP_R_IN_INSTR_BADDR(iq_no), in octep_setup_iq_regs_cn93_pf()
265 octep_write_csr64(oct, CN93_SDP_R_IN_INSTR_RSIZE(iq_no), in octep_setup_iq_regs_cn93_pf()
272 CN93_SDP_R_IN_INSTR_DBELL(iq_no); in octep_setup_iq_regs_cn93_pf()
274 CN93_SDP_R_IN_CNTS(iq_no); in octep_setup_iq_regs_cn93_pf()
[all …]