Home
last modified time | relevance | path

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

/drivers/net/ethernet/cavium/liquidio/
Drequest_manager.c39 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 …]
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.c622 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 …]
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()
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()
Dlio_main.c636 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in lio_sync_octeon_time()
1174 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in send_rx_ctrl_cmd()
1968 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mcast_list()
2016 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mac()
2051 int i, iq_no, oq_no; in liquidio_get_stats64() local
2059 iq_no = lio->linfo.txpciq[i].s.q_no; in liquidio_get_stats64()
2060 iq_stats = &oct->instr_queue[iq_no]->stats; in liquidio_get_stats64()
2269 sc->iq_no = ndata->q_no; in send_nic_timestamp_pkt()
2280 retval = octeon_send_command(oct, sc->iq_no, ring_doorbell, &sc->cmd, in send_nic_timestamp_pkt()
2313 int q_idx = 0, iq_no = 0; in liquidio_xmit() local
[all …]
Dlio_core.c175 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_feature()
755 int tx_done = 0, iq_no; in liquidio_napi_poll() local
760 iq_no = droq->q_no; in liquidio_napi_poll()
766 iq = oct->instr_queue[iq_no]; in liquidio_napi_poll()
780 lio_update_txq_status(oct, iq_no); in liquidio_napi_poll()
783 __func__, iq_no); in liquidio_napi_poll()
1241 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_change_mtu()
1422 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in lio_fetch_vf_stats()
1497 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in lio_fetch_stats()
1564 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_speed()
[all …]
Docteon_nic.c127 sc->iq_no = (u32)nctrl->iq_no; in octnic_alloc_ctrl_pkt_sc()
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.c875 u32 iq_no = 0; in octeon_setup_instr_queues() local
901 txpciq.s.q_no = iq_no; in octeon_setup_instr_queues()
/drivers/net/ethernet/marvell/octeon_ep/
Doctep_cn9k_pf.c262 static void octep_setup_iq_regs_cn93_pf(struct octep_device *oct, int iq_no) in octep_setup_iq_regs_cn93_pf() argument
264 struct octep_iq *iq = oct->iq[iq_no]; in octep_setup_iq_regs_cn93_pf()
268 iq_no += CFG_GET_PORTS_PF_SRN(oct->conf); in octep_setup_iq_regs_cn93_pf()
269 reg_val = octep_read_csr64(oct, CN93_SDP_R_IN_CONTROL(iq_no)); in octep_setup_iq_regs_cn93_pf()
274 reg_val = octep_read_csr64(oct, CN93_SDP_R_IN_CONTROL(iq_no)); in octep_setup_iq_regs_cn93_pf()
281 octep_write_csr64(oct, CN93_SDP_R_IN_CONTROL(iq_no), reg_val); in octep_setup_iq_regs_cn93_pf()
284 octep_write_csr64(oct, CN93_SDP_R_IN_INSTR_BADDR(iq_no), in octep_setup_iq_regs_cn93_pf()
286 octep_write_csr64(oct, CN93_SDP_R_IN_INSTR_RSIZE(iq_no), in octep_setup_iq_regs_cn93_pf()
293 CN93_SDP_R_IN_INSTR_DBELL(iq_no); in octep_setup_iq_regs_cn93_pf()
295 CN93_SDP_R_IN_CNTS(iq_no); in octep_setup_iq_regs_cn93_pf()
[all …]