/linux-6.12.1/drivers/net/ethernet/marvell/octeon_ep_vf/ |
D | octep_vf_cnxk.c | 202 static void octep_vf_setup_oq_regs_cnxk(struct octep_vf_device *oct, int oq_no) in octep_vf_setup_oq_regs_cnxk() argument 204 struct octep_vf_oq *oq = oct->oq[oq_no]; in octep_vf_setup_oq_regs_cnxk() 209 reg_val = octep_vf_read_csr64(oct, CNXK_VF_SDP_R_OUT_CONTROL(oq_no)); in octep_vf_setup_oq_regs_cnxk() 214 reg_val = octep_vf_read_csr64(oct, CNXK_VF_SDP_R_OUT_CONTROL(oq_no)); in octep_vf_setup_oq_regs_cnxk() 229 octep_vf_write_csr64(oct, CNXK_VF_SDP_R_OUT_CONTROL(oq_no), reg_val); in octep_vf_setup_oq_regs_cnxk() 230 octep_vf_write_csr64(oct, CNXK_VF_SDP_R_OUT_SLIST_BADDR(oq_no), oq->desc_ring_dma); in octep_vf_setup_oq_regs_cnxk() 231 octep_vf_write_csr64(oct, CNXK_VF_SDP_R_OUT_SLIST_RSIZE(oq_no), oq->max_count); in octep_vf_setup_oq_regs_cnxk() 233 oq_ctl = octep_vf_read_csr64(oct, CNXK_VF_SDP_R_OUT_CONTROL(oq_no)); in octep_vf_setup_oq_regs_cnxk() 238 octep_vf_write_csr64(oct, CNXK_VF_SDP_R_OUT_CONTROL(oq_no), oq_ctl); in octep_vf_setup_oq_regs_cnxk() 241 oq->pkts_sent_reg = oct->mmio.hw_addr + CNXK_VF_SDP_R_OUT_CNTS(oq_no); in octep_vf_setup_oq_regs_cnxk() [all …]
|
D | octep_vf_cn9k.c | 199 static void octep_vf_setup_oq_regs_cn93(struct octep_vf_device *oct, int oq_no) in octep_vf_setup_oq_regs_cn93() argument 201 struct octep_vf_oq *oq = oct->oq[oq_no]; in octep_vf_setup_oq_regs_cn93() 206 reg_val = octep_vf_read_csr64(oct, CN93_VF_SDP_R_OUT_CONTROL(oq_no)); in octep_vf_setup_oq_regs_cn93() 211 reg_val = octep_vf_read_csr64(oct, CN93_VF_SDP_R_OUT_CONTROL(oq_no)); in octep_vf_setup_oq_regs_cn93() 226 octep_vf_write_csr64(oct, CN93_VF_SDP_R_OUT_CONTROL(oq_no), reg_val); in octep_vf_setup_oq_regs_cn93() 227 octep_vf_write_csr64(oct, CN93_VF_SDP_R_OUT_SLIST_BADDR(oq_no), oq->desc_ring_dma); in octep_vf_setup_oq_regs_cn93() 228 octep_vf_write_csr64(oct, CN93_VF_SDP_R_OUT_SLIST_RSIZE(oq_no), oq->max_count); in octep_vf_setup_oq_regs_cn93() 230 oq_ctl = octep_vf_read_csr64(oct, CN93_VF_SDP_R_OUT_CONTROL(oq_no)); in octep_vf_setup_oq_regs_cn93() 233 octep_vf_write_csr64(oct, CN93_VF_SDP_R_OUT_CONTROL(oq_no), oq_ctl); in octep_vf_setup_oq_regs_cn93() 236 oq->pkts_sent_reg = oct->mmio.hw_addr + CN93_VF_SDP_R_OUT_CNTS(oq_no); in octep_vf_setup_oq_regs_cn93() [all …]
|
/linux-6.12.1/drivers/net/ethernet/marvell/octeon_ep/ |
D | octep_cnxk_pf.c | 330 static void octep_setup_oq_regs_cnxk_pf(struct octep_device *oct, int oq_no) in octep_setup_oq_regs_cnxk_pf() argument 335 struct octep_oq *oq = oct->oq[oq_no]; in octep_setup_oq_regs_cnxk_pf() 337 oq_no += CFG_GET_PORTS_PF_SRN(oct->conf); in octep_setup_oq_regs_cnxk_pf() 338 reg_val = octep_read_csr64(oct, CNXK_SDP_R_OUT_CONTROL(oq_no)); in octep_setup_oq_regs_cnxk_pf() 343 reg_val = octep_read_csr64(oct, CNXK_SDP_R_OUT_CONTROL(oq_no)); in octep_setup_oq_regs_cnxk_pf() 358 octep_write_csr64(oct, CNXK_SDP_R_OUT_CONTROL(oq_no), reg_val); in octep_setup_oq_regs_cnxk_pf() 359 octep_write_csr64(oct, CNXK_SDP_R_OUT_SLIST_BADDR(oq_no), in octep_setup_oq_regs_cnxk_pf() 361 octep_write_csr64(oct, CNXK_SDP_R_OUT_SLIST_RSIZE(oq_no), in octep_setup_oq_regs_cnxk_pf() 364 oq_ctl = octep_read_csr64(oct, CNXK_SDP_R_OUT_CONTROL(oq_no)); in octep_setup_oq_regs_cnxk_pf() 371 octep_write_csr64(oct, CNXK_SDP_R_OUT_CONTROL(oq_no), oq_ctl); in octep_setup_oq_regs_cnxk_pf() [all …]
|
D | octep_cn9k_pf.c | 310 static void octep_setup_oq_regs_cn93_pf(struct octep_device *oct, int oq_no) in octep_setup_oq_regs_cn93_pf() argument 315 struct octep_oq *oq = oct->oq[oq_no]; in octep_setup_oq_regs_cn93_pf() 317 oq_no += CFG_GET_PORTS_PF_SRN(oct->conf); in octep_setup_oq_regs_cn93_pf() 318 reg_val = octep_read_csr64(oct, CN93_SDP_R_OUT_CONTROL(oq_no)); in octep_setup_oq_regs_cn93_pf() 323 reg_val = octep_read_csr64(oct, CN93_SDP_R_OUT_CONTROL(oq_no)); in octep_setup_oq_regs_cn93_pf() 338 octep_write_csr64(oct, CN93_SDP_R_OUT_CONTROL(oq_no), reg_val); in octep_setup_oq_regs_cn93_pf() 339 octep_write_csr64(oct, CN93_SDP_R_OUT_SLIST_BADDR(oq_no), in octep_setup_oq_regs_cn93_pf() 341 octep_write_csr64(oct, CN93_SDP_R_OUT_SLIST_RSIZE(oq_no), in octep_setup_oq_regs_cn93_pf() 344 oq_ctl = octep_read_csr64(oct, CN93_SDP_R_OUT_CONTROL(oq_no)); in octep_setup_oq_regs_cn93_pf() 347 octep_write_csr64(oct, CN93_SDP_R_OUT_CONTROL(oq_no), oq_ctl); in octep_setup_oq_regs_cn93_pf() [all …]
|
/linux-6.12.1/drivers/net/ethernet/cavium/liquidio/ |
D | cn66xx_device.c | 301 void lio_cn6xxx_setup_oq_regs(struct octeon_device *oct, u32 oq_no) in lio_cn6xxx_setup_oq_regs() argument 304 struct octeon_droq *droq = oct->droq[oq_no]; in lio_cn6xxx_setup_oq_regs() 306 octeon_write_csr64(oct, CN6XXX_SLI_OQ_BASE_ADDR64(oq_no), in lio_cn6xxx_setup_oq_regs() 308 octeon_write_csr(oct, CN6XXX_SLI_OQ_SIZE(oq_no), droq->max_count); in lio_cn6xxx_setup_oq_regs() 310 octeon_write_csr(oct, CN6XXX_SLI_OQ_BUFF_INFO_SIZE(oq_no), in lio_cn6xxx_setup_oq_regs() 315 oct->mmio[0].hw_addr + CN6XXX_SLI_OQ_PKTS_SENT(oq_no); in lio_cn6xxx_setup_oq_regs() 317 oct->mmio[0].hw_addr + CN6XXX_SLI_OQ_PKTS_CREDIT(oq_no); in lio_cn6xxx_setup_oq_regs() 321 intr |= (1 << oq_no); in lio_cn6xxx_setup_oq_regs() 326 intr |= (1 << oq_no); in lio_cn6xxx_setup_oq_regs() 509 int oq_no; in lio_cn6xxx_process_droq_intr_regs() local [all …]
|
D | cn23xx_vf_device.c | 245 static void cn23xx_setup_vf_oq_regs(struct octeon_device *oct, u32 oq_no) in cn23xx_setup_vf_oq_regs() argument 247 struct octeon_droq *droq = oct->droq[oq_no]; in cn23xx_setup_vf_oq_regs() 249 octeon_write_csr64(oct, CN23XX_VF_SLI_OQ_BASE_ADDR64(oq_no), in cn23xx_setup_vf_oq_regs() 251 octeon_write_csr(oct, CN23XX_VF_SLI_OQ_SIZE(oq_no), droq->max_count); in cn23xx_setup_vf_oq_regs() 253 octeon_write_csr(oct, CN23XX_VF_SLI_OQ_BUFF_INFO_SIZE(oq_no), in cn23xx_setup_vf_oq_regs() 258 (u8 *)oct->mmio[0].hw_addr + CN23XX_VF_SLI_OQ_PKTS_SENT(oq_no); in cn23xx_setup_vf_oq_regs() 260 (u8 *)oct->mmio[0].hw_addr + CN23XX_VF_SLI_OQ_PKTS_CREDIT(oq_no); in cn23xx_setup_vf_oq_regs()
|
D | cn23xx_pf_device.c | 628 static void cn23xx_setup_oq_regs(struct octeon_device *oct, u32 oq_no) in cn23xx_setup_oq_regs() argument 631 struct octeon_droq *droq = oct->droq[oq_no]; in cn23xx_setup_oq_regs() 636 oq_no += oct->sriov_info.pf_srn; in cn23xx_setup_oq_regs() 638 octeon_write_csr64(oct, CN23XX_SLI_OQ_BASE_ADDR64(oq_no), in cn23xx_setup_oq_regs() 640 octeon_write_csr(oct, CN23XX_SLI_OQ_SIZE(oq_no), droq->max_count); in cn23xx_setup_oq_regs() 642 octeon_write_csr(oct, CN23XX_SLI_OQ_BUFF_INFO_SIZE(oq_no), in cn23xx_setup_oq_regs() 647 (u8 *)oct->mmio[0].hw_addr + CN23XX_SLI_OQ_PKTS_SENT(oq_no); in cn23xx_setup_oq_regs() 649 (u8 *)oct->mmio[0].hw_addr + CN23XX_SLI_OQ_PKTS_CREDIT(oq_no); in cn23xx_setup_oq_regs() 655 octeon_read_csr(oct, CN23XX_SLI_OQ_PKT_CONTROL(oq_no)); in cn23xx_setup_oq_regs() 657 octeon_write_csr(oct, CN23XX_SLI_OQ_PKT_CONTROL(oq_no), in cn23xx_setup_oq_regs() [all …]
|
D | cn66xx_device.h | 77 void lio_cn6xxx_setup_oq_regs(struct octeon_device *oct, u32 oq_no);
|
D | lio_core.c | 964 u64 oq_no; in liquidio_schedule_droq_pkt_handlers() local 967 for (oq_no = 0; oq_no < MAX_OCTEON_OUTPUT_QUEUES(oct); in liquidio_schedule_droq_pkt_handlers() 968 oq_no++) { in liquidio_schedule_droq_pkt_handlers() 969 if (!(oct->droq_intr & BIT_ULL(oq_no))) in liquidio_schedule_droq_pkt_handlers() 972 droq = oct->droq[oq_no]; in liquidio_schedule_droq_pkt_handlers() 976 oct_priv->napi_mask |= BIT_ULL(oq_no); in liquidio_schedule_droq_pkt_handlers()
|
D | octeon_device.c | 921 u32 oq_no = 0; in octeon_setup_output_queues() local 943 if (octeon_init_droq(oct, oq_no, num_descs, desc_size, NULL)) { in octeon_setup_output_queues() 944 vfree(oct->droq[oq_no]); in octeon_setup_output_queues() 945 oct->droq[oq_no] = NULL; in octeon_setup_output_queues()
|
D | lio_vf_main.c | 1180 int i, iq_no, oq_no; in liquidio_get_stats64() local 1204 oq_no = lio->linfo.rxpciq[i].s.q_no; in liquidio_get_stats64() 1205 oq_stats = &oct->droq[oq_no]->stats; in liquidio_get_stats64()
|
D | lio_main.c | 2045 int i, iq_no, oq_no; in liquidio_get_stats64() local 2069 oq_no = lio->linfo.rxpciq[i].s.q_no; in liquidio_get_stats64() 2070 oq_stats = &oct->droq[oq_no]->stats; in liquidio_get_stats64()
|