/kernel/linux/linux-5.10/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 in lio_cn6xxx_soft_reset() 55 lio_cn6xxx_enable_error_reporting(struct octeon_device *oct) lio_cn6xxx_enable_error_reporting() argument 71 lio_cn6xxx_setup_pcie_mps(struct octeon_device *oct, enum octeon_pcie_mps mps) lio_cn6xxx_setup_pcie_mps() argument 94 lio_cn6xxx_setup_pcie_mrrs(struct octeon_device *oct, enum octeon_pcie_mrrs mrrs) lio_cn6xxx_setup_pcie_mrrs() argument 122 lio_cn6xxx_coprocessor_clock(struct octeon_device *oct) lio_cn6xxx_coprocessor_clock() argument 130 lio_cn6xxx_get_oq_ticks(struct octeon_device *oct, u32 time_intr_in_us) lio_cn6xxx_get_oq_ticks() argument 155 lio_cn6xxx_setup_global_input_regs(struct octeon_device *oct) lio_cn6xxx_setup_global_input_regs() argument 170 lio_cn66xx_setup_pkt_ctl_regs(struct octeon_device *oct) lio_cn66xx_setup_pkt_ctl_regs() argument 193 lio_cn6xxx_setup_global_output_regs(struct octeon_device *oct) lio_cn6xxx_setup_global_output_regs() argument 247 lio_cn6xxx_setup_device_regs(struct octeon_device *oct) lio_cn6xxx_setup_device_regs() argument 264 lio_cn6xxx_setup_iq_regs(struct octeon_device *oct, u32 iq_no) lio_cn6xxx_setup_iq_regs() argument 290 lio_cn66xx_setup_iq_regs(struct octeon_device *oct, u32 iq_no) lio_cn66xx_setup_iq_regs() argument 301 lio_cn6xxx_setup_oq_regs(struct octeon_device *oct, u32 oq_no) lio_cn6xxx_setup_oq_regs() argument 330 lio_cn6xxx_enable_io_queues(struct octeon_device *oct) lio_cn6xxx_enable_io_queues() argument 349 lio_cn6xxx_disable_io_queues(struct octeon_device *oct) lio_cn6xxx_disable_io_queues() argument 412 lio_cn6xxx_bar1_idx_setup(struct octeon_device *oct, u64 core_addr, u32 idx, int valid) lio_cn6xxx_bar1_idx_setup() argument 436 lio_cn6xxx_bar1_idx_write(struct octeon_device *oct, u32 idx, u32 mask) lio_cn6xxx_bar1_idx_write() argument 443 lio_cn6xxx_bar1_idx_read(struct octeon_device *oct, u32 idx) lio_cn6xxx_bar1_idx_read() argument 470 lio_cn6xxx_enable_interrupt(struct octeon_device *oct, u8 unused __attribute__((unused))) lio_cn6xxx_enable_interrupt() argument 480 lio_cn6xxx_disable_interrupt(struct octeon_device *oct, u8 unused __attribute__((unused))) lio_cn6xxx_disable_interrupt() argument 489 lio_cn6xxx_get_pcie_qlmport(struct octeon_device *oct) lio_cn6xxx_get_pcie_qlmport() argument 500 lio_cn6xxx_process_pcie_error_intr(struct octeon_device *oct, u64 intr64) lio_cn6xxx_process_pcie_error_intr() argument 506 lio_cn6xxx_process_droq_intr_regs(struct octeon_device *oct) lio_cn6xxx_process_droq_intr_regs() argument 572 struct octeon_device *oct = (struct octeon_device *)dev; lio_cn6xxx_process_interrupt_regs() local 607 lio_cn6xxx_setup_reg_address(struct octeon_device *oct, void *chip, struct octeon_reg_list *reg_list) lio_cn6xxx_setup_reg_address() argument 650 lio_setup_cn66xx_octeon_device(struct octeon_device *oct) lio_setup_cn66xx_octeon_device() argument 701 lio_validate_cn6xxx_config_info(struct octeon_device *oct, struct octeon_config *conf6xxx) lio_validate_cn6xxx_config_info() argument [all...] |
H A D | cn68xx_device.c | 32 static void lio_cn68xx_set_dpi_regs(struct octeon_device *oct) in lio_cn68xx_set_dpi_regs() argument 37 lio_pci_writeq(oct, CN6XXX_DPI_DMA_CTL_MASK, CN6XXX_DPI_DMA_CONTROL); in lio_cn68xx_set_dpi_regs() 38 dev_dbg(&oct->pci_dev->dev, "DPI_DMA_CONTROL: 0x%016llx\n", in lio_cn68xx_set_dpi_regs() 39 lio_pci_readq(oct, CN6XXX_DPI_DMA_CONTROL)); in lio_cn68xx_set_dpi_regs() 46 lio_pci_writeq(oct, 0, CN6XXX_DPI_DMA_ENG_ENB(i)); in lio_cn68xx_set_dpi_regs() 47 lio_pci_writeq(oct, fifo_sizes[i], CN6XXX_DPI_DMA_ENG_BUF(i)); in lio_cn68xx_set_dpi_regs() 48 dev_dbg(&oct->pci_dev->dev, "DPI_ENG_BUF%d: 0x%016llx\n", i, in lio_cn68xx_set_dpi_regs() 49 lio_pci_readq(oct, CN6XXX_DPI_DMA_ENG_BUF(i))); in lio_cn68xx_set_dpi_regs() 56 lio_pci_writeq(oct, 1, CN6XXX_DPI_CTL); in lio_cn68xx_set_dpi_regs() 57 dev_dbg(&oct in lio_cn68xx_set_dpi_regs() 61 lio_cn68xx_soft_reset(struct octeon_device *oct) lio_cn68xx_soft_reset() argument 69 lio_cn68xx_setup_pkt_ctl_regs(struct octeon_device *oct) lio_cn68xx_setup_pkt_ctl_regs() argument 91 lio_cn68xx_setup_device_regs(struct octeon_device *oct) lio_cn68xx_setup_device_regs() argument 109 lio_cn68xx_vendor_message_fix(struct octeon_device *oct) lio_cn68xx_vendor_message_fix() argument 119 lio_is_210nv(struct octeon_device *oct) lio_is_210nv() argument 126 lio_setup_cn68xx_octeon_device(struct octeon_device *oct) lio_setup_cn68xx_octeon_device() argument [all...] |
H A D | cn23xx_pf_device.c | 39 void cn23xx_dump_pf_initialized_regs(struct octeon_device *oct) in cn23xx_dump_pf_initialized_regs() argument 43 struct octeon_cn23xx_pf *cn23xx = (struct octeon_cn23xx_pf *)oct->chip; in cn23xx_dump_pf_initialized_regs() 46 dev_dbg(&oct->pci_dev->dev, "%s[%llx] : 0x%llx\n", in cn23xx_dump_pf_initialized_regs() 48 CVM_CAST64(octeon_read_csr64(oct, CN23XX_WIN_WR_MASK_REG))); in cn23xx_dump_pf_initialized_regs() 49 dev_dbg(&oct->pci_dev->dev, "%s[%llx] : 0x%016llx\n", in cn23xx_dump_pf_initialized_regs() 51 CVM_CAST64(octeon_read_csr64(oct, CN23XX_SLI_SCRATCH1))); in cn23xx_dump_pf_initialized_regs() 52 dev_dbg(&oct->pci_dev->dev, "%s[%llx] : 0x%016llx\n", in cn23xx_dump_pf_initialized_regs() 54 lio_pci_readq(oct, CN23XX_RST_SOFT_RST)); in cn23xx_dump_pf_initialized_regs() 57 dev_dbg(&oct->pci_dev->dev, "%s[%llx] : 0x%016llx\n", in cn23xx_dump_pf_initialized_regs() 59 lio_pci_readq(oct, CN23XX_DPI_DMA_CONTRO in cn23xx_dump_pf_initialized_regs() 208 cn23xx_pf_soft_reset(struct octeon_device *oct) cn23xx_pf_soft_reset() argument 239 cn23xx_enable_error_reporting(struct octeon_device *oct) cn23xx_enable_error_reporting() argument 269 cn23xx_coprocessor_clock(struct octeon_device *oct) cn23xx_coprocessor_clock() argument 279 cn23xx_pf_get_oq_ticks(struct octeon_device *oct, u32 time_intr_in_us) cn23xx_pf_get_oq_ticks() argument 301 cn23xx_setup_global_mac_regs(struct octeon_device *oct) cn23xx_setup_global_mac_regs() argument 345 cn23xx_reset_io_queues(struct octeon_device *oct) cn23xx_reset_io_queues() argument 400 cn23xx_pf_setup_global_input_regs(struct octeon_device *oct) cn23xx_pf_setup_global_input_regs() argument 475 cn23xx_pf_setup_global_output_regs(struct octeon_device *oct) cn23xx_pf_setup_global_output_regs() argument 564 cn23xx_setup_pf_device_regs(struct octeon_device *oct) cn23xx_setup_pf_device_regs() argument 587 cn23xx_setup_iq_regs(struct octeon_device *oct, u32 iq_no) cn23xx_setup_iq_regs() argument 628 cn23xx_setup_oq_regs(struct octeon_device *oct, u32 oq_no) cn23xx_setup_oq_regs() argument 682 struct octeon_device *oct = mbox->oct_dev; cn23xx_pf_mbox_thread() local 709 cn23xx_setup_pf_mbox(struct octeon_device *oct) cn23xx_setup_pf_mbox() argument 773 cn23xx_free_pf_mbox(struct octeon_device *oct) cn23xx_free_pf_mbox() argument 790 cn23xx_enable_io_queues(struct octeon_device *oct) cn23xx_enable_io_queues() argument 867 cn23xx_disable_io_queues(struct octeon_device *oct) cn23xx_disable_io_queues() argument 945 struct octeon_device *oct = ioq_vector->oct_dev; cn23xx_pf_msix_interrupt_handler() local 984 cn23xx_handle_pf_mbox_intr(struct octeon_device *oct) cn23xx_handle_pf_mbox_intr() argument 1009 struct octeon_device *oct = (struct octeon_device *)dev; cn23xx_interrupt_handler() local 1042 cn23xx_bar1_idx_setup(struct octeon_device *oct, u64 core_addr, u32 idx, int valid) cn23xx_bar1_idx_setup() argument 1070 cn23xx_bar1_idx_write(struct octeon_device *oct, u32 idx, u32 mask) cn23xx_bar1_idx_write() argument 1076 cn23xx_bar1_idx_read(struct octeon_device *oct, u32 idx) cn23xx_bar1_idx_read() argument 1103 cn23xx_enable_pf_interrupt(struct octeon_device *oct, u8 intr_flag) cn23xx_enable_pf_interrupt() argument 1126 cn23xx_disable_pf_interrupt(struct octeon_device *oct, u8 intr_flag) cn23xx_disable_pf_interrupt() argument 1148 cn23xx_get_pcie_qlmport(struct octeon_device *oct) cn23xx_get_pcie_qlmport() argument 1156 cn23xx_get_pf_num(struct octeon_device *oct) cn23xx_get_pf_num() argument 1202 cn23xx_setup_reg_address(struct octeon_device *oct) cn23xx_setup_reg_address() argument 1251 cn23xx_sriov_config(struct octeon_device *oct) cn23xx_sriov_config() argument 1309 setup_cn23xx_octeon_pf_device(struct octeon_device *oct) setup_cn23xx_octeon_pf_device() argument 1381 validate_cn23xx_pf_config_info(struct octeon_device *oct, struct octeon_config *conf23xx) validate_cn23xx_pf_config_info() argument 1420 cn23xx_fw_loaded(struct octeon_device *oct) cn23xx_fw_loaded() argument 1439 cn23xx_tell_vf_its_macaddr_changed(struct octeon_device *oct, int vfidx, u8 *mac) cn23xx_tell_vf_its_macaddr_changed() argument 1461 cn23xx_get_vf_stats_callback(struct octeon_device *oct, struct octeon_mbox_cmd *cmd, void *arg) cn23xx_get_vf_stats_callback() argument 1470 cn23xx_get_vf_stats(struct octeon_device *oct, int vfidx, struct oct_vf_stats *stats) cn23xx_get_vf_stats() argument [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_CONTROL6 in cn23xx_vf_reset_io_queues() 101 cn23xx_vf_setup_global_input_regs(struct octeon_device *oct) cn23xx_vf_setup_global_input_regs() argument 151 cn23xx_vf_setup_global_output_regs(struct octeon_device *oct) cn23xx_vf_setup_global_output_regs() argument 202 cn23xx_setup_vf_device_regs(struct octeon_device *oct) cn23xx_setup_vf_device_regs() argument 212 cn23xx_setup_vf_iq_regs(struct octeon_device *oct, u32 iq_no) cn23xx_setup_vf_iq_regs() argument 245 cn23xx_setup_vf_oq_regs(struct octeon_device *oct, u32 oq_no) cn23xx_setup_vf_oq_regs() argument 271 cn23xx_free_vf_mbox(struct octeon_device *oct) cn23xx_free_vf_mbox() argument 278 cn23xx_setup_vf_mbox(struct octeon_device *oct) cn23xx_setup_vf_mbox() argument 318 cn23xx_enable_vf_io_queues(struct octeon_device *oct) cn23xx_enable_vf_io_queues() argument 359 cn23xx_disable_vf_io_queues(struct octeon_device *oct) cn23xx_disable_vf_io_queues() argument 372 cn23xx_vf_ask_pf_to_do_flr(struct octeon_device *oct) cn23xx_vf_ask_pf_to_do_flr() argument 390 octeon_pfvf_hs_callback(struct octeon_device *oct, struct octeon_mbox_cmd *cmd, void *arg) octeon_pfvf_hs_callback() argument 406 cn23xx_octeon_pfvf_handshake(struct octeon_device *oct) cn23xx_octeon_pfvf_handshake() argument 474 struct octeon_device *oct = ioq_vector->oct_dev; cn23xx_handle_vf_mbox_intr() local 490 struct octeon_device *oct = ioq_vector->oct_dev; cn23xx_vf_msix_interrupt_handler() local 544 cn23xx_enable_vf_interrupt(struct octeon_device *oct, u8 intr_flag) cn23xx_enable_vf_interrupt() argument 585 cn23xx_disable_vf_interrupt(struct octeon_device *oct, u8 intr_flag) cn23xx_disable_vf_interrupt() argument 616 cn23xx_setup_octeon_vf_device(struct octeon_device *oct) cn23xx_setup_octeon_vf_device() argument [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, con in __verify_octeon_config_info() 613 oct_get_config_info(struct octeon_device *oct, u16 card_type) oct_get_config_info() argument 645 octeon_free_device_mem(struct octeon_device *oct) octeon_free_device_mem() argument 669 struct octeon_device *oct; octeon_allocate_device_mem() local 722 struct octeon_device *oct = NULL; octeon_allocate_device() local 760 octeon_register_device(struct octeon_device *oct, int bus, int dev, int func, int is_pf) octeon_register_device() argument 813 octeon_deregister_device(struct octeon_device *oct) octeon_deregister_device() argument 827 octeon_allocate_ioq_vector(struct octeon_device *oct, u32 num_ioqs) octeon_allocate_ioq_vector() argument 859 octeon_free_ioq_vector(struct octeon_device *oct) octeon_free_ioq_vector() argument 865 octeon_setup_instr_queues(struct octeon_device *oct) octeon_setup_instr_queues() argument 909 octeon_setup_output_queues(struct octeon_device *oct) octeon_setup_output_queues() argument 945 octeon_set_io_queues_off(struct octeon_device *oct) octeon_set_io_queues_off() argument 994 octeon_set_droq_pkt_op(struct octeon_device *oct, u32 q_no, u32 enable) octeon_set_droq_pkt_op() argument 1013 octeon_init_dispatch_list(struct octeon_device *oct) octeon_init_dispatch_list() argument 1032 octeon_delete_dispatch_list(struct octeon_device *oct) octeon_delete_dispatch_list() argument 1122 octeon_register_dispatch_fn(struct octeon_device *oct, u16 opcode, u16 subcode, octeon_dispatch_fn_t fn, void *fn_arg) octeon_register_dispatch_fn() argument 1189 struct octeon_device *oct = (struct octeon_device *)buf; octeon_core_drv_init() local 1267 octeon_get_tx_qsize(struct octeon_device *oct, u32 q_no) octeon_get_tx_qsize() argument 1277 octeon_get_rx_qsize(struct octeon_device *oct, u32 q_no) octeon_get_rx_qsize() argument 1286 octeon_get_conf(struct octeon_device *oct) octeon_get_conf() argument 1323 lio_pci_readq(struct octeon_device *oct, u64 addr) lio_pci_readq() argument 1354 lio_pci_writeq(struct octeon_device *oct, u64 val, u64 addr) lio_pci_writeq() argument 1374 octeon_mem_access_ok(struct octeon_device *oct) octeon_mem_access_ok() argument 1393 octeon_wait_for_ddr_init(struct octeon_device *oct, u32 *timeout) octeon_wait_for_ddr_init() argument 1433 struct octeon_device *oct = NULL; lio_enable_irq() local [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 in __cvmx_bootmem_check_version() 228 __cvmx_bootmem_find_named_block_flags(struct octeon_device *oct, const char *name, u32 flags) __cvmx_bootmem_find_named_block_flags() argument 258 cvmx_bootmem_phy_named_block_find(struct octeon_device *oct, const char *name, u32 flags) cvmx_bootmem_phy_named_block_find() argument 335 octeon_named_block_find(struct octeon_device *oct, const char *name, u64 *base_addr, u64 *size) octeon_named_block_find() argument 361 octeon_console_send_cmd(struct octeon_device *oct, char *cmd_str, u32 wait_hundredths) octeon_console_send_cmd() argument 400 octeon_wait_for_bootloader(struct octeon_device *oct, u32 wait_time_hundredths) octeon_wait_for_bootloader() argument 420 octeon_console_handle_result(struct octeon_device *oct, size_t console_num) octeon_console_handle_result() argument 432 output_console_line(struct octeon_device *oct, struct octeon_console *console, size_t console_num, char *console_buffer, s32 bytes_read) output_console_line() argument 485 struct octeon_device *oct = (struct octeon_device *)wk->ctxptr; check_console() local 534 octeon_init_consoles(struct octeon_device *oct) octeon_init_consoles() argument 577 octeon_get_uboot_version(struct octeon_device *oct) octeon_get_uboot_version() argument 653 octeon_add_console(struct octeon_device *oct, u32 console_num, char *dbg_enb) octeon_add_console() argument 715 octeon_remove_consoles(struct octeon_device *oct) octeon_remove_consoles() argument 758 octeon_console_read(struct octeon_device *oct, u32 console_num, char *buffer, u32 buf_size) octeon_console_read() argument 808 octeon_download_firmware(struct octeon_device *oct, const u8 *data, size_t size) octeon_download_firmware() argument [all...] |
H A D | request_manager.c | 39 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)) 56 int octeon_init_instr_queue(struct octeon_device *oct, in octeon_init_instr_queue() argument 65 int numa_node = dev_to_node(&oct->pci_dev->dev); in octeon_init_instr_queue() 67 if (OCTEON_CN6XXX(oct)) in octeon_init_instr_queue() 68 conf = &(CFG_GET_IQ_CFG(CHIP_CONF(oct, cn6xxx))); in octeon_init_instr_queue() 69 else if (OCTEON_CN23XX_PF(oct)) in octeon_init_instr_queue() 165 octeon_delete_instr_queue(struct octeon_device *oct, u32 iq_no) octeon_delete_instr_queue() argument 199 octeon_setup_iq(struct octeon_device *oct, int ifidx, int q_index, union oct_txpciq txpciq, u32 num_descs, void *app_ctx) octeon_setup_iq() argument 244 lio_wait_for_instr_fetch(struct octeon_device *oct) lio_wait_for_instr_fetch() argument 272 ring_doorbell(struct octeon_device *oct, struct octeon_instr_queue *iq) ring_doorbell() argument 284 octeon_ring_doorbell_locked(struct octeon_device *oct, u32 iq_no) octeon_ring_doorbell_locked() argument 344 octeon_register_reqtype_free_fn(struct octeon_device *oct, int reqtype, void (*fn)(void *)) octeon_register_reqtype_free_fn() argument 368 lio_process_iq_request_list(struct octeon_device *oct, struct octeon_instr_queue *iq, u32 napi_budget) lio_process_iq_request_list() argument 445 octeon_flush_iq(struct octeon_device *oct, struct octeon_instr_queue *iq, u32 napi_budget) octeon_flush_iq() argument 497 __check_db_timeout(struct octeon_device *oct, u64 iq_no) __check_db_timeout() argument 530 struct octeon_device *oct = (struct octeon_device *)wk->ctxptr; check_db_timeout() local 540 octeon_send_command(struct octeon_device *oct, u32 iq_no, u32 force_db, void *cmd, void *buf, u32 datasize, u32 reqtype) octeon_send_command() argument 580 octeon_prepare_soft_command(struct octeon_device *oct, struct octeon_soft_command *sc, u8 opcode, u8 subcode, u32 irh_ossp, u64 ossp0, u64 ossp1) octeon_prepare_soft_command() argument 686 octeon_send_soft_command(struct octeon_device *oct, struct octeon_soft_command *sc) octeon_send_soft_command() argument 739 octeon_setup_sc_buffer_pool(struct octeon_device *oct) octeon_setup_sc_buffer_pool() argument 768 octeon_free_sc_done_list(struct octeon_device *oct) octeon_free_sc_done_list() argument 807 octeon_free_sc_zombie_list(struct octeon_device *oct) octeon_free_sc_zombie_list() argument 831 octeon_free_sc_buffer_pool(struct octeon_device *oct) octeon_free_sc_buffer_pool() argument 855 octeon_alloc_soft_command(struct octeon_device *oct, u32 datasize, u32 rdatasize, u32 ctxsize) octeon_alloc_soft_command() argument 926 octeon_free_soft_command(struct octeon_device *oct, struct octeon_soft_command *sc) octeon_free_soft_command() argument [all...] |
H A D | lio_vf_main.c | 70 static int octeon_device_init(struct octeon_device *oct); 73 static int lio_wait_for_oq_pkts(struct octeon_device *oct) in lio_wait_for_oq_pkts() argument 76 (struct octeon_device_priv *)oct->priv; in lio_wait_for_oq_pkts() 84 for (i = 0; i < MAX_OCTEON_OUTPUT_QUEUES(oct); i++) { in lio_wait_for_oq_pkts() 85 if (!(oct->io_qmask.oq & BIT_ULL(i))) in lio_wait_for_oq_pkts() 87 pkt_cnt += octeon_droq_check_hw_for_pkts(oct->droq[i]); in lio_wait_for_oq_pkts() 103 * @oct: Pointer to Octeon device 105 static void pcierror_quiesce_device(struct octeon_device *oct) in pcierror_quiesce_device() argument 117 if (wait_for_pending_requests(oct)) in pcierror_quiesce_device() 118 dev_err(&oct in pcierror_quiesce_device() 169 stop_pci_io(struct octeon_device *oct) stop_pci_io() argument 218 struct octeon_device *oct = pci_get_drvdata(pdev); liquidio_pcie_error_detected() local 305 struct octeon_device *oct = lio->oct_dev; setup_link_status_change_wq() local 343 struct octeon_device *oct = lio->oct_dev; update_link_status() local 422 octeon_pci_flr(struct octeon_device *oct) octeon_pci_flr() argument 443 octeon_destroy_resources(struct octeon_device *oct) octeon_destroy_resources() argument 600 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; send_rx_ctrl_cmd() local 660 liquidio_destroy_nic_device(struct octeon_device *oct, int ifidx) liquidio_destroy_nic_device() argument 716 liquidio_stop_nic_module(struct octeon_device *oct) liquidio_stop_nic_module() argument 775 octeon_pci_os_setup(struct octeon_device *oct) octeon_pci_os_setup() argument 912 struct octeon_device *oct = lio->oct_dev; liquidio_open() local 959 struct octeon_device *oct = lio->oct_dev; liquidio_stop() local 1041 struct octeon_device *oct = lio->oct_dev; liquidio_set_uc_list() local 1082 struct octeon_device *oct = lio->oct_dev; liquidio_set_mcast_list() local 1133 struct octeon_device *oct = lio->oct_dev; liquidio_set_mac() local 1182 struct octeon_device *oct; liquidio_get_stats64() local 1317 handle_timestamp(struct octeon_device *oct, u32 status, void *buf) handle_timestamp() argument 1359 send_nic_timestamp_pkt(struct octeon_device *oct, struct octnic_data_pkt *ndata, struct octnet_buf_free_info *finfo, int xmit_more) send_nic_timestamp_pkt() argument 1422 struct octeon_device *oct; liquidio_xmit() local 1662 struct octeon_device *oct = lio->oct_dev; liquidio_vlan_rx_add_vid() local 1690 struct octeon_device *oct = lio->oct_dev; liquidio_vlan_rx_kill_vid() local 1724 struct octeon_device *oct = lio->oct_dev; liquidio_set_rxcsum_command() local 1759 struct octeon_device *oct = lio->oct_dev; liquidio_vxlan_port_command() local 1901 struct octeon_device *oct = (struct octeon_device *)buf; lio_nic_info() local 2253 liquidio_init_nic_module(struct octeon_device *oct) liquidio_init_nic_module() argument 2291 octeon_device_init(struct octeon_device *oct) octeon_device_init() argument [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) 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, u argument 94 __octeon_pci_rw_core_mem(struct octeon_device *oct, u64 addr, u8 *hostbuf, u32 len, u32 op) __octeon_pci_rw_core_mem() argument 160 octeon_pci_read_core_mem(struct octeon_device *oct, u64 coreaddr, u8 *buf, u32 len) octeon_pci_read_core_mem() argument 169 octeon_pci_write_core_mem(struct octeon_device *oct, u64 coreaddr, const u8 *buf, u32 len) octeon_pci_write_core_mem() argument 177 octeon_read_device_mem64(struct octeon_device *oct, u64 coreaddr) octeon_read_device_mem64() argument 186 octeon_read_device_mem32(struct octeon_device *oct, u64 coreaddr) octeon_read_device_mem32() argument 195 octeon_write_device_mem32(struct octeon_device *oct, u64 coreaddr, u32 val) octeon_write_device_mem32() argument [all...] |
H A D | lio_main.c | 150 static int octeon_dbg_console_print(struct octeon_device *oct, u32 console_num, 170 struct octeon_device *oct = oct_priv->dev; in octeon_droq_bh() local 172 for (q_no = 0; q_no < MAX_OCTEON_OUTPUT_QUEUES(oct); q_no++) { in octeon_droq_bh() 173 if (!(oct->io_qmask.oq & BIT_ULL(q_no))) in octeon_droq_bh() 175 reschedule |= octeon_droq_process_packets(oct, oct->droq[q_no], in octeon_droq_bh() 177 lio_enable_irq(oct->droq[q_no], NULL); in octeon_droq_bh() 179 if (OCTEON_CN23XX_PF(oct) && oct->msix_on) { in octeon_droq_bh() 183 int adjusted_q_no = q_no + oct in octeon_droq_bh() 197 lio_wait_for_oq_pkts(struct octeon_device *oct) lio_wait_for_oq_pkts() argument 228 force_io_queues_off(struct octeon_device *oct) force_io_queues_off() argument 244 pcierror_quiesce_device(struct octeon_device *oct) pcierror_quiesce_device() argument 309 stop_pci_io(struct octeon_device *oct) stop_pci_io() argument 345 struct octeon_device *oct = pci_get_drvdata(pdev); liquidio_pcie_error_detected() local 538 struct octeon_device *oct = lio->oct_dev; setup_link_status_change_wq() local 577 struct octeon_device *oct = lio->oct_dev; update_link_status() local 621 struct octeon_device *oct = lio->oct_dev; lio_sync_octeon_time() local 671 struct octeon_device *oct = lio->oct_dev; setup_sync_octeon_time_wq() local 708 get_other_octeon_device(struct octeon_device *oct) get_other_octeon_device() argument 734 disable_all_vf_links(struct octeon_device *oct) disable_all_vf_links() argument 760 struct octeon_device *oct = param; liquidio_watchdog() local 928 octeon_pci_flr(struct octeon_device *oct) octeon_pci_flr() argument 955 octeon_destroy_resources(struct octeon_device *oct) octeon_destroy_resources() argument 1160 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; send_rx_ctrl_cmd() local 1218 liquidio_destroy_nic_device(struct octeon_device *oct, int ifidx) liquidio_destroy_nic_device() argument 1276 liquidio_stop_nic_module(struct octeon_device *oct) liquidio_stop_nic_module() argument 1350 octeon_chip_specific_setup(struct octeon_device *oct) octeon_chip_specific_setup() argument 1394 octeon_pci_os_setup(struct octeon_device *oct) octeon_pci_os_setup() argument 1526 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; liquidio_ptp_adjfreq() local 1583 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; liquidio_ptp_gettime() local 1606 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; liquidio_ptp_settime() local 1639 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; oct_ptp_open() local 1669 liquidio_ptp_init(struct octeon_device *oct) liquidio_ptp_init() argument 1688 load_firmware(struct octeon_device *oct) load_firmware() argument 1745 struct octeon_device *oct = lio->oct_dev; setup_tx_poll_fn() local 1778 struct octeon_device *oct = lio->oct_dev; liquidio_open() local 1859 struct octeon_device *oct = lio->oct_dev; liquidio_stop() local 1960 struct octeon_device *oct = lio->oct_dev; liquidio_set_mcast_list() local 2010 struct octeon_device *oct = lio->oct_dev; liquidio_set_mac() local 2054 struct octeon_device *oct; liquidio_get_stats64() local 2204 handle_timestamp(struct octeon_device *oct, u32 status, void *buf) handle_timestamp() argument 2250 send_nic_timestamp_pkt(struct octeon_device *oct, struct octnic_data_pkt *ndata, struct octnet_buf_free_info *finfo, int xmit_more) send_nic_timestamp_pkt() argument 2318 struct octeon_device *oct; liquidio_xmit() local 2577 struct octeon_device *oct = lio->oct_dev; liquidio_vlan_rx_add_vid() local 2606 struct octeon_device *oct = lio->oct_dev; liquidio_vlan_rx_kill_vid() local 2640 struct octeon_device *oct = lio->oct_dev; liquidio_set_rxcsum_command() local 2677 struct octeon_device *oct = lio->oct_dev; liquidio_vxlan_port_command() local 2825 struct octeon_device *oct = lio->oct_dev; __liquidio_set_vf_mac() local 2865 struct octeon_device *oct = lio->oct_dev; liquidio_set_vf_mac() local 2882 struct octeon_device *oct = lio->oct_dev; liquidio_set_vf_spoofchk() local 2938 struct octeon_device *oct = lio->oct_dev; liquidio_set_vf_vlan() local 2990 struct octeon_device *oct = lio->oct_dev; liquidio_get_vf_config() local 3018 struct octeon_device *oct = lio->oct_dev; liquidio_send_vf_trust_cmd() local 3056 struct octeon_device *oct = lio->oct_dev; liquidio_set_vf_trust() local 3108 struct octeon_device *oct = lio->oct_dev; liquidio_set_vf_link_state() local 3141 struct octeon_device *oct; liquidio_eswitch_mode_get() local 3156 struct octeon_device *oct; liquidio_eswitch_mode_set() local 3196 struct octeon_device *oct = lio->oct_dev; liquidio_get_port_parent_id() local 3211 struct octeon_device *oct = lio->oct_dev; liquidio_get_vf_stats() local 3310 struct octeon_device *oct = (struct octeon_device *)buf; lio_nic_info() local 3808 octeon_enable_sriov(struct octeon_device *oct) octeon_enable_sriov() argument 3848 lio_pci_sriov_disable(struct octeon_device *oct) lio_pci_sriov_disable() argument 3874 struct octeon_device *oct = pci_get_drvdata(dev); liquidio_enable_sriov() local 3914 liquidio_init_nic_module(struct octeon_device *oct) liquidio_init_nic_module() argument 3971 struct octeon_device *oct; nic_starter() local 4011 struct octeon_device *oct = (struct octeon_device *)buf; octeon_recv_vf_drv_notice() local 4352 octeon_dbg_console_print(struct octeon_device *oct, u32 console_num, char *prefix, char *suffix) octeon_dbg_console_print() argument [all...] |
H A D | lio_vf_rep.c | 55 lio_vf_rep_send_soft_command(struct octeon_device *oct, in lio_vf_rep_send_soft_command() argument 66 octeon_alloc_soft_command(oct, req_size, in lio_vf_rep_send_soft_command() 82 octeon_prepare_soft_command(oct, sc, OPCODE_NIC, in lio_vf_rep_send_soft_command() 85 err = octeon_send_soft_command(oct, sc); in lio_vf_rep_send_soft_command() 89 err = wait_for_sc_completion_timeout(oct, sc, 0); in lio_vf_rep_send_soft_command() 95 dev_err(&oct->pci_dev->dev, "VF rep send config failed\n"); in lio_vf_rep_send_soft_command() 103 octeon_free_soft_command(oct, sc); in lio_vf_rep_send_soft_command() 113 struct octeon_device *oct; in lio_vf_rep_open() local 116 oct = vf_rep->oct; in lio_vf_rep_open() 146 struct octeon_device *oct; lio_vf_rep_stop() local 203 struct octeon_device *oct; lio_vf_rep_change_mtu() local 231 struct octeon_device *oct = vf_rep->oct; lio_vf_rep_phys_port_name() local 243 lio_vf_rep_get_ndev(struct octeon_device *oct, int ifidx) lio_vf_rep_get_ndev() argument 261 lio_vf_rep_copy_packet(struct octeon_device *oct, struct sk_buff *skb, int len) lio_vf_rep_copy_packet() argument 299 struct octeon_device *oct; lio_vf_rep_pkt_recv() local 348 lio_vf_rep_packet_sent_callback(struct octeon_device *oct, u32 status, void *buf) lio_vf_rep_packet_sent_callback() argument 374 struct octeon_device *oct = vf_rep->oct; lio_vf_rep_pkt_xmit() local 468 struct octeon_device *oct; lio_vf_rep_fetch_stats() local 490 lio_vf_rep_create(struct octeon_device *oct) lio_vf_rep_create() argument 576 lio_vf_rep_destroy(struct octeon_device *oct) lio_vf_rep_destroy() argument 613 struct octeon_device *oct; lio_vf_rep_netdev_event() local [all...] |
H A D | lio_core.c | 77 * @oct: octeon_device 81 int lio_setup_glists(struct octeon_device *oct, struct lio *lio, int num_iqs) in lio_setup_glists() argument 116 int numa_node = dev_to_node(&oct->pci_dev->dev); in lio_setup_glists() 123 lio_dma_alloc(oct, in lio_setup_glists() 161 struct octeon_device *oct = lio->oct_dev; in liquidio_set_feature() local 176 dev_err(&oct->pci_dev->dev, "Feature change failed in core (ret: 0x%x)\n", in liquidio_set_feature() 256 struct octeon_device *oct = lio->oct_dev; in liquidio_link_ctrl_cmd_completion() local 297 dev_info(&oct->pci_dev->dev, "%s LRO Enabled\n", netdev->name); in liquidio_link_ctrl_cmd_completion() 301 dev_info(&oct->pci_dev->dev, "%s LRO Disabled\n", in liquidio_link_ctrl_cmd_completion() 306 dev_info(&oct in liquidio_link_ctrl_cmd_completion() 399 octeon_pf_changed_vf_macaddr(struct octeon_device *oct, u8 *mac) octeon_pf_changed_vf_macaddr() argument 430 octeon_schedule_rxq_oom_work(struct octeon_device *oct, struct octeon_droq *droq) octeon_schedule_rxq_oom_work() argument 445 struct octeon_device *oct = lio->oct_dev; octnet_poll_check_rxq_oom_status() local 459 struct octeon_device *oct = lio->oct_dev; setup_rx_oom_poll_fn() local 485 struct octeon_device *oct = lio->oct_dev; cleanup_rx_oom_poll_fn() local 501 lio_update_txq_status(struct octeon_device *oct, int iq_num) lio_update_txq_status() argument 533 octeon_setup_droq(struct octeon_device *oct, int q_no, int num_descs, int desc_size, void *app_ctx) octeon_setup_droq() argument 589 struct octeon_device *oct = lio->oct_dev; liquidio_push_packet() local 722 struct octeon_device *oct; liquidio_napi_drv_callback() local 750 struct octeon_device *oct; liquidio_napi_poll() local 912 struct octeon_device *oct = droq->oct_dev; liquidio_schedule_msix_droq_pkt_handler() local 938 struct octeon_device *oct = ioq_vector->oct_dev; liquidio_msix_intr_handler() local 954 liquidio_schedule_droq_pkt_handlers(struct octeon_device *oct) liquidio_schedule_droq_pkt_handlers() argument 987 struct octeon_device *oct = (struct octeon_device *)dev; liquidio_legacy_intr_handler() local 1012 octeon_setup_interrupt(struct octeon_device *oct, u32 num_ioqs) octeon_setup_interrupt() argument 1212 struct octeon_device *oct = lio->oct_dev; liquidio_change_mtu() local 1266 lio_wait_for_clean_oq(struct octeon_device *oct) lio_wait_for_clean_oq() argument 1521 struct octeon_device *oct = lio->oct_dev; liquidio_set_speed() local 1598 struct octeon_device *oct = lio->oct_dev; liquidio_get_speed() local 1673 struct octeon_device *oct; liquidio_set_fec() local 1762 struct octeon_device *oct; liquidio_get_fec() local [all...] |
/kernel/linux/linux-6.6/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 in lio_cn6xxx_soft_reset() 55 lio_cn6xxx_enable_error_reporting(struct octeon_device *oct) lio_cn6xxx_enable_error_reporting() argument 71 lio_cn6xxx_setup_pcie_mps(struct octeon_device *oct, enum octeon_pcie_mps mps) lio_cn6xxx_setup_pcie_mps() argument 94 lio_cn6xxx_setup_pcie_mrrs(struct octeon_device *oct, enum octeon_pcie_mrrs mrrs) lio_cn6xxx_setup_pcie_mrrs() argument 122 lio_cn6xxx_coprocessor_clock(struct octeon_device *oct) lio_cn6xxx_coprocessor_clock() argument 130 lio_cn6xxx_get_oq_ticks(struct octeon_device *oct, u32 time_intr_in_us) lio_cn6xxx_get_oq_ticks() argument 155 lio_cn6xxx_setup_global_input_regs(struct octeon_device *oct) lio_cn6xxx_setup_global_input_regs() argument 170 lio_cn66xx_setup_pkt_ctl_regs(struct octeon_device *oct) lio_cn66xx_setup_pkt_ctl_regs() argument 193 lio_cn6xxx_setup_global_output_regs(struct octeon_device *oct) lio_cn6xxx_setup_global_output_regs() argument 247 lio_cn6xxx_setup_device_regs(struct octeon_device *oct) lio_cn6xxx_setup_device_regs() argument 264 lio_cn6xxx_setup_iq_regs(struct octeon_device *oct, u32 iq_no) lio_cn6xxx_setup_iq_regs() argument 290 lio_cn66xx_setup_iq_regs(struct octeon_device *oct, u32 iq_no) lio_cn66xx_setup_iq_regs() argument 301 lio_cn6xxx_setup_oq_regs(struct octeon_device *oct, u32 oq_no) lio_cn6xxx_setup_oq_regs() argument 330 lio_cn6xxx_enable_io_queues(struct octeon_device *oct) lio_cn6xxx_enable_io_queues() argument 349 lio_cn6xxx_disable_io_queues(struct octeon_device *oct) lio_cn6xxx_disable_io_queues() argument 412 lio_cn6xxx_bar1_idx_setup(struct octeon_device *oct, u64 core_addr, u32 idx, int valid) lio_cn6xxx_bar1_idx_setup() argument 436 lio_cn6xxx_bar1_idx_write(struct octeon_device *oct, u32 idx, u32 mask) lio_cn6xxx_bar1_idx_write() argument 443 lio_cn6xxx_bar1_idx_read(struct octeon_device *oct, u32 idx) lio_cn6xxx_bar1_idx_read() argument 470 lio_cn6xxx_enable_interrupt(struct octeon_device *oct, u8 unused __attribute__((unused))) lio_cn6xxx_enable_interrupt() argument 480 lio_cn6xxx_disable_interrupt(struct octeon_device *oct, u8 unused __attribute__((unused))) lio_cn6xxx_disable_interrupt() argument 489 lio_cn6xxx_get_pcie_qlmport(struct octeon_device *oct) lio_cn6xxx_get_pcie_qlmport() argument 500 lio_cn6xxx_process_pcie_error_intr(struct octeon_device *oct, u64 intr64) lio_cn6xxx_process_pcie_error_intr() argument 506 lio_cn6xxx_process_droq_intr_regs(struct octeon_device *oct) lio_cn6xxx_process_droq_intr_regs() argument 572 struct octeon_device *oct = (struct octeon_device *)dev; lio_cn6xxx_process_interrupt_regs() local 607 lio_cn6xxx_setup_reg_address(struct octeon_device *oct, void *chip, struct octeon_reg_list *reg_list) lio_cn6xxx_setup_reg_address() argument 650 lio_setup_cn66xx_octeon_device(struct octeon_device *oct) lio_setup_cn66xx_octeon_device() argument 702 lio_validate_cn6xxx_config_info(struct octeon_device *oct, struct octeon_config *conf6xxx) lio_validate_cn6xxx_config_info() argument [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 in lio_cn68xx_set_dpi_regs() 60 lio_cn68xx_soft_reset(struct octeon_device *oct) lio_cn68xx_soft_reset() argument 68 lio_cn68xx_setup_pkt_ctl_regs(struct octeon_device *oct) lio_cn68xx_setup_pkt_ctl_regs() argument 90 lio_cn68xx_setup_device_regs(struct octeon_device *oct) lio_cn68xx_setup_device_regs() argument 108 lio_cn68xx_vendor_message_fix(struct octeon_device *oct) lio_cn68xx_vendor_message_fix() argument 118 lio_is_210nv(struct octeon_device *oct) lio_is_210nv() argument 125 lio_setup_cn68xx_octeon_device(struct octeon_device *oct) lio_setup_cn68xx_octeon_device() argument [all...] |
H A D | cn23xx_pf_device.c | 39 void cn23xx_dump_pf_initialized_regs(struct octeon_device *oct) in cn23xx_dump_pf_initialized_regs() argument 43 struct octeon_cn23xx_pf *cn23xx = (struct octeon_cn23xx_pf *)oct->chip; in cn23xx_dump_pf_initialized_regs() 46 dev_dbg(&oct->pci_dev->dev, "%s[%llx] : 0x%llx\n", in cn23xx_dump_pf_initialized_regs() 48 CVM_CAST64(octeon_read_csr64(oct, CN23XX_WIN_WR_MASK_REG))); in cn23xx_dump_pf_initialized_regs() 49 dev_dbg(&oct->pci_dev->dev, "%s[%llx] : 0x%016llx\n", in cn23xx_dump_pf_initialized_regs() 51 CVM_CAST64(octeon_read_csr64(oct, CN23XX_SLI_SCRATCH1))); in cn23xx_dump_pf_initialized_regs() 52 dev_dbg(&oct->pci_dev->dev, "%s[%llx] : 0x%016llx\n", in cn23xx_dump_pf_initialized_regs() 54 lio_pci_readq(oct, CN23XX_RST_SOFT_RST)); in cn23xx_dump_pf_initialized_regs() 57 dev_dbg(&oct->pci_dev->dev, "%s[%llx] : 0x%016llx\n", in cn23xx_dump_pf_initialized_regs() 59 lio_pci_readq(oct, CN23XX_DPI_DMA_CONTRO in cn23xx_dump_pf_initialized_regs() 208 cn23xx_pf_soft_reset(struct octeon_device *oct) cn23xx_pf_soft_reset() argument 239 cn23xx_enable_error_reporting(struct octeon_device *oct) cn23xx_enable_error_reporting() argument 269 cn23xx_coprocessor_clock(struct octeon_device *oct) cn23xx_coprocessor_clock() argument 279 cn23xx_pf_get_oq_ticks(struct octeon_device *oct, u32 time_intr_in_us) cn23xx_pf_get_oq_ticks() argument 301 cn23xx_setup_global_mac_regs(struct octeon_device *oct) cn23xx_setup_global_mac_regs() argument 345 cn23xx_reset_io_queues(struct octeon_device *oct) cn23xx_reset_io_queues() argument 400 cn23xx_pf_setup_global_input_regs(struct octeon_device *oct) cn23xx_pf_setup_global_input_regs() argument 475 cn23xx_pf_setup_global_output_regs(struct octeon_device *oct) cn23xx_pf_setup_global_output_regs() argument 564 cn23xx_setup_pf_device_regs(struct octeon_device *oct) cn23xx_setup_pf_device_regs() argument 587 cn23xx_setup_iq_regs(struct octeon_device *oct, u32 iq_no) cn23xx_setup_iq_regs() argument 628 cn23xx_setup_oq_regs(struct octeon_device *oct, u32 oq_no) cn23xx_setup_oq_regs() argument 682 struct octeon_device *oct = mbox->oct_dev; cn23xx_pf_mbox_thread() local 709 cn23xx_setup_pf_mbox(struct octeon_device *oct) cn23xx_setup_pf_mbox() argument 771 cn23xx_free_pf_mbox(struct octeon_device *oct) cn23xx_free_pf_mbox() argument 788 cn23xx_enable_io_queues(struct octeon_device *oct) cn23xx_enable_io_queues() argument 865 cn23xx_disable_io_queues(struct octeon_device *oct) cn23xx_disable_io_queues() argument 943 struct octeon_device *oct = ioq_vector->oct_dev; cn23xx_pf_msix_interrupt_handler() local 982 cn23xx_handle_pf_mbox_intr(struct octeon_device *oct) cn23xx_handle_pf_mbox_intr() argument 1007 struct octeon_device *oct = (struct octeon_device *)dev; cn23xx_interrupt_handler() local 1040 cn23xx_bar1_idx_setup(struct octeon_device *oct, u64 core_addr, u32 idx, int valid) cn23xx_bar1_idx_setup() argument 1068 cn23xx_bar1_idx_write(struct octeon_device *oct, u32 idx, u32 mask) cn23xx_bar1_idx_write() argument 1074 cn23xx_bar1_idx_read(struct octeon_device *oct, u32 idx) cn23xx_bar1_idx_read() argument 1101 cn23xx_enable_pf_interrupt(struct octeon_device *oct, u8 intr_flag) cn23xx_enable_pf_interrupt() argument 1124 cn23xx_disable_pf_interrupt(struct octeon_device *oct, u8 intr_flag) cn23xx_disable_pf_interrupt() argument 1146 cn23xx_get_pcie_qlmport(struct octeon_device *oct) cn23xx_get_pcie_qlmport() argument 1154 cn23xx_get_pf_num(struct octeon_device *oct) cn23xx_get_pf_num() argument 1200 cn23xx_setup_reg_address(struct octeon_device *oct) cn23xx_setup_reg_address() argument 1249 cn23xx_sriov_config(struct octeon_device *oct) cn23xx_sriov_config() argument 1307 setup_cn23xx_octeon_pf_device(struct octeon_device *oct) setup_cn23xx_octeon_pf_device() argument 1380 validate_cn23xx_pf_config_info(struct octeon_device *oct, struct octeon_config *conf23xx) validate_cn23xx_pf_config_info() argument 1419 cn23xx_fw_loaded(struct octeon_device *oct) cn23xx_fw_loaded() argument 1439 cn23xx_tell_vf_its_macaddr_changed(struct octeon_device *oct, int vfidx, u8 *mac) cn23xx_tell_vf_its_macaddr_changed() argument 1462 cn23xx_get_vf_stats_callback(struct octeon_device *oct, struct octeon_mbox_cmd *cmd, void *arg) cn23xx_get_vf_stats_callback() argument 1471 cn23xx_get_vf_stats(struct octeon_device *oct, int vfidx, struct oct_vf_stats *stats) cn23xx_get_vf_stats() argument [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_CONTROL6 in cn23xx_vf_reset_io_queues() 101 cn23xx_vf_setup_global_input_regs(struct octeon_device *oct) cn23xx_vf_setup_global_input_regs() argument 151 cn23xx_vf_setup_global_output_regs(struct octeon_device *oct) cn23xx_vf_setup_global_output_regs() argument 202 cn23xx_setup_vf_device_regs(struct octeon_device *oct) cn23xx_setup_vf_device_regs() argument 212 cn23xx_setup_vf_iq_regs(struct octeon_device *oct, u32 iq_no) cn23xx_setup_vf_iq_regs() argument 245 cn23xx_setup_vf_oq_regs(struct octeon_device *oct, u32 oq_no) cn23xx_setup_vf_oq_regs() argument 271 cn23xx_free_vf_mbox(struct octeon_device *oct) cn23xx_free_vf_mbox() argument 278 cn23xx_setup_vf_mbox(struct octeon_device *oct) cn23xx_setup_vf_mbox() argument 316 cn23xx_enable_vf_io_queues(struct octeon_device *oct) cn23xx_enable_vf_io_queues() argument 357 cn23xx_disable_vf_io_queues(struct octeon_device *oct) cn23xx_disable_vf_io_queues() argument 370 cn23xx_vf_ask_pf_to_do_flr(struct octeon_device *oct) cn23xx_vf_ask_pf_to_do_flr() argument 389 octeon_pfvf_hs_callback(struct octeon_device *oct, struct octeon_mbox_cmd *cmd, void *arg) octeon_pfvf_hs_callback() argument 405 cn23xx_octeon_pfvf_handshake(struct octeon_device *oct) cn23xx_octeon_pfvf_handshake() argument 474 struct octeon_device *oct = ioq_vector->oct_dev; cn23xx_handle_vf_mbox_intr() local 490 struct octeon_device *oct = ioq_vector->oct_dev; cn23xx_vf_msix_interrupt_handler() local 544 cn23xx_enable_vf_interrupt(struct octeon_device *oct, u8 intr_flag) cn23xx_enable_vf_interrupt() argument 585 cn23xx_disable_vf_interrupt(struct octeon_device *oct, u8 intr_flag) cn23xx_disable_vf_interrupt() argument 616 cn23xx_setup_octeon_vf_device(struct octeon_device *oct) cn23xx_setup_octeon_vf_device() argument [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, con in __verify_octeon_config_info() 613 oct_get_config_info(struct octeon_device *oct, u16 card_type) oct_get_config_info() argument 646 octeon_free_device_mem(struct octeon_device *oct) octeon_free_device_mem() argument 671 struct octeon_device *oct; octeon_allocate_device_mem() local 724 struct octeon_device *oct = NULL; octeon_allocate_device() local 763 octeon_register_device(struct octeon_device *oct, int bus, int dev, int func, int is_pf) octeon_register_device() argument 817 octeon_deregister_device(struct octeon_device *oct) octeon_deregister_device() argument 832 octeon_allocate_ioq_vector(struct octeon_device *oct, u32 num_ioqs) octeon_allocate_ioq_vector() argument 865 octeon_free_ioq_vector(struct octeon_device *oct) octeon_free_ioq_vector() argument 872 octeon_setup_instr_queues(struct octeon_device *oct) octeon_setup_instr_queues() argument 917 octeon_setup_output_queues(struct octeon_device *oct) octeon_setup_output_queues() argument 954 octeon_set_io_queues_off(struct octeon_device *oct) octeon_set_io_queues_off() argument 1004 octeon_set_droq_pkt_op(struct octeon_device *oct, u32 q_no, u32 enable) octeon_set_droq_pkt_op() argument 1023 octeon_init_dispatch_list(struct octeon_device *oct) octeon_init_dispatch_list() argument 1043 octeon_delete_dispatch_list(struct octeon_device *oct) octeon_delete_dispatch_list() argument 1134 octeon_register_dispatch_fn(struct octeon_device *oct, u16 opcode, u16 subcode, octeon_dispatch_fn_t fn, void *fn_arg) octeon_register_dispatch_fn() argument 1202 struct octeon_device *oct = (struct octeon_device *)buf; octeon_core_drv_init() local 1281 octeon_get_tx_qsize(struct octeon_device *oct, u32 q_no) octeon_get_tx_qsize() argument 1292 octeon_get_rx_qsize(struct octeon_device *oct, u32 q_no) octeon_get_rx_qsize() argument 1302 octeon_get_conf(struct octeon_device *oct) octeon_get_conf() argument 1341 lio_pci_readq(struct octeon_device *oct, u64 addr) lio_pci_readq() argument 1373 lio_pci_writeq(struct octeon_device *oct, u64 val, u64 addr) lio_pci_writeq() argument 1394 octeon_mem_access_ok(struct octeon_device *oct) octeon_mem_access_ok() argument 1414 octeon_wait_for_ddr_init(struct octeon_device *oct, u32 *timeout) octeon_wait_for_ddr_init() argument 1455 struct octeon_device *oct = NULL; lio_enable_irq() local [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 in __cvmx_bootmem_check_version() 228 __cvmx_bootmem_find_named_block_flags(struct octeon_device *oct, const char *name, u32 flags) __cvmx_bootmem_find_named_block_flags() argument 257 cvmx_bootmem_phy_named_block_find(struct octeon_device *oct, const char *name, u32 flags) cvmx_bootmem_phy_named_block_find() argument 334 octeon_named_block_find(struct octeon_device *oct, const char *name, u64 *base_addr, u64 *size) octeon_named_block_find() argument 360 octeon_console_send_cmd(struct octeon_device *oct, char *cmd_str, u32 wait_hundredths) octeon_console_send_cmd() argument 399 octeon_wait_for_bootloader(struct octeon_device *oct, u32 wait_time_hundredths) octeon_wait_for_bootloader() argument 419 octeon_console_handle_result(struct octeon_device *oct, size_t console_num) octeon_console_handle_result() argument 431 output_console_line(struct octeon_device *oct, struct octeon_console *console, size_t console_num, char *console_buffer, s32 bytes_read) output_console_line() argument 484 struct octeon_device *oct = (struct octeon_device *)wk->ctxptr; check_console() local 533 octeon_init_consoles(struct octeon_device *oct) octeon_init_consoles() argument 576 octeon_get_uboot_version(struct octeon_device *oct) octeon_get_uboot_version() argument 652 octeon_add_console(struct octeon_device *oct, u32 console_num, char *dbg_enb) octeon_add_console() argument 714 octeon_remove_consoles(struct octeon_device *oct) octeon_remove_consoles() argument 757 octeon_console_read(struct octeon_device *oct, u32 console_num, char *buffer, u32 buf_size) octeon_console_read() argument 807 octeon_download_firmware(struct octeon_device *oct, const u8 *data, size_t size) octeon_download_firmware() argument [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 in octeon_init_instr_queue() 156 octeon_delete_instr_queue(struct octeon_device *oct, u32 iq_no) octeon_delete_instr_queue() argument 191 octeon_setup_iq(struct octeon_device *oct, int ifidx, int q_index, union oct_txpciq txpciq, u32 num_descs, void *app_ctx) octeon_setup_iq() argument 236 lio_wait_for_instr_fetch(struct octeon_device *oct) lio_wait_for_instr_fetch() argument 265 ring_doorbell(struct octeon_device *oct, struct octeon_instr_queue *iq) ring_doorbell() argument 277 octeon_ring_doorbell_locked(struct octeon_device *oct, u32 iq_no) octeon_ring_doorbell_locked() argument 338 octeon_register_reqtype_free_fn(struct octeon_device *oct, int reqtype, void (*fn)(void *)) octeon_register_reqtype_free_fn() argument 363 lio_process_iq_request_list(struct octeon_device *oct, struct octeon_instr_queue *iq, u32 napi_budget) lio_process_iq_request_list() argument 441 octeon_flush_iq(struct octeon_device *oct, struct octeon_instr_queue *iq, u32 napi_budget) octeon_flush_iq() argument 493 __check_db_timeout(struct octeon_device *oct, u64 iq_no) __check_db_timeout() argument 526 struct octeon_device *oct = (struct octeon_device *)wk->ctxptr; check_db_timeout() local 536 octeon_send_command(struct octeon_device *oct, u32 iq_no, u32 force_db, void *cmd, void *buf, u32 datasize, u32 reqtype) octeon_send_command() argument 577 octeon_prepare_soft_command(struct octeon_device *oct, struct octeon_soft_command *sc, u8 opcode, u8 subcode, u32 irh_ossp, u64 ossp0, u64 ossp1) octeon_prepare_soft_command() argument 684 octeon_send_soft_command(struct octeon_device *oct, struct octeon_soft_command *sc) octeon_send_soft_command() argument 738 octeon_setup_sc_buffer_pool(struct octeon_device *oct) octeon_setup_sc_buffer_pool() argument 768 octeon_free_sc_done_list(struct octeon_device *oct) octeon_free_sc_done_list() argument 808 octeon_free_sc_zombie_list(struct octeon_device *oct) octeon_free_sc_zombie_list() argument 833 octeon_free_sc_buffer_pool(struct octeon_device *oct) octeon_free_sc_buffer_pool() argument 858 octeon_alloc_soft_command(struct octeon_device *oct, u32 datasize, u32 rdatasize, u32 ctxsize) octeon_alloc_soft_command() argument 930 octeon_free_soft_command(struct octeon_device *oct, struct octeon_soft_command *sc) octeon_free_soft_command() argument [all...] |
H A D | lio_vf_main.c | 70 static int octeon_device_init(struct octeon_device *oct); 73 static int lio_wait_for_oq_pkts(struct octeon_device *oct) in lio_wait_for_oq_pkts() argument 75 struct octeon_device_priv *oct_priv = oct->priv; in lio_wait_for_oq_pkts() 83 for (i = 0; i < MAX_OCTEON_OUTPUT_QUEUES(oct); i++) { in lio_wait_for_oq_pkts() 84 if (!(oct->io_qmask.oq & BIT_ULL(i))) in lio_wait_for_oq_pkts() 86 pkt_cnt += octeon_droq_check_hw_for_pkts(oct->droq[i]); in lio_wait_for_oq_pkts() 102 * @oct: Pointer to Octeon device 104 static void pcierror_quiesce_device(struct octeon_device *oct) in pcierror_quiesce_device() argument 116 if (wait_for_pending_requests(oct)) in pcierror_quiesce_device() 117 dev_err(&oct in pcierror_quiesce_device() 168 stop_pci_io(struct octeon_device *oct) stop_pci_io() argument 217 struct octeon_device *oct = pci_get_drvdata(pdev); liquidio_pcie_error_detected() local 304 struct octeon_device *oct = lio->oct_dev; setup_link_status_change_wq() local 342 struct octeon_device *oct = lio->oct_dev; update_link_status() local 421 octeon_pci_flr(struct octeon_device *oct) octeon_pci_flr() argument 442 octeon_destroy_resources(struct octeon_device *oct) octeon_destroy_resources() argument 597 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; send_rx_ctrl_cmd() local 657 liquidio_destroy_nic_device(struct octeon_device *oct, int ifidx) liquidio_destroy_nic_device() argument 712 liquidio_stop_nic_module(struct octeon_device *oct) liquidio_stop_nic_module() argument 771 octeon_pci_os_setup(struct octeon_device *oct) octeon_pci_os_setup() argument 908 struct octeon_device *oct = lio->oct_dev; liquidio_open() local 954 struct octeon_device *oct = lio->oct_dev; liquidio_stop() local 1035 struct octeon_device *oct = lio->oct_dev; liquidio_set_uc_list() local 1076 struct octeon_device *oct = lio->oct_dev; liquidio_set_mcast_list() local 1127 struct octeon_device *oct = lio->oct_dev; liquidio_set_mac() local 1176 struct octeon_device *oct; liquidio_get_stats64() local 1308 handle_timestamp(struct octeon_device *oct, u32 status, void *buf) handle_timestamp() argument 1350 send_nic_timestamp_pkt(struct octeon_device *oct, struct octnic_data_pkt *ndata, struct octnet_buf_free_info *finfo, int xmit_more) send_nic_timestamp_pkt() argument 1413 struct octeon_device *oct; liquidio_xmit() local 1653 struct octeon_device *oct = lio->oct_dev; liquidio_vlan_rx_add_vid() local 1681 struct octeon_device *oct = lio->oct_dev; liquidio_vlan_rx_kill_vid() local 1715 struct octeon_device *oct = lio->oct_dev; liquidio_set_rxcsum_command() local 1750 struct octeon_device *oct = lio->oct_dev; liquidio_vxlan_port_command() local 1890 struct octeon_device *oct = (struct octeon_device *)buf; lio_nic_info() local 2242 liquidio_init_nic_module(struct octeon_device *oct) liquidio_init_nic_module() argument 2280 octeon_device_init(struct octeon_device *oct) octeon_device_init() argument [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) 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, u argument 94 __octeon_pci_rw_core_mem(struct octeon_device *oct, u64 addr, u8 *hostbuf, u32 len, u32 op) __octeon_pci_rw_core_mem() argument 160 octeon_pci_read_core_mem(struct octeon_device *oct, u64 coreaddr, u8 *buf, u32 len) octeon_pci_read_core_mem() argument 170 octeon_pci_write_core_mem(struct octeon_device *oct, u64 coreaddr, const u8 *buf, u32 len) octeon_pci_write_core_mem() argument 179 octeon_read_device_mem64(struct octeon_device *oct, u64 coreaddr) octeon_read_device_mem64() argument 189 octeon_read_device_mem32(struct octeon_device *oct, u64 coreaddr) octeon_read_device_mem32() argument 199 octeon_write_device_mem32(struct octeon_device *oct, u64 coreaddr, u32 val) octeon_write_device_mem32() argument [all...] |
H A D | lio_main.c | 145 static int octeon_dbg_console_print(struct octeon_device *oct, u32 console_num, 165 struct octeon_device *oct = oct_priv->dev; in octeon_droq_bh() local 167 for (q_no = 0; q_no < MAX_OCTEON_OUTPUT_QUEUES(oct); q_no++) { in octeon_droq_bh() 168 if (!(oct->io_qmask.oq & BIT_ULL(q_no))) in octeon_droq_bh() 170 reschedule |= octeon_droq_process_packets(oct, oct->droq[q_no], in octeon_droq_bh() 172 lio_enable_irq(oct->droq[q_no], NULL); in octeon_droq_bh() 174 if (OCTEON_CN23XX_PF(oct) && oct->msix_on) { in octeon_droq_bh() 178 int adjusted_q_no = q_no + oct in octeon_droq_bh() 192 lio_wait_for_oq_pkts(struct octeon_device *oct) lio_wait_for_oq_pkts() argument 222 force_io_queues_off(struct octeon_device *oct) force_io_queues_off() argument 238 pcierror_quiesce_device(struct octeon_device *oct) pcierror_quiesce_device() argument 303 stop_pci_io(struct octeon_device *oct) stop_pci_io() argument 339 struct octeon_device *oct = pci_get_drvdata(pdev); liquidio_pcie_error_detected() local 532 struct octeon_device *oct = lio->oct_dev; setup_link_status_change_wq() local 571 struct octeon_device *oct = lio->oct_dev; update_link_status() local 615 struct octeon_device *oct = lio->oct_dev; lio_sync_octeon_time() local 665 struct octeon_device *oct = lio->oct_dev; setup_sync_octeon_time_wq() local 702 get_other_octeon_device(struct octeon_device *oct) get_other_octeon_device() argument 728 disable_all_vf_links(struct octeon_device *oct) disable_all_vf_links() argument 754 struct octeon_device *oct = param; liquidio_watchdog() local 921 octeon_pci_flr(struct octeon_device *oct) octeon_pci_flr() argument 948 octeon_destroy_resources(struct octeon_device *oct) octeon_destroy_resources() argument 1151 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; send_rx_ctrl_cmd() local 1209 liquidio_destroy_nic_device(struct octeon_device *oct, int ifidx) liquidio_destroy_nic_device() argument 1266 liquidio_stop_nic_module(struct octeon_device *oct) liquidio_stop_nic_module() argument 1342 octeon_chip_specific_setup(struct octeon_device *oct) octeon_chip_specific_setup() argument 1386 octeon_pci_os_setup(struct octeon_device *oct) octeon_pci_os_setup() argument 1520 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; liquidio_ptp_adjfine() local 1578 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; liquidio_ptp_gettime() local 1601 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; liquidio_ptp_settime() local 1634 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; oct_ptp_open() local 1664 liquidio_ptp_init(struct octeon_device *oct) liquidio_ptp_init() argument 1683 load_firmware(struct octeon_device *oct) load_firmware() argument 1740 struct octeon_device *oct = lio->oct_dev; setup_tx_poll_fn() local 1773 struct octeon_device *oct = lio->oct_dev; liquidio_open() local 1853 struct octeon_device *oct = lio->oct_dev; liquidio_stop() local 1953 struct octeon_device *oct = lio->oct_dev; liquidio_set_mcast_list() local 2003 struct octeon_device *oct = lio->oct_dev; liquidio_set_mac() local 2047 struct octeon_device *oct; liquidio_get_stats64() local 2194 handle_timestamp(struct octeon_device *oct, u32 status, void *buf) handle_timestamp() argument 2240 send_nic_timestamp_pkt(struct octeon_device *oct, struct octnic_data_pkt *ndata, struct octnet_buf_free_info *finfo, int xmit_more) send_nic_timestamp_pkt() argument 2308 struct octeon_device *oct; liquidio_xmit() local 2567 struct octeon_device *oct = lio->oct_dev; liquidio_vlan_rx_add_vid() local 2596 struct octeon_device *oct = lio->oct_dev; liquidio_vlan_rx_kill_vid() local 2630 struct octeon_device *oct = lio->oct_dev; liquidio_set_rxcsum_command() local 2667 struct octeon_device *oct = lio->oct_dev; liquidio_vxlan_port_command() local 2815 struct octeon_device *oct = lio->oct_dev; __liquidio_set_vf_mac() local 2855 struct octeon_device *oct = lio->oct_dev; liquidio_set_vf_mac() local 2872 struct octeon_device *oct = lio->oct_dev; liquidio_set_vf_spoofchk() local 2928 struct octeon_device *oct = lio->oct_dev; liquidio_set_vf_vlan() local 2980 struct octeon_device *oct = lio->oct_dev; liquidio_get_vf_config() local 3008 struct octeon_device *oct = lio->oct_dev; liquidio_send_vf_trust_cmd() local 3046 struct octeon_device *oct = lio->oct_dev; liquidio_set_vf_trust() local 3098 struct octeon_device *oct = lio->oct_dev; liquidio_set_vf_link_state() local 3131 struct octeon_device *oct; liquidio_eswitch_mode_get() local 3146 struct octeon_device *oct; liquidio_eswitch_mode_set() local 3186 struct octeon_device *oct = lio->oct_dev; liquidio_get_port_parent_id() local 3201 struct octeon_device *oct = lio->oct_dev; liquidio_get_vf_stats() local 3298 struct octeon_device *oct = (struct octeon_device *)buf; lio_nic_info() local 3794 octeon_enable_sriov(struct octeon_device *oct) octeon_enable_sriov() argument 3834 lio_pci_sriov_disable(struct octeon_device *oct) lio_pci_sriov_disable() argument 3860 struct octeon_device *oct = pci_get_drvdata(dev); liquidio_enable_sriov() local 3900 liquidio_init_nic_module(struct octeon_device *oct) liquidio_init_nic_module() argument 3957 struct octeon_device *oct; nic_starter() local 3997 struct octeon_device *oct = (struct octeon_device *)buf; octeon_recv_vf_drv_notice() local 4337 octeon_dbg_console_print(struct octeon_device *oct, u32 console_num, char *prefix, char *suffix) octeon_dbg_console_print() argument [all...] |
H A D | lio_vf_rep.c | 55 lio_vf_rep_send_soft_command(struct octeon_device *oct, in lio_vf_rep_send_soft_command() argument 66 octeon_alloc_soft_command(oct, req_size, in lio_vf_rep_send_soft_command() 82 octeon_prepare_soft_command(oct, sc, OPCODE_NIC, in lio_vf_rep_send_soft_command() 85 err = octeon_send_soft_command(oct, sc); in lio_vf_rep_send_soft_command() 89 err = wait_for_sc_completion_timeout(oct, sc, 0); in lio_vf_rep_send_soft_command() 95 dev_err(&oct->pci_dev->dev, "VF rep send config failed\n"); in lio_vf_rep_send_soft_command() 103 octeon_free_soft_command(oct, sc); in lio_vf_rep_send_soft_command() 113 struct octeon_device *oct; in lio_vf_rep_open() local 116 oct = vf_rep->oct; in lio_vf_rep_open() 146 struct octeon_device *oct; lio_vf_rep_stop() local 203 struct octeon_device *oct; lio_vf_rep_change_mtu() local 231 struct octeon_device *oct = vf_rep->oct; lio_vf_rep_phys_port_name() local 243 lio_vf_rep_get_ndev(struct octeon_device *oct, int ifidx) lio_vf_rep_get_ndev() argument 261 lio_vf_rep_copy_packet(struct octeon_device *oct, struct sk_buff *skb, int len) lio_vf_rep_copy_packet() argument 299 struct octeon_device *oct; lio_vf_rep_pkt_recv() local 348 lio_vf_rep_packet_sent_callback(struct octeon_device *oct, u32 status, void *buf) lio_vf_rep_packet_sent_callback() argument 374 struct octeon_device *oct = vf_rep->oct; lio_vf_rep_pkt_xmit() local 468 struct octeon_device *oct; lio_vf_rep_fetch_stats() local 490 lio_vf_rep_create(struct octeon_device *oct) lio_vf_rep_create() argument 576 lio_vf_rep_destroy(struct octeon_device *oct) lio_vf_rep_destroy() argument 613 struct octeon_device *oct; lio_vf_rep_netdev_event() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeon_ep/ |
H A D | octep_main.c | 38 * @oct: Octeon device private data structure. 48 static int octep_alloc_ioq_vectors(struct octep_device *oct) in octep_alloc_ioq_vectors() argument 53 for (i = 0; i < oct->num_oqs; i++) { in octep_alloc_ioq_vectors() 54 oct->ioq_vector[i] = vzalloc(sizeof(*oct->ioq_vector[i])); in octep_alloc_ioq_vectors() 55 if (!oct->ioq_vector[i]) in octep_alloc_ioq_vectors() 58 ioq_vector = oct->ioq_vector[i]; in octep_alloc_ioq_vectors() 59 ioq_vector->iq = oct->iq[i]; in octep_alloc_ioq_vectors() 60 ioq_vector->oq = oct->oq[i]; in octep_alloc_ioq_vectors() 61 ioq_vector->octep_dev = oct; in octep_alloc_ioq_vectors() 81 octep_free_ioq_vectors(struct octep_device *oct) octep_free_ioq_vectors() argument 105 octep_enable_msix_range(struct octep_device *oct) octep_enable_msix_range() argument 149 octep_disable_msix(struct octep_device *oct) octep_disable_msix() argument 167 struct octep_device *oct = data; octep_non_ioq_intr_handler() local 184 struct octep_device *oct = ioq_vector->octep_dev; octep_ioq_intr_handler() local 199 octep_request_irqs(struct octep_device *oct) octep_request_irqs() argument 287 octep_free_irqs(struct octep_device *oct) octep_free_irqs() argument 316 octep_setup_irqs(struct octep_device *oct) octep_setup_irqs() argument 342 octep_clean_irqs(struct octep_device *oct) octep_clean_irqs() argument 407 octep_napi_add(struct octep_device *oct) octep_napi_add() argument 424 octep_napi_delete(struct octep_device *oct) octep_napi_delete() argument 440 octep_napi_enable(struct octep_device *oct) octep_napi_enable() argument 455 octep_napi_disable(struct octep_device *oct) octep_napi_disable() argument 484 struct octep_device *oct = netdev_priv(netdev); octep_open() local 550 struct octep_device *oct = netdev_priv(netdev); octep_stop() local 629 struct octep_device *oct = netdev_priv(netdev); octep_start_xmit() local 761 struct octep_device *oct = netdev_priv(netdev); octep_get_stats64() local 804 struct octep_device *oct = container_of(work, struct octep_device, octep_tx_timeout_task() local 826 struct octep_device *oct = netdev_priv(netdev); octep_tx_timeout() local 833 struct octep_device *oct = netdev_priv(netdev); octep_set_mac() local 853 struct octep_device *oct = netdev_priv(netdev); octep_change_mtu() local 890 struct octep_device *oct = container_of(work, struct octep_device, octep_intr_poll_task() local 914 struct octep_device *oct = container_of(work, struct octep_device, octep_hb_timeout_task() local 943 struct octep_device *oct = container_of(work, struct octep_device, octep_ctrl_mbox_task() local 949 octep_devid_to_str(struct octep_device *oct) octep_devid_to_str() argument 968 octep_device_setup(struct octep_device *oct) octep_device_setup() argument 1036 octep_device_cleanup(struct octep_device *oct) octep_device_cleanup() argument 1201 struct octep_device *oct = pci_get_drvdata(pdev); octep_remove() local [all...] |
H A D | octep_cn9k_pf.c | 43 static void cn93_dump_regs(struct octep_device *oct, int qno) in cn93_dump_regs() argument 45 struct device *dev = &oct->pdev->dev; in cn93_dump_regs() 50 octep_read_csr64(oct, CN93_SDP_R_IN_INSTR_DBELL(qno))); in cn93_dump_regs() 53 octep_read_csr64(oct, CN93_SDP_R_IN_CONTROL(qno))); in cn93_dump_regs() 56 octep_read_csr64(oct, CN93_SDP_R_IN_ENABLE(qno))); in cn93_dump_regs() 59 octep_read_csr64(oct, CN93_SDP_R_IN_INSTR_BADDR(qno))); in cn93_dump_regs() 62 octep_read_csr64(oct, CN93_SDP_R_IN_INSTR_RSIZE(qno))); in cn93_dump_regs() 65 octep_read_csr64(oct, CN93_SDP_R_IN_CNTS(qno))); in cn93_dump_regs() 68 octep_read_csr64(oct, CN93_SDP_R_IN_INT_LEVELS(qno))); in cn93_dump_regs() 71 octep_read_csr64(oct, CN93_SDP_R_IN_PKT_CN in cn93_dump_regs() 110 cn93_reset_iq(struct octep_device *oct, int q_no) cn93_reset_iq() argument 138 cn93_reset_oq(struct octep_device *oct, int q_no) cn93_reset_oq() argument 156 octep_reset_io_queues_cn93_pf(struct octep_device *oct) octep_reset_io_queues_cn93_pf() argument 170 octep_setup_pci_window_regs_cn93_pf(struct octep_device *oct) octep_setup_pci_window_regs_cn93_pf() argument 181 octep_configure_ring_mapping_cn93_pf(struct octep_device *oct) octep_configure_ring_mapping_cn93_pf() argument 203 octep_init_config_cn93_pf(struct octep_device *oct) octep_init_config_cn93_pf() argument 262 octep_setup_iq_regs_cn93_pf(struct octep_device *oct, int iq_no) octep_setup_iq_regs_cn93_pf() argument 309 octep_setup_oq_regs_cn93_pf(struct octep_device *oct, int oq_no) octep_setup_oq_regs_cn93_pf() argument 360 octep_setup_mbox_regs_cn93_pf(struct octep_device *oct, int q_no) octep_setup_mbox_regs_cn93_pf() argument 379 octep_poll_non_ioq_interrupts_cn93_pf(struct octep_device *oct) octep_poll_non_ioq_interrupts_cn93_pf() argument 405 struct octep_device *oct = (struct octep_device *)dev; octep_non_ioq_intr_handler_cn93_pf() local 523 octep_soft_reset_cn93_pf(struct octep_device *oct) octep_soft_reset_cn93_pf() argument 540 octep_reinit_regs_cn93_pf(struct octep_device *oct) octep_reinit_regs_cn93_pf() argument 558 octep_enable_interrupts_cn93_pf(struct octep_device *oct) octep_enable_interrupts_cn93_pf() argument 577 octep_disable_interrupts_cn93_pf(struct octep_device *oct) octep_disable_interrupts_cn93_pf() argument 610 octep_enable_iq_cn93_pf(struct octep_device *oct, int iq_no) octep_enable_iq_cn93_pf() argument 634 octep_enable_oq_cn93_pf(struct octep_device *oct, int oq_no) octep_enable_oq_cn93_pf() argument 652 octep_enable_io_queues_cn93_pf(struct octep_device *oct) octep_enable_io_queues_cn93_pf() argument 663 octep_disable_iq_cn93_pf(struct octep_device *oct, int iq_no) octep_disable_iq_cn93_pf() argument 675 octep_disable_oq_cn93_pf(struct octep_device *oct, int oq_no) octep_disable_oq_cn93_pf() argument 686 octep_disable_io_queues_cn93_pf(struct octep_device *oct) octep_disable_io_queues_cn93_pf() argument 697 octep_dump_registers_cn93_pf(struct octep_device *oct) octep_dump_registers_cn93_pf() argument 719 octep_device_setup_cn93_pf(struct octep_device *oct) octep_device_setup_cn93_pf() argument [all...] |