| /linux/drivers/net/ethernet/cavium/liquidio/ |
| H A D | cn66xx_device.c | 29 int lio_cn6xxx_soft_reset(struct octeon_device *oct) in lio_cn6xxx_soft_reset() argument 31 octeon_write_csr64(oct, CN6XXX_WIN_WR_MASK_REG, 0xFF); in lio_cn6xxx_soft_reset() 33 dev_dbg(&oct->pci_dev->dev, "BIST enabled for soft reset\n"); in lio_cn6xxx_soft_reset() 35 lio_pci_writeq(oct, 1, CN6XXX_CIU_SOFT_BIST); in lio_cn6xxx_soft_reset() 36 octeon_write_csr64(oct, CN6XXX_SLI_SCRATCH1, 0x1234ULL); in lio_cn6xxx_soft_reset() 38 lio_pci_readq(oct, CN6XXX_CIU_SOFT_RST); in lio_cn6xxx_soft_reset() 39 lio_pci_writeq(oct, 1, CN6XXX_CIU_SOFT_RST); in lio_cn6xxx_soft_reset() 44 if (octeon_read_csr64(oct, CN6XXX_SLI_SCRATCH1)) { in lio_cn6xxx_soft_reset() 45 dev_err(&oct->pci_dev->dev, "Soft reset failed\n"); in lio_cn6xxx_soft_reset() 49 dev_dbg(&oct->pci_dev->dev, "Reset completed\n"); in lio_cn6xxx_soft_reset() [all …]
|
| H A D | cn23xx_pf_device.c | 39 static int cn23xx_pf_soft_reset(struct octeon_device *oct) in cn23xx_pf_soft_reset() argument 41 octeon_write_csr64(oct, CN23XX_WIN_WR_MASK_REG, 0xFF); in cn23xx_pf_soft_reset() 43 dev_dbg(&oct->pci_dev->dev, "OCTEON[%d]: BIST enabled for CN23XX soft reset\n", in cn23xx_pf_soft_reset() 44 oct->octeon_id); in cn23xx_pf_soft_reset() 46 octeon_write_csr64(oct, CN23XX_SLI_SCRATCH1, 0x1234ULL); in cn23xx_pf_soft_reset() 49 lio_pci_readq(oct, CN23XX_RST_SOFT_RST); in cn23xx_pf_soft_reset() 50 lio_pci_writeq(oct, 1, CN23XX_RST_SOFT_RST); in cn23xx_pf_soft_reset() 55 if (octeon_read_csr64(oct, CN23XX_SLI_SCRATCH1)) { in cn23xx_pf_soft_reset() 56 dev_err(&oct->pci_dev->dev, "OCTEON[%d]: Soft reset failed\n", in cn23xx_pf_soft_reset() 57 oct->octeon_id); in cn23xx_pf_soft_reset() [all …]
|
| H A D | cn68xx_device.c | 31 static void lio_cn68xx_set_dpi_regs(struct octeon_device *oct) in lio_cn68xx_set_dpi_regs() argument 36 lio_pci_writeq(oct, CN6XXX_DPI_DMA_CTL_MASK, CN6XXX_DPI_DMA_CONTROL); in lio_cn68xx_set_dpi_regs() 37 dev_dbg(&oct->pci_dev->dev, "DPI_DMA_CONTROL: 0x%016llx\n", in lio_cn68xx_set_dpi_regs() 38 lio_pci_readq(oct, CN6XXX_DPI_DMA_CONTROL)); in lio_cn68xx_set_dpi_regs() 45 lio_pci_writeq(oct, 0, CN6XXX_DPI_DMA_ENG_ENB(i)); in lio_cn68xx_set_dpi_regs() 46 lio_pci_writeq(oct, fifo_sizes[i], CN6XXX_DPI_DMA_ENG_BUF(i)); in lio_cn68xx_set_dpi_regs() 47 dev_dbg(&oct->pci_dev->dev, "DPI_ENG_BUF%d: 0x%016llx\n", i, in lio_cn68xx_set_dpi_regs() 48 lio_pci_readq(oct, CN6XXX_DPI_DMA_ENG_BUF(i))); in lio_cn68xx_set_dpi_regs() 55 lio_pci_writeq(oct, 1, CN6XXX_DPI_CTL); in lio_cn68xx_set_dpi_regs() 56 dev_dbg(&oct->pci_dev->dev, "DPI_CTL: 0x%016llx\n", in lio_cn68xx_set_dpi_regs() [all …]
|
| H A D | cn23xx_vf_device.c | 30 u32 cn23xx_vf_get_oq_ticks(struct octeon_device *oct, u32 time_intr_in_us) in cn23xx_vf_get_oq_ticks() argument 33 u32 oqticks_per_us = (u32)oct->pfvf_hsword.coproc_tics_per_us; in cn23xx_vf_get_oq_ticks() 50 static int cn23xx_vf_reset_io_queues(struct octeon_device *oct, u32 num_queues) in cn23xx_vf_reset_io_queues() argument 59 d64 = octeon_read_csr64(oct, in cn23xx_vf_reset_io_queues() 62 octeon_write_csr64(oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no), in cn23xx_vf_reset_io_queues() 68 u64 reg_val = octeon_read_csr64(oct, in cn23xx_vf_reset_io_queues() 74 oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no))); in cn23xx_vf_reset_io_queues() 78 dev_err(&oct->pci_dev->dev, in cn23xx_vf_reset_io_queues() 85 octeon_write_csr64(oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no), in cn23xx_vf_reset_io_queues() 89 oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no))); in cn23xx_vf_reset_io_queues() [all …]
|
| H A D | octeon_device.c | 569 static void *__retrieve_octeon_config_info(struct octeon_device *oct, in __retrieve_octeon_config_info() argument 572 u32 oct_id = oct->octeon_id; in __retrieve_octeon_config_info() 577 if (oct->chip_id == OCTEON_CN66XX) { in __retrieve_octeon_config_info() 579 } else if ((oct->chip_id == OCTEON_CN68XX) && in __retrieve_octeon_config_info() 582 } else if ((oct->chip_id == OCTEON_CN68XX) && in __retrieve_octeon_config_info() 585 } else if (oct->chip_id == OCTEON_CN23XX_PF_VID) { in __retrieve_octeon_config_info() 587 } else if (oct->chip_id == OCTEON_CN23XX_VF_VID) { in __retrieve_octeon_config_info() 597 static int __verify_octeon_config_info(struct octeon_device *oct, void *conf) in __verify_octeon_config_info() argument 599 switch (oct->chip_id) { in __verify_octeon_config_info() 602 return lio_validate_cn6xxx_config_info(oct, conf); in __verify_octeon_config_info() [all …]
|
| H A D | request_manager.c | 39 static void __check_db_timeout(struct octeon_device *oct, u64 iq_no); 47 int octeon_init_instr_queue(struct octeon_device *oct, in octeon_init_instr_queue() argument 56 int numa_node = dev_to_node(&oct->pci_dev->dev); in octeon_init_instr_queue() 58 if (OCTEON_CN6XXX(oct)) in octeon_init_instr_queue() 59 conf = &(CFG_GET_IQ_CFG(CHIP_CONF(oct, cn6xxx))); in octeon_init_instr_queue() 60 else if (OCTEON_CN23XX_PF(oct)) in octeon_init_instr_queue() 61 conf = &(CFG_GET_IQ_CFG(CHIP_CONF(oct, cn23xx_pf))); in octeon_init_instr_queue() 62 else if (OCTEON_CN23XX_VF(oct)) in octeon_init_instr_queue() 63 conf = &(CFG_GET_IQ_CFG(CHIP_CONF(oct, cn23xx_vf))); in octeon_init_instr_queue() 66 dev_err(&oct->pci_dev->dev, "Unsupported Chip %x\n", in octeon_init_instr_queue() [all …]
|
| H A D | octeon_console.c | 35 static u64 cvmx_bootmem_phy_named_block_find(struct octeon_device *oct, 38 static int octeon_console_read(struct octeon_device *oct, u32 console_num, 139 * @param oct Pointer to current octeon device 147 static inline u64 __cvmx_bootmem_desc_get(struct octeon_device *oct, in __cvmx_bootmem_desc_get() argument 155 return octeon_read_device_mem32(oct, base); in __cvmx_bootmem_desc_get() 157 return octeon_read_device_mem64(oct, base); in __cvmx_bootmem_desc_get() 173 static void CVMX_BOOTMEM_NAMED_GET_NAME(struct octeon_device *oct, in CVMX_BOOTMEM_NAMED_GET_NAME() argument 179 octeon_pci_read_core_mem(oct, addr, (u8 *)str, len); in CVMX_BOOTMEM_NAMED_GET_NAME() 195 static int __cvmx_bootmem_check_version(struct octeon_device *oct, in __cvmx_bootmem_check_version() argument 201 if (!oct->bootmem_desc_addr) in __cvmx_bootmem_check_version() [all …]
|
| H A D | lio_ethtool.c | 219 struct octeon_device *oct = lio->oct_dev; in lio_get_link_ksettings() local 247 dev_dbg(&oct->pci_dev->dev, "ecmd->base.transceiver is XCVR_EXTERNAL\n"); in lio_get_link_ksettings() 250 dev_err(&oct->pci_dev->dev, "Unknown link interface mode: %d\n", in lio_get_link_ksettings() 260 if (oct->subsystem_id == OCTEON_CN2350_25GB_SUBSYS_ID || in lio_get_link_ksettings() 261 oct->subsystem_id == OCTEON_CN2360_25GB_SUBSYS_ID) { in lio_get_link_ksettings() 262 if (OCTEON_CN23XX_PF(oct)) { in lio_get_link_ksettings() 270 if (oct->no_speed_setting == 0) { in lio_get_link_ksettings() 282 if (oct->no_speed_setting == 0) { in lio_get_link_ksettings() 286 oct->speed_setting = 25; in lio_get_link_ksettings() 289 if (oct->speed_setting == 10) { in lio_get_link_ksettings() [all …]
|
| H A D | octeon_mem_ops.c | 31 octeon_toggle_bar1_swapmode(struct octeon_device *oct, u32 idx) in octeon_toggle_bar1_swapmode() argument 35 mask = oct->fn_list.bar1_idx_read(oct, idx); in octeon_toggle_bar1_swapmode() 37 oct->fn_list.bar1_idx_write(oct, idx, mask); in octeon_toggle_bar1_swapmode() 40 #define octeon_toggle_bar1_swapmode(oct, idx) argument 44 octeon_pci_fastwrite(struct octeon_device *oct, u8 __iomem *mapped_addr, in octeon_pci_fastwrite() argument 52 octeon_toggle_bar1_swapmode(oct, MEMOPS_IDX); in octeon_pci_fastwrite() 61 octeon_toggle_bar1_swapmode(oct, MEMOPS_IDX); in octeon_pci_fastwrite() 68 octeon_pci_fastread(struct octeon_device *oct, u8 __iomem *mapped_addr, in octeon_pci_fastread() argument 76 octeon_toggle_bar1_swapmode(oct, MEMOPS_IDX); in octeon_pci_fastread() 85 octeon_toggle_bar1_swapmode(oct, MEMOPS_IDX); in octeon_pci_fastread() [all …]
|
| H A D | octeon_droq.c | 136 octeon_droq_destroy_ring_buffers(struct octeon_device *oct, in octeon_droq_destroy_ring_buffers() argument 148 lio_unmap_ring(oct->pci_dev, in octeon_droq_destroy_ring_buffers() 163 octeon_droq_setup_ring_buffers(struct octeon_device *oct, in octeon_droq_setup_ring_buffers() argument 171 buf = recv_buffer_alloc(oct, &droq->recv_buf_list[i].pg_info); in octeon_droq_setup_ring_buffers() 174 dev_err(&oct->pci_dev->dev, "%s buffer alloc failed\n", in octeon_droq_setup_ring_buffers() 194 int octeon_delete_droq(struct octeon_device *oct, u32 q_no) in octeon_delete_droq() argument 196 struct octeon_droq *droq = oct->droq[q_no]; in octeon_delete_droq() 198 dev_dbg(&oct->pci_dev->dev, "%s[%d]\n", __func__, q_no); in octeon_delete_droq() 200 octeon_droq_destroy_ring_buffers(oct, droq); in octeon_delete_droq() 204 lio_dma_free(oct, (droq->max_count * OCT_DROQ_DESC_SIZE), in octeon_delete_droq() [all …]
|
| H A D | octeon_nic.c | 30 octeon_alloc_soft_command_resp(struct octeon_device *oct, in octeon_alloc_soft_command_resp() argument 41 octeon_alloc_soft_command(oct, 0, rdatasize, 0); in octeon_alloc_soft_command_resp() 52 if (OCTEON_CN23XX_PF(oct) || OCTEON_CN23XX_VF(oct)) { in octeon_alloc_soft_command_resp() 68 rdp->pcie_port = oct->pcie_port; in octeon_alloc_soft_command_resp() 73 if (OCTEON_CN23XX_PF(oct) || OCTEON_CN23XX_VF(oct)) in octeon_alloc_soft_command_resp() 84 int octnet_send_nic_data_pkt(struct octeon_device *oct, in octnet_send_nic_data_pkt() argument 90 return octeon_send_command(oct, ndata->q_no, ring_doorbell, &ndata->cmd, in octnet_send_nic_data_pkt() 97 *octnic_alloc_ctrl_pkt_sc(struct octeon_device *oct, in octnic_alloc_ctrl_pkt_sc() argument 111 octeon_alloc_soft_command(oct, datasize, rdatasize, 0); in octnic_alloc_ctrl_pkt_sc() 129 octeon_prepare_soft_command(oct, sc, OPCODE_NIC, OPCODE_NIC_CMD, in octnic_alloc_ctrl_pkt_sc() [all …]
|
| H A D | cn66xx_device.h | 68 int lio_cn6xxx_soft_reset(struct octeon_device *oct); 69 void lio_cn6xxx_enable_error_reporting(struct octeon_device *oct); 70 void lio_cn6xxx_setup_pcie_mps(struct octeon_device *oct, 72 void lio_cn6xxx_setup_pcie_mrrs(struct octeon_device *oct, 74 void lio_cn6xxx_setup_global_input_regs(struct octeon_device *oct); 75 void lio_cn6xxx_setup_global_output_regs(struct octeon_device *oct); 76 void lio_cn6xxx_setup_iq_regs(struct octeon_device *oct, u32 iq_no); 77 void lio_cn6xxx_setup_oq_regs(struct octeon_device *oct, u32 oq_no); 78 int lio_cn6xxx_enable_io_queues(struct octeon_device *oct); 79 void lio_cn6xxx_disable_io_queues(struct octeon_device *oct); [all …]
|
| H A D | octeon_main.h | 73 void octeon_pf_changed_vf_macaddr(struct octeon_device *oct, u8 *mac); 75 void octeon_schedule_rxq_oom_work(struct octeon_device *oct, 90 * @param oct Pointer to Octeon device 93 static inline void octeon_unmap_pci_barx(struct octeon_device *oct, int baridx) in octeon_unmap_pci_barx() argument 95 dev_dbg(&oct->pci_dev->dev, "Freeing PCI mapped regions for Bar%d\n", in octeon_unmap_pci_barx() 98 if (oct->mmio[baridx].done) in octeon_unmap_pci_barx() 99 iounmap(oct->mmio[baridx].hw_addr); in octeon_unmap_pci_barx() 101 if (oct->mmio[baridx].start) in octeon_unmap_pci_barx() 102 pci_release_region(oct->pci_dev, baridx * 2); in octeon_unmap_pci_barx() 107 * @param oct Pointer to Octeon device [all …]
|
| H A D | octeon_device.h | 212 typedef int (*octeon_console_print_fn)(struct octeon_device *oct, 423 struct octeon_device *oct; member 621 #define OCTEON_CN6XXX(oct) ({ \ argument 622 typeof(oct) _oct = (oct); \ 625 #define OCTEON_CN23XX_PF(oct) ((oct)->chip_id == OCTEON_CN23XX_PF_VID) argument 626 #define OCTEON_CN23XX_VF(oct) ((oct)->chip_id == OCTEON_CN23XX_VF_VID) argument 627 #define CHIP_CONF(oct, TYPE) \ argument 628 (((struct octeon_ ## TYPE *)((oct)->chip))->conf) 638 void octeon_free_device_mem(struct octeon_device *oct); 655 int octeon_register_device(struct octeon_device *oct, [all …]
|
| H A D | octeon_mailbox.c | 124 * @oct: Pointer Octeon Device 131 int octeon_mbox_write(struct octeon_device *oct, in octeon_mbox_write() argument 134 struct octeon_mbox *mbox = oct->mbox[mbox_cmd->q_no]; in octeon_mbox_write() 209 static void get_vf_stats(struct octeon_device *oct, in get_vf_stats() argument 214 for (i = 0; i < oct->num_iqs; i++) { in get_vf_stats() 215 if (!oct->instr_queue[i]) in get_vf_stats() 217 stats->tx_packets += oct->instr_queue[i]->stats.tx_done; in get_vf_stats() 218 stats->tx_bytes += oct->instr_queue[i]->stats.tx_tot_bytes; in get_vf_stats() 221 for (i = 0; i < oct->num_oqs; i++) { in get_vf_stats() 222 if (!oct->droq[i]) in get_vf_stats() [all …]
|
| /linux/drivers/net/ethernet/marvell/octeon_ep/ |
| H A D | octep_cn9k_pf.c | 40 static void cn93_dump_regs(struct octep_device *oct, int qno) in cn93_dump_regs() argument 42 struct device *dev = &oct->pdev->dev; in cn93_dump_regs() 47 octep_read_csr64(oct, CN93_SDP_R_IN_INSTR_DBELL(qno))); in cn93_dump_regs() 50 octep_read_csr64(oct, CN93_SDP_R_IN_CONTROL(qno))); in cn93_dump_regs() 53 octep_read_csr64(oct, CN93_SDP_R_IN_ENABLE(qno))); in cn93_dump_regs() 56 octep_read_csr64(oct, CN93_SDP_R_IN_INSTR_BADDR(qno))); in cn93_dump_regs() 59 octep_read_csr64(oct, CN93_SDP_R_IN_INSTR_RSIZE(qno))); in cn93_dump_regs() 62 octep_read_csr64(oct, CN93_SDP_R_IN_CNTS(qno))); in cn93_dump_regs() 65 octep_read_csr64(oct, CN93_SDP_R_IN_INT_LEVELS(qno))); in cn93_dump_regs() 68 octep_read_csr64(oct, CN93_SDP_R_IN_PKT_CNT(qno))); in cn93_dump_regs() [all …]
|
| H A D | octep_cnxk_pf.c | 60 static void cnxk_dump_regs(struct octep_device *oct, int qno) in cnxk_dump_regs() argument 62 struct device *dev = &oct->pdev->dev; in cnxk_dump_regs() 67 octep_read_csr64(oct, CNXK_SDP_R_IN_INSTR_DBELL(qno))); in cnxk_dump_regs() 70 octep_read_csr64(oct, CNXK_SDP_R_IN_CONTROL(qno))); in cnxk_dump_regs() 73 octep_read_csr64(oct, CNXK_SDP_R_IN_ENABLE(qno))); in cnxk_dump_regs() 76 octep_read_csr64(oct, CNXK_SDP_R_IN_INSTR_BADDR(qno))); in cnxk_dump_regs() 79 octep_read_csr64(oct, CNXK_SDP_R_IN_INSTR_RSIZE(qno))); in cnxk_dump_regs() 82 octep_read_csr64(oct, CNXK_SDP_R_IN_CNTS(qno))); in cnxk_dump_regs() 85 octep_read_csr64(oct, CNXK_SDP_R_IN_INT_LEVELS(qno))); in cnxk_dump_regs() 88 octep_read_csr64(oct, CNXK_SDP_R_IN_PKT_CNT(qno))); in cnxk_dump_regs() [all …]
|
| H A D | octep_main.c | 44 * @oct: Octeon device private data structure. 54 static int octep_alloc_ioq_vectors(struct octep_device *oct) in octep_alloc_ioq_vectors() argument 59 for (i = 0; i < oct->num_oqs; i++) { in octep_alloc_ioq_vectors() 60 oct->ioq_vector[i] = vzalloc(sizeof(*oct->ioq_vector[i])); in octep_alloc_ioq_vectors() 61 if (!oct->ioq_vector[i]) in octep_alloc_ioq_vectors() 64 ioq_vector = oct->ioq_vector[i]; in octep_alloc_ioq_vectors() 65 ioq_vector->iq = oct->iq[i]; in octep_alloc_ioq_vectors() 66 ioq_vector->oq = oct->oq[i]; in octep_alloc_ioq_vectors() 67 ioq_vector->octep_dev = oct; in octep_alloc_ioq_vectors() 70 dev_info(&oct->pdev->dev, "Allocated %d IOQ vectors\n", oct->num_oqs); in octep_alloc_ioq_vectors() [all …]
|
| H A D | octep_pfvf_mbox.c | 34 static void octep_pfvf_validate_version(struct octep_device *oct, u32 vf_id, in octep_pfvf_validate_version() argument 40 dev_dbg(&oct->pdev->dev, "VF id:%d VF version:%d PF version:%d\n", in octep_pfvf_validate_version() 47 oct->vf_info[vf_id].mbox_version = rsp->s_version.version; in octep_pfvf_validate_version() 48 dev_dbg(&oct->pdev->dev, "VF id:%d negotiated VF version:%d\n", in octep_pfvf_validate_version() 49 vf_id, oct->vf_info[vf_id].mbox_version); in octep_pfvf_validate_version() 54 static void octep_pfvf_get_link_status(struct octep_device *oct, u32 vf_id, in octep_pfvf_get_link_status() argument 60 status = octep_ctrl_net_get_link_status(oct, vf_id); in octep_pfvf_get_link_status() 63 dev_err(&oct->pdev->dev, "Get VF link status failed via host control Mbox\n"); in octep_pfvf_get_link_status() 70 static void octep_pfvf_set_link_status(struct octep_device *oct, u32 vf_id, in octep_pfvf_set_link_status() argument 76 err = octep_ctrl_net_set_link_status(oct, vf_id, cmd.s_link_status.status, true); in octep_pfvf_set_link_status() [all …]
|
| H A D | octep_ctrl_net.c | 59 static int octep_send_mbox_req(struct octep_device *oct, in octep_send_mbox_req() argument 67 if (octep_ctrl_net_h2f_cmd_versions[cmd] > oct->ctrl_mbox.max_fw_version || in octep_send_mbox_req() 68 octep_ctrl_net_h2f_cmd_versions[cmd] < oct->ctrl_mbox.min_fw_version) in octep_send_mbox_req() 71 err = octep_ctrl_mbox_send(&oct->ctrl_mbox, &d->msg); in octep_send_mbox_req() 80 list_add_tail(&d->list, &oct->ctrl_req_wait_list); in octep_send_mbox_req() 81 ret = wait_event_interruptible_timeout(oct->ctrl_req_wait_q, in octep_send_mbox_req() 101 int octep_ctrl_net_init(struct octep_device *oct) in octep_ctrl_net_init() argument 104 struct pci_dev *pdev = oct->pdev; in octep_ctrl_net_init() 107 init_waitqueue_head(&oct->ctrl_req_wait_q); in octep_ctrl_net_init() 108 INIT_LIST_HEAD(&oct->ctrl_req_wait_list); in octep_ctrl_net_init() [all …]
|
| H A D | octep_ctrl_net.h | 248 * @oct: non-null pointer to struct octep_device. 252 int octep_ctrl_net_init(struct octep_device *oct); 257 * @oct: non-null pointer to struct octep_device. 262 int octep_ctrl_net_get_link_status(struct octep_device *oct, int vfid); 267 * @oct: non-null pointer to struct octep_device. 274 int octep_ctrl_net_set_link_status(struct octep_device *oct, int vfid, bool up, 280 * @oct: non-null pointer to struct octep_device. 287 int octep_ctrl_net_set_rx_state(struct octep_device *oct, int vfid, bool up, 293 * @oct: non-null pointer to struct octep_device. 299 int octep_ctrl_net_get_mac_addr(struct octep_device *oct, int vfid, u8 *addr); [all …]
|
| /linux/drivers/net/ethernet/marvell/octeon_ep_vf/ |
| H A D | octep_vf_cn9k.c | 17 static void cn93_vf_dump_q_regs(struct octep_vf_device *oct, int qno) in cn93_vf_dump_q_regs() argument 19 struct device *dev = &oct->pdev->dev; in cn93_vf_dump_q_regs() 24 octep_vf_read_csr64(oct, CN93_VF_SDP_R_IN_INSTR_DBELL(qno))); in cn93_vf_dump_q_regs() 27 octep_vf_read_csr64(oct, CN93_VF_SDP_R_IN_CONTROL(qno))); in cn93_vf_dump_q_regs() 30 octep_vf_read_csr64(oct, CN93_VF_SDP_R_IN_ENABLE(qno))); in cn93_vf_dump_q_regs() 33 octep_vf_read_csr64(oct, CN93_VF_SDP_R_IN_INSTR_BADDR(qno))); in cn93_vf_dump_q_regs() 36 octep_vf_read_csr64(oct, CN93_VF_SDP_R_IN_INSTR_RSIZE(qno))); in cn93_vf_dump_q_regs() 39 octep_vf_read_csr64(oct, CN93_VF_SDP_R_IN_CNTS(qno))); in cn93_vf_dump_q_regs() 42 octep_vf_read_csr64(oct, CN93_VF_SDP_R_IN_INT_LEVELS(qno))); in cn93_vf_dump_q_regs() 45 octep_vf_read_csr64(oct, CN93_VF_SDP_R_IN_PKT_CNT(qno))); in cn93_vf_dump_q_regs() [all …]
|
| H A D | octep_vf_cnxk.c | 17 static void cnxk_vf_dump_q_regs(struct octep_vf_device *oct, int qno) in cnxk_vf_dump_q_regs() argument 19 struct device *dev = &oct->pdev->dev; in cnxk_vf_dump_q_regs() 24 octep_vf_read_csr64(oct, CNXK_VF_SDP_R_IN_INSTR_DBELL(qno))); in cnxk_vf_dump_q_regs() 27 octep_vf_read_csr64(oct, CNXK_VF_SDP_R_IN_CONTROL(qno))); in cnxk_vf_dump_q_regs() 30 octep_vf_read_csr64(oct, CNXK_VF_SDP_R_IN_ENABLE(qno))); in cnxk_vf_dump_q_regs() 33 octep_vf_read_csr64(oct, CNXK_VF_SDP_R_IN_INSTR_BADDR(qno))); in cnxk_vf_dump_q_regs() 36 octep_vf_read_csr64(oct, CNXK_VF_SDP_R_IN_INSTR_RSIZE(qno))); in cnxk_vf_dump_q_regs() 39 octep_vf_read_csr64(oct, CNXK_VF_SDP_R_IN_CNTS(qno))); in cnxk_vf_dump_q_regs() 42 octep_vf_read_csr64(oct, CNXK_VF_SDP_R_IN_INT_LEVELS(qno))); in cnxk_vf_dump_q_regs() 45 octep_vf_read_csr64(oct, CNXK_VF_SDP_R_IN_PKT_CNT(qno))); in cnxk_vf_dump_q_regs() [all …]
|
| H A D | octep_vf_main.c | 41 * @oct: Octeon device private data structure. 51 static int octep_vf_alloc_ioq_vectors(struct octep_vf_device *oct) in octep_vf_alloc_ioq_vectors() argument 56 for (i = 0; i < oct->num_oqs; i++) { in octep_vf_alloc_ioq_vectors() 57 oct->ioq_vector[i] = vzalloc(sizeof(*oct->ioq_vector[i])); in octep_vf_alloc_ioq_vectors() 58 if (!oct->ioq_vector[i]) in octep_vf_alloc_ioq_vectors() 61 ioq_vector = oct->ioq_vector[i]; in octep_vf_alloc_ioq_vectors() 62 ioq_vector->iq = oct->iq[i]; in octep_vf_alloc_ioq_vectors() 63 ioq_vector->oq = oct->oq[i]; in octep_vf_alloc_ioq_vectors() 64 ioq_vector->octep_vf_dev = oct; in octep_vf_alloc_ioq_vectors() 67 dev_info(&oct->pdev->dev, "Allocated %d IOQ vectors\n", oct->num_oqs); in octep_vf_alloc_ioq_vectors() [all …]
|
| H A D | octep_vf_mbox.h | 149 int octep_vf_setup_mbox(struct octep_vf_device *oct); 150 void octep_vf_delete_mbox(struct octep_vf_device *oct); 151 int octep_vf_mbox_send_cmd(struct octep_vf_device *oct, union octep_pfvf_mbox_word cmd, 153 int octep_vf_mbox_bulk_read(struct octep_vf_device *oct, enum octep_pfvf_mbox_opcode opcode, 155 int octep_vf_mbox_set_mtu(struct octep_vf_device *oct, int mtu); 156 int octep_vf_mbox_set_mac_addr(struct octep_vf_device *oct, char *mac_addr); 157 int octep_vf_mbox_get_mac_addr(struct octep_vf_device *oct, char *mac_addr); 158 int octep_vf_mbox_version_check(struct octep_vf_device *oct); 159 int octep_vf_mbox_set_rx_state(struct octep_vf_device *oct, bool state); 160 int octep_vf_mbox_set_link_status(struct octep_vf_device *oct, bool status); [all …]
|