/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 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) lio_cn6xxx_enable_interrupt() argument 480 lio_cn6xxx_disable_interrupt(struct octeon_device * oct,u8 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 | 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 in cn23xx_pf_soft_reset() 70 cn23xx_enable_error_reporting(struct octeon_device * oct) cn23xx_enable_error_reporting() argument 100 cn23xx_coprocessor_clock(struct octeon_device * oct) cn23xx_coprocessor_clock() argument 110 cn23xx_pf_get_oq_ticks(struct octeon_device * oct,u32 time_intr_in_us) cn23xx_pf_get_oq_ticks() argument 132 cn23xx_setup_global_mac_regs(struct octeon_device * oct) cn23xx_setup_global_mac_regs() argument 176 cn23xx_reset_io_queues(struct octeon_device * oct) cn23xx_reset_io_queues() argument 231 cn23xx_pf_setup_global_input_regs(struct octeon_device * oct) cn23xx_pf_setup_global_input_regs() argument 306 cn23xx_pf_setup_global_output_regs(struct octeon_device * oct) cn23xx_pf_setup_global_output_regs() argument 395 cn23xx_setup_pf_device_regs(struct octeon_device * oct) cn23xx_setup_pf_device_regs() argument 418 cn23xx_setup_iq_regs(struct octeon_device * oct,u32 iq_no) cn23xx_setup_iq_regs() argument 459 cn23xx_setup_oq_regs(struct octeon_device * oct,u32 oq_no) cn23xx_setup_oq_regs() argument 513 struct octeon_device *oct = mbox->oct_dev; cn23xx_pf_mbox_thread() local 540 cn23xx_setup_pf_mbox(struct octeon_device * oct) cn23xx_setup_pf_mbox() argument 602 cn23xx_free_pf_mbox(struct octeon_device * oct) cn23xx_free_pf_mbox() argument 619 cn23xx_enable_io_queues(struct octeon_device * oct) cn23xx_enable_io_queues() argument 696 cn23xx_disable_io_queues(struct octeon_device * oct) cn23xx_disable_io_queues() argument 774 struct octeon_device *oct = ioq_vector->oct_dev; cn23xx_pf_msix_interrupt_handler() local 813 cn23xx_handle_pf_mbox_intr(struct octeon_device * oct) cn23xx_handle_pf_mbox_intr() argument 838 struct octeon_device *oct = (struct octeon_device *)dev; cn23xx_interrupt_handler() local 871 cn23xx_bar1_idx_setup(struct octeon_device * oct,u64 core_addr,u32 idx,int valid) cn23xx_bar1_idx_setup() argument 899 cn23xx_bar1_idx_write(struct octeon_device * oct,u32 idx,u32 mask) cn23xx_bar1_idx_write() argument 905 cn23xx_bar1_idx_read(struct octeon_device * oct,u32 idx) cn23xx_bar1_idx_read() argument 932 cn23xx_enable_pf_interrupt(struct octeon_device * oct,u8 intr_flag) cn23xx_enable_pf_interrupt() argument 955 cn23xx_disable_pf_interrupt(struct octeon_device * oct,u8 intr_flag) cn23xx_disable_pf_interrupt() argument 977 cn23xx_get_pcie_qlmport(struct octeon_device * oct) cn23xx_get_pcie_qlmport() argument 985 cn23xx_get_pf_num(struct octeon_device * oct) cn23xx_get_pf_num() argument 1031 cn23xx_setup_reg_address(struct octeon_device * oct) cn23xx_setup_reg_address() argument 1080 cn23xx_sriov_config(struct octeon_device * oct) cn23xx_sriov_config() argument 1138 setup_cn23xx_octeon_pf_device(struct octeon_device * oct) setup_cn23xx_octeon_pf_device() argument 1211 cn23xx_fw_loaded(struct octeon_device * oct) cn23xx_fw_loaded() argument 1231 cn23xx_tell_vf_its_macaddr_changed(struct octeon_device * oct,int vfidx,u8 * mac) cn23xx_tell_vf_its_macaddr_changed() argument 1254 cn23xx_get_vf_stats_callback(struct octeon_device * oct,struct octeon_mbox_cmd * cmd,void * arg) cn23xx_get_vf_stats_callback() argument 1263 cn23xx_get_vf_stats(struct octeon_device * oct,int vfidx,struct oct_vf_stats * stats) cn23xx_get_vf_stats() 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 | 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 1282 octeon_get_tx_qsize(struct octeon_device * oct,u32 q_no) octeon_get_tx_qsize() argument 1293 octeon_get_rx_qsize(struct octeon_device * oct,u32 q_no) octeon_get_rx_qsize() argument 1303 octeon_get_conf(struct octeon_device * oct) octeon_get_conf() argument 1342 lio_pci_readq(struct octeon_device * oct,u64 addr) lio_pci_readq() argument 1374 lio_pci_writeq(struct octeon_device * oct,u64 val,u64 addr) lio_pci_writeq() argument 1395 octeon_mem_access_ok(struct octeon_device * oct) octeon_mem_access_ok() argument 1415 octeon_wait_for_ddr_init(struct octeon_device * oct,u32 * timeout) octeon_wait_for_ddr_init() argument 1440 struct octeon_device *oct = NULL; lio_enable_irq() local [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_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 | 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, 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_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 298 struct octeon_device *oct; lio_vf_rep_pkt_recv() local 347 lio_vf_rep_packet_sent_callback(struct octeon_device * oct,u32 status,void * buf) lio_vf_rep_packet_sent_callback() argument 373 struct octeon_device *oct = vf_rep->oct; lio_vf_rep_pkt_xmit() local 467 struct octeon_device *oct; lio_vf_rep_fetch_stats() local 489 lio_vf_rep_create(struct octeon_device * oct) lio_vf_rep_create() argument 575 lio_vf_rep_destroy(struct octeon_device * oct) lio_vf_rep_destroy() argument 612 struct octeon_device *oct; lio_vf_rep_netdev_event() local [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 | lio_main.c | 139 static int octeon_dbg_console_print(struct octeon_device *oct, u32 console_num, 159 struct octeon_device *oct = oct_priv->dev; in octeon_droq_bh() local 161 for (q_no = 0; q_no < MAX_OCTEON_OUTPUT_QUEUES(oct); q_no++) { in octeon_droq_bh() 162 if (!(oct->io_qmask.oq & BIT_ULL(q_no))) in octeon_droq_bh() 164 reschedule |= octeon_droq_process_packets(oct, oct->droq[q_no], in octeon_droq_bh() 166 lio_enable_irq(oct->droq[q_no], NULL); in octeon_droq_bh() 168 if (OCTEON_CN23XX_PF(oct) && oct->msix_on) { in octeon_droq_bh() 172 int adjusted_q_no = q_no + oct in octeon_droq_bh() 186 lio_wait_for_oq_pkts(struct octeon_device * oct) lio_wait_for_oq_pkts() argument 216 force_io_queues_off(struct octeon_device * oct) force_io_queues_off() argument 232 pcierror_quiesce_device(struct octeon_device * oct) pcierror_quiesce_device() argument 297 stop_pci_io(struct octeon_device * oct) stop_pci_io() argument 333 struct octeon_device *oct = pci_get_drvdata(pdev); liquidio_pcie_error_detected() local 526 struct octeon_device *oct = lio->oct_dev; setup_link_status_change_wq() local 565 struct octeon_device *oct = lio->oct_dev; update_link_status() local 609 struct octeon_device *oct = lio->oct_dev; lio_sync_octeon_time() local 659 struct octeon_device *oct = lio->oct_dev; setup_sync_octeon_time_wq() local 696 get_other_octeon_device(struct octeon_device * oct) get_other_octeon_device() argument 722 disable_all_vf_links(struct octeon_device * oct) disable_all_vf_links() argument 748 struct octeon_device *oct = param; liquidio_watchdog() local 915 octeon_pci_flr(struct octeon_device * oct) octeon_pci_flr() argument 942 octeon_destroy_resources(struct octeon_device * oct) octeon_destroy_resources() argument 1145 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; send_rx_ctrl_cmd() local 1203 liquidio_destroy_nic_device(struct octeon_device * oct,int ifidx) liquidio_destroy_nic_device() argument 1260 liquidio_stop_nic_module(struct octeon_device * oct) liquidio_stop_nic_module() argument 1336 octeon_chip_specific_setup(struct octeon_device * oct) octeon_chip_specific_setup() argument 1380 octeon_pci_os_setup(struct octeon_device * oct) octeon_pci_os_setup() argument 1514 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; liquidio_ptp_adjfine() local 1572 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; liquidio_ptp_gettime() local 1595 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; liquidio_ptp_settime() local 1628 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; oct_ptp_open() local 1658 liquidio_ptp_init(struct octeon_device * oct) liquidio_ptp_init() argument 1677 load_firmware(struct octeon_device * oct) load_firmware() argument 1734 struct octeon_device *oct = lio->oct_dev; setup_tx_poll_fn() local 1767 struct octeon_device *oct = lio->oct_dev; liquidio_open() local 1847 struct octeon_device *oct = lio->oct_dev; liquidio_stop() local 1947 struct octeon_device *oct = lio->oct_dev; liquidio_set_mcast_list() local 1997 struct octeon_device *oct = lio->oct_dev; liquidio_set_mac() local 2041 struct octeon_device *oct; liquidio_get_stats64() local 2188 handle_timestamp(struct octeon_device * oct,u32 status,void * buf) handle_timestamp() argument 2234 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 2302 struct octeon_device *oct; liquidio_xmit() local 2561 struct octeon_device *oct = lio->oct_dev; liquidio_vlan_rx_add_vid() local 2590 struct octeon_device *oct = lio->oct_dev; liquidio_vlan_rx_kill_vid() local 2624 struct octeon_device *oct = lio->oct_dev; liquidio_set_rxcsum_command() local 2661 struct octeon_device *oct = lio->oct_dev; liquidio_vxlan_port_command() local 2809 struct octeon_device *oct = lio->oct_dev; __liquidio_set_vf_mac() local 2849 struct octeon_device *oct = lio->oct_dev; liquidio_set_vf_mac() local 2866 struct octeon_device *oct = lio->oct_dev; liquidio_set_vf_spoofchk() local 2922 struct octeon_device *oct = lio->oct_dev; liquidio_set_vf_vlan() local 2974 struct octeon_device *oct = lio->oct_dev; liquidio_get_vf_config() local 3002 struct octeon_device *oct = lio->oct_dev; liquidio_send_vf_trust_cmd() local 3040 struct octeon_device *oct = lio->oct_dev; liquidio_set_vf_trust() local 3092 struct octeon_device *oct = lio->oct_dev; liquidio_set_vf_link_state() local 3125 struct octeon_device *oct; liquidio_eswitch_mode_get() local 3140 struct octeon_device *oct; liquidio_eswitch_mode_set() local 3180 struct octeon_device *oct = lio->oct_dev; liquidio_get_port_parent_id() local 3195 struct octeon_device *oct = lio->oct_dev; liquidio_get_vf_stats() local 3292 struct octeon_device *oct = (struct octeon_device *)buf; lio_nic_info() local 3788 octeon_enable_sriov(struct octeon_device * oct) octeon_enable_sriov() argument 3828 lio_pci_sriov_disable(struct octeon_device * oct) lio_pci_sriov_disable() argument 3854 struct octeon_device *oct = pci_get_drvdata(dev); liquidio_enable_sriov() local 3894 liquidio_init_nic_module(struct octeon_device * oct) liquidio_init_nic_module() argument 3951 struct octeon_device *oct; nic_starter() local 3991 struct octeon_device *oct = (struct octeon_device *)buf; octeon_recv_vf_drv_notice() local 4331 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_core.c | 82 * @oct: octeon_device 86 int lio_setup_glists(struct octeon_device *oct, struct lio *lio, int num_iqs) in lio_setup_glists() argument 121 int numa_node = dev_to_node(&oct->pci_dev->dev); in lio_setup_glists() 128 lio_dma_alloc(oct, in lio_setup_glists() 167 struct octeon_device *oct = lio->oct_dev; in liquidio_set_feature() local 182 dev_err(&oct->pci_dev->dev, "Feature change failed in core (ret: 0x%x)\n", in liquidio_set_feature() 263 struct octeon_device *oct = lio->oct_dev; in liquidio_link_ctrl_cmd_completion() local 304 dev_info(&oct->pci_dev->dev, "%s LRO Enabled\n", netdev->name); in liquidio_link_ctrl_cmd_completion() 308 dev_info(&oct->pci_dev->dev, "%s LRO Disabled\n", in liquidio_link_ctrl_cmd_completion() 313 dev_info(&oct in liquidio_link_ctrl_cmd_completion() 407 octeon_pf_changed_vf_macaddr(struct octeon_device * oct,u8 * mac) octeon_pf_changed_vf_macaddr() argument 438 octeon_schedule_rxq_oom_work(struct octeon_device * oct,struct octeon_droq * droq) octeon_schedule_rxq_oom_work() argument 453 struct octeon_device *oct = lio->oct_dev; octnet_poll_check_rxq_oom_status() local 467 struct octeon_device *oct = lio->oct_dev; setup_rx_oom_poll_fn() local 494 struct octeon_device *oct = lio->oct_dev; cleanup_rx_oom_poll_fn() local 510 lio_update_txq_status(struct octeon_device * oct,int iq_num) lio_update_txq_status() argument 542 octeon_setup_droq(struct octeon_device * oct,int q_no,int num_descs,int desc_size,void * app_ctx) octeon_setup_droq() argument 598 struct octeon_device *oct = lio->oct_dev; liquidio_push_packet() local 731 struct octeon_device *oct; liquidio_napi_drv_callback() local 754 struct octeon_device *oct; liquidio_napi_poll() local 917 struct octeon_device *oct = droq->oct_dev; liquidio_schedule_msix_droq_pkt_handler() local 943 struct octeon_device *oct = ioq_vector->oct_dev; liquidio_msix_intr_handler() local 959 liquidio_schedule_droq_pkt_handlers(struct octeon_device * oct) liquidio_schedule_droq_pkt_handlers() argument 992 struct octeon_device *oct = (struct octeon_device *)dev; liquidio_legacy_intr_handler() local 1017 octeon_setup_interrupt(struct octeon_device * oct,u32 num_ioqs) octeon_setup_interrupt() argument 1218 struct octeon_device *oct = lio->oct_dev; liquidio_change_mtu() local 1273 lio_wait_for_clean_oq(struct octeon_device * oct) lio_wait_for_clean_oq() argument 1530 struct octeon_device *oct = lio->oct_dev; liquidio_set_speed() local 1607 struct octeon_device *oct = lio->oct_dev; liquidio_get_speed() local 1683 struct octeon_device *oct; liquidio_set_fec() local 1772 struct octeon_device *oct; liquidio_get_fec() local [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 in lio_get_link_ksettings() 400 struct octeon_device *oct; lio_set_link_ksettings() local 439 struct octeon_device *oct; lio_get_drvinfo() local 455 struct octeon_device *oct; lio_get_vf_drvinfo() local 473 struct octeon_device *oct = lio->oct_dev; lio_send_queue_count_update() local 502 struct octeon_device *oct = lio->oct_dev; lio_ethtool_get_channels() local 542 lio_irq_reallocate_irqs(struct octeon_device * oct,uint32_t num_ioqs) lio_irq_reallocate_irqs() argument 608 struct octeon_device *oct = lio->oct_dev; lio_ethtool_set_channels() local 708 struct octeon_device *oct = lio->oct_dev; octnet_gpio_access() local 735 struct octeon_device *oct = lio->oct_dev; octnet_id_active() local 834 struct octeon_device *oct = lio->oct_dev; lio_set_phys_id() local 957 struct octeon_device *oct = lio->oct_dev; lio_ethtool_get_ringparam() local 990 struct octeon_device *oct = lio->oct_dev; lio_23xx_reconfigure_queue_count() local 1088 struct octeon_device *oct = lio->oct_dev; lio_reset_queues() local 1267 struct octeon_device *oct = lio->oct_dev; lio_ethtool_set_ringparam() local 1359 struct octeon_device *oct = lio->oct_dev; lio_get_pauseparam() local 1374 struct octeon_device *oct = lio->oct_dev; lio_set_pauseparam() local 2123 struct octeon_device *oct = lio->oct_dev; lio_get_intr_coalesce() local 2231 struct octeon_device *oct = lio->oct_dev; oct_cfg_rx_intrcnt() local 2304 struct octeon_device *oct = lio->oct_dev; oct_cfg_rx_intrtime() local 2383 struct octeon_device *oct = lio->oct_dev; oct_cfg_tx_intrcnt() local 2430 struct octeon_device *oct = lio->oct_dev; lio_set_intr_coalesce() local 2529 struct octeon_device *oct = lio->oct_dev; lio_get_regs_len() local 2541 cn23xx_read_csr_reg(char * s,struct octeon_device * oct) cn23xx_read_csr_reg() argument 2761 cn23xx_vf_read_csr_reg(char * s,struct octeon_device * oct) cn23xx_vf_read_csr_reg() argument 2878 cn6xxx_read_csr_reg(char * s,struct octeon_device * oct) cn6xxx_read_csr_reg() argument 2984 cn6xxx_read_config_reg(char * s,struct octeon_device * oct) cn6xxx_read_config_reg() argument 3015 struct octeon_device *oct = lio->oct_dev; lio_get_regs() local 3061 struct octeon_device *oct = lio->oct_dev; lio_get_fecparam() local 3086 struct octeon_device *oct = lio->oct_dev; lio_set_fecparam() local 3176 struct octeon_device *oct = lio->oct_dev; liquidio_set_ethtool_ops() local [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 Pointe 111 octeon_map_pci_barx(struct octeon_device * oct,int baridx,int max_map_len) octeon_map_pci_barx() argument [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 139 octnet_send_nic_ctrl_pkt(struct octeon_device * oct,struct octnic_ctrl_pkt * nctrl) octnet_send_nic_ctrl_pkt() argument [all...] |
/linux/drivers/net/ethernet/marvell/octeon_ep/ |
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_CN in cnxk_dump_regs() 127 cnxk_reset_iq(struct octep_device * oct,int q_no) cnxk_reset_iq() argument 155 cnxk_reset_oq(struct octep_device * oct,int q_no) cnxk_reset_oq() argument 176 octep_reset_io_queues_cnxk_pf(struct octep_device * oct) octep_reset_io_queues_cnxk_pf() argument 190 octep_setup_pci_window_regs_cnxk_pf(struct octep_device * oct) octep_setup_pci_window_regs_cnxk_pf() argument 201 octep_configure_ring_mapping_cnxk_pf(struct octep_device * oct) octep_configure_ring_mapping_cnxk_pf() argument 223 octep_init_config_cnxk_pf(struct octep_device * oct) octep_init_config_cnxk_pf() argument 283 octep_setup_iq_regs_cnxk_pf(struct octep_device * oct,int iq_no) octep_setup_iq_regs_cnxk_pf() argument 330 octep_setup_oq_regs_cnxk_pf(struct octep_device * oct,int oq_no) octep_setup_oq_regs_cnxk_pf() argument 391 octep_setup_mbox_regs_cnxk_pf(struct octep_device * oct,int q_no) octep_setup_mbox_regs_cnxk_pf() argument 402 octep_poll_pfvf_mailbox_cnxk_pf(struct octep_device * oct) octep_poll_pfvf_mailbox_cnxk_pf() argument 429 struct octep_device *oct = (struct octep_device *)dev; octep_pfvf_mbox_intr_handler_cnxk_pf() local 436 octep_poll_oei_cnxk_pf(struct octep_device * oct) octep_poll_oei_cnxk_pf() argument 454 struct octep_device *oct = (struct octep_device *)dev; octep_oei_intr_handler_cnxk_pf() local 464 octep_poll_non_ioq_interrupts_cnxk_pf(struct octep_device * oct) octep_poll_non_ioq_interrupts_cnxk_pf() argument 473 struct octep_device *oct = (struct octep_device *)dev; octep_ire_intr_handler_cnxk_pf() local 503 struct octep_device *oct = (struct octep_device *)dev; octep_ore_intr_handler_cnxk_pf() local 531 struct octep_device *oct = (struct octep_device *)dev; octep_vfire_intr_handler_cnxk_pf() local 548 struct octep_device *oct = (struct octep_device *)dev; octep_vfore_intr_handler_cnxk_pf() local 565 struct octep_device *oct = (struct octep_device *)dev; octep_dma_intr_handler_cnxk_pf() local 579 struct octep_device *oct = (struct octep_device *)dev; octep_dma_vf_intr_handler_cnxk_pf() local 596 struct octep_device *oct = (struct octep_device *)dev; octep_pp_vf_intr_handler_cnxk_pf() local 613 struct octep_device *oct = (struct octep_device *)dev; octep_misc_intr_handler_cnxk_pf() local 630 struct octep_device *oct = (struct octep_device *)dev; octep_rsvd_intr_handler_cnxk_pf() local 648 octep_soft_reset_cnxk_pf(struct octep_device * oct) octep_soft_reset_cnxk_pf() argument 676 octep_reinit_regs_cnxk_pf(struct octep_device * oct) octep_reinit_regs_cnxk_pf() argument 694 octep_enable_interrupts_cnxk_pf(struct octep_device * oct) octep_enable_interrupts_cnxk_pf() argument 721 octep_disable_interrupts_cnxk_pf(struct octep_device * oct) octep_disable_interrupts_cnxk_pf() argument 762 octep_enable_iq_cnxk_pf(struct octep_device * oct,int iq_no) octep_enable_iq_cnxk_pf() argument 786 octep_enable_oq_cnxk_pf(struct octep_device * oct,int oq_no) octep_enable_oq_cnxk_pf() argument 804 octep_enable_io_queues_cnxk_pf(struct octep_device * oct) octep_enable_io_queues_cnxk_pf() argument 815 octep_disable_iq_cnxk_pf(struct octep_device * oct,int iq_no) octep_disable_iq_cnxk_pf() argument 827 octep_disable_oq_cnxk_pf(struct octep_device * oct,int oq_no) octep_disable_oq_cnxk_pf() argument 838 octep_disable_io_queues_cnxk_pf(struct octep_device * oct) octep_disable_io_queues_cnxk_pf() argument 849 octep_dump_registers_cnxk_pf(struct octep_device * oct) octep_dump_registers_cnxk_pf() argument 871 octep_device_setup_cnxk_pf(struct octep_device * oct) octep_device_setup_cnxk_pf() argument [all...] |
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_CN in cn93_dump_regs() 107 cn93_reset_iq(struct octep_device * oct,int q_no) cn93_reset_iq() argument 135 cn93_reset_oq(struct octep_device * oct,int q_no) cn93_reset_oq() argument 153 octep_reset_io_queues_cn93_pf(struct octep_device * oct) octep_reset_io_queues_cn93_pf() argument 167 octep_setup_pci_window_regs_cn93_pf(struct octep_device * oct) octep_setup_pci_window_regs_cn93_pf() argument 178 octep_configure_ring_mapping_cn93_pf(struct octep_device * oct) octep_configure_ring_mapping_cn93_pf() argument 200 octep_init_config_cn93_pf(struct octep_device * oct) octep_init_config_cn93_pf() argument 263 octep_setup_iq_regs_cn93_pf(struct octep_device * oct,int iq_no) octep_setup_iq_regs_cn93_pf() argument 310 octep_setup_oq_regs_cn93_pf(struct octep_device * oct,int oq_no) octep_setup_oq_regs_cn93_pf() argument 361 octep_setup_mbox_regs_cn93_pf(struct octep_device * oct,int q_no) octep_setup_mbox_regs_cn93_pf() argument 373 octep_poll_pfvf_mailbox(struct octep_device * oct) octep_poll_pfvf_mailbox() argument 410 struct octep_device *oct = (struct octep_device *)dev; octep_pfvf_mbox_intr_handler_cn93_pf() local 417 octep_poll_oei_cn93_pf(struct octep_device * oct) octep_poll_oei_cn93_pf() argument 434 struct octep_device *oct = (struct octep_device *)dev; octep_oei_intr_handler_cn93_pf() local 443 octep_poll_non_ioq_interrupts_cn93_pf(struct octep_device * oct) octep_poll_non_ioq_interrupts_cn93_pf() argument 452 struct octep_device *oct = (struct octep_device *)dev; octep_ire_intr_handler_cn93_pf() local 482 struct octep_device *oct = (struct octep_device *)dev; octep_ore_intr_handler_cn93_pf() local 510 struct octep_device *oct = (struct octep_device *)dev; octep_vfire_intr_handler_cn93_pf() local 527 struct octep_device *oct = (struct octep_device *)dev; octep_vfore_intr_handler_cn93_pf() local 544 struct octep_device *oct = (struct octep_device *)dev; octep_dma_intr_handler_cn93_pf() local 558 struct octep_device *oct = (struct octep_device *)dev; octep_dma_vf_intr_handler_cn93_pf() local 575 struct octep_device *oct = (struct octep_device *)dev; octep_pp_vf_intr_handler_cn93_pf() local 592 struct octep_device *oct = (struct octep_device *)dev; octep_misc_intr_handler_cn93_pf() local 609 struct octep_device *oct = (struct octep_device *)dev; octep_rsvd_intr_handler_cn93_pf() local 627 octep_soft_reset_cn98_pf(struct octep_device * oct) octep_soft_reset_cn98_pf() argument 634 octep_soft_reset_cn93_pf(struct octep_device * oct) octep_soft_reset_cn93_pf() argument 651 octep_reinit_regs_cn93_pf(struct octep_device * oct) octep_reinit_regs_cn93_pf() argument 669 octep_enable_interrupts_cn93_pf(struct octep_device * oct) octep_enable_interrupts_cn93_pf() argument 697 octep_disable_interrupts_cn93_pf(struct octep_device * oct) octep_disable_interrupts_cn93_pf() argument 739 octep_enable_iq_cn93_pf(struct octep_device * oct,int iq_no) octep_enable_iq_cn93_pf() argument 763 octep_enable_oq_cn93_pf(struct octep_device * oct,int oq_no) octep_enable_oq_cn93_pf() argument 781 octep_enable_io_queues_cn93_pf(struct octep_device * oct) octep_enable_io_queues_cn93_pf() argument 792 octep_disable_iq_cn93_pf(struct octep_device * oct,int iq_no) octep_disable_iq_cn93_pf() argument 804 octep_disable_oq_cn93_pf(struct octep_device * oct,int oq_no) octep_disable_oq_cn93_pf() argument 815 octep_disable_io_queues_cn93_pf(struct octep_device * oct) octep_disable_io_queues_cn93_pf() argument 826 octep_dump_registers_cn93_pf(struct octep_device * oct) octep_dump_registers_cn93_pf() argument 848 octep_device_setup_cn93_pf(struct octep_device * oct) octep_device_setup_cn93_pf() argument [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() 87 octep_free_ioq_vectors(struct octep_device * oct) octep_free_ioq_vectors() argument 111 octep_enable_msix_range(struct octep_device * oct) octep_enable_msix_range() argument 155 octep_disable_msix(struct octep_device * oct) octep_disable_msix() argument 173 struct octep_device *oct = data; octep_mbox_intr_handler() local 188 struct octep_device *oct = data; octep_oei_intr_handler() local 203 struct octep_device *oct = data; octep_ire_intr_handler() local 218 struct octep_device *oct = data; octep_ore_intr_handler() local 233 struct octep_device *oct = data; octep_vfire_intr_handler() local 248 struct octep_device *oct = data; octep_vfore_intr_handler() local 263 struct octep_device *oct = data; octep_dma_intr_handler() local 278 struct octep_device *oct = data; octep_dma_vf_intr_handler() local 293 struct octep_device *oct = data; octep_pp_vf_intr_handler() local 308 struct octep_device *oct = data; octep_misc_intr_handler() local 323 struct octep_device *oct = data; octep_rsvd_intr_handler() local 340 struct octep_device *oct = ioq_vector->octep_dev; octep_ioq_intr_handler() local 355 octep_request_irqs(struct octep_device * oct) octep_request_irqs() argument 495 octep_free_irqs(struct octep_device * oct) octep_free_irqs() argument 524 octep_setup_irqs(struct octep_device * oct) octep_setup_irqs() argument 550 octep_clean_irqs(struct octep_device * oct) octep_clean_irqs() argument 615 octep_napi_add(struct octep_device * oct) octep_napi_add() argument 632 octep_napi_delete(struct octep_device * oct) octep_napi_delete() argument 648 octep_napi_enable(struct octep_device * oct) octep_napi_enable() argument 663 octep_napi_disable(struct octep_device * oct) octep_napi_disable() argument 692 struct octep_device *oct = netdev_priv(netdev); octep_open() local 758 struct octep_device *oct = netdev_priv(netdev); octep_stop() local 844 struct octep_device *oct = netdev_priv(netdev); octep_start_xmit() local 994 struct octep_device *oct = netdev_priv(netdev); octep_get_stats64() local 1025 struct octep_device *oct = container_of(work, struct octep_device, octep_tx_timeout_task() local 1047 struct octep_device *oct = netdev_priv(netdev); octep_tx_timeout() local 1054 struct octep_device *oct = netdev_priv(netdev); octep_set_mac() local 1074 struct octep_device *oct = netdev_priv(netdev); octep_change_mtu() local 1095 struct octep_device *oct = netdev_priv(dev); octep_set_features() local 1130 struct octep_device *oct = netdev_priv(dev); octep_get_vf_config() local 1143 struct octep_device *oct = netdev_priv(dev); octep_set_vf_mac() local 1186 struct octep_device *oct = container_of(work, struct octep_device, octep_intr_poll_task() local 1210 struct octep_device *oct = container_of(work, struct octep_device, octep_hb_timeout_task() local 1239 struct octep_device *oct = container_of(work, struct octep_device, octep_ctrl_mbox_task() local 1245 octep_devid_to_str(struct octep_device * oct) octep_devid_to_str() argument 1274 octep_device_setup(struct octep_device * oct) octep_device_setup() argument 1356 octep_device_cleanup(struct octep_device * oct) octep_device_cleanup() argument 1543 octep_sriov_disable(struct octep_device * oct) octep_sriov_disable() argument 1568 struct octep_device *oct = pci_get_drvdata(pdev); octep_remove() local 1586 octep_sriov_enable(struct octep_device * oct,int num_vfs) octep_sriov_enable() argument 1604 struct octep_device *oct = pci_get_drvdata(pdev); octep_sriov_configure() local [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_i in octep_pfvf_set_link_status() 85 octep_pfvf_set_rx_state(struct octep_device * oct,u32 vf_id,union octep_pfvf_mbox_word cmd,union octep_pfvf_mbox_word * rsp) octep_pfvf_set_rx_state() argument 100 octep_send_notification(struct octep_device * oct,u32 vf_id,union octep_pfvf_mbox_word cmd) octep_send_notification() argument 128 octep_pfvf_set_mtu(struct octep_device * oct,u32 vf_id,union octep_pfvf_mbox_word cmd,union octep_pfvf_mbox_word * rsp) octep_pfvf_set_mtu() argument 143 octep_pfvf_get_mtu(struct octep_device * oct,u32 vf_id,union octep_pfvf_mbox_word cmd,union octep_pfvf_mbox_word * rsp) octep_pfvf_get_mtu() argument 153 octep_pfvf_set_mac_addr(struct octep_device * oct,u32 vf_id,union octep_pfvf_mbox_word cmd,union octep_pfvf_mbox_word * rsp) octep_pfvf_set_mac_addr() argument 179 octep_pfvf_get_mac_addr(struct octep_device * oct,u32 vf_id,union octep_pfvf_mbox_word cmd,union octep_pfvf_mbox_word * rsp) octep_pfvf_get_mac_addr() argument 202 octep_pfvf_dev_remove(struct octep_device * oct,u32 vf_id,union octep_pfvf_mbox_word cmd,union octep_pfvf_mbox_word * rsp) octep_pfvf_dev_remove() argument 218 octep_pfvf_get_fw_info(struct octep_device * oct,u32 vf_id,union octep_pfvf_mbox_word cmd,union octep_pfvf_mbox_word * rsp) octep_pfvf_get_fw_info() argument 240 octep_pfvf_set_offloads(struct octep_device * oct,u32 vf_id,union octep_pfvf_mbox_word cmd,union octep_pfvf_mbox_word * rsp) octep_pfvf_set_offloads() argument 259 octep_setup_pfvf_mbox(struct octep_device * oct) octep_setup_pfvf_mbox() argument 297 octep_delete_pfvf_mbox(struct octep_device * oct) octep_delete_pfvf_mbox() argument 317 octep_pfvf_pf_get_data(struct octep_device * oct,struct octep_mbox * mbox,int vf_id,union octep_pfvf_mbox_word cmd,union octep_pfvf_mbox_word * rsp) octep_pfvf_pf_get_data() argument 386 octep_pfvf_notify(struct octep_device * oct,struct octep_ctrl_mbox_msg * msg) octep_pfvf_notify() argument 413 struct octep_device *oct = NULL; octep_pfvf_mbox_work() local [all...] |
H A D | octep_main.h | 79 void (*setup_iq_regs)(struct octep_device *oct, int q); 80 void (*setup_oq_regs)(struct octep_device *oct, int q); 81 void (*setup_mbox_regs)(struct octep_device *oct, int mbox); 95 int (*soft_reset)(struct octep_device *oct); 96 void (*reinit_regs)(struct octep_device *oct); 99 void (*enable_interrupts)(struct octep_device *oct); 100 void (*disable_interrupts)(struct octep_device *oct); 101 void (*poll_non_ioq_interrupts)(struct octep_device *oct); 103 void (*enable_io_queues)(struct octep_device *oct); 104 void (*disable_io_queues)(struct octep_device *oct); 140 struct octep_device *oct; global() member 330 OCTEP_MAJOR_REV(struct octep_device * oct) OCTEP_MAJOR_REV() argument 337 OCTEP_MINOR_REV(struct octep_device * oct) OCTEP_MINOR_REV() argument 365 OCTEP_PCI_WIN_READ(struct octep_device * oct,u64 addr) OCTEP_PCI_WIN_READ() argument 390 OCTEP_PCI_WIN_WRITE(struct octep_device * oct,u64 addr,u64 val) OCTEP_PCI_WIN_WRITE() argument [all...] |
H A D | octep_tx.c | 35 struct octep_device *oct = iq->octep_dev; in octep_iq_process_completions() local 45 iq->octep_read_index = oct->hw_ops.update_iq_read_idx(iq); in octep_iq_process_completions() 152 * @oct: Octeon device private data structure. 157 void octep_clean_iqs(struct octep_device *oct) in octep_clean_iqs() argument 161 for (i = 0; i < oct->num_iqs; i++) { in octep_clean_iqs() 162 octep_iq_free_pending(oct->iq[i]); in octep_clean_iqs() 163 octep_iq_reset_indices(oct->iq[i]); in octep_clean_iqs() 170 * @oct: Octeon device private data structure. 175 static int octep_setup_iq(struct octep_device *oct, int q_no) in octep_setup_iq() argument 184 oct in octep_setup_iq() 265 struct octep_device *oct = iq->octep_dev; octep_free_iq() local 293 octep_setup_iqs(struct octep_device * oct) octep_setup_iqs() argument 322 octep_free_iqs(struct octep_device * oct) octep_free_iqs() argument [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_CN in cn93_vf_dump_q_regs() 81 cn93_vf_reset_iq(struct octep_vf_device * oct,int q_no) cn93_vf_reset_iq() argument 106 cn93_vf_reset_oq(struct octep_vf_device * oct,int q_no) cn93_vf_reset_oq() argument 122 octep_vf_reset_io_queues_cn93(struct octep_vf_device * oct) octep_vf_reset_io_queues_cn93() argument 136 octep_vf_init_config_cn93_vf(struct octep_vf_device * oct) octep_vf_init_config_cn93_vf() argument 161 octep_vf_setup_iq_regs_cn93(struct octep_vf_device * oct,int iq_no) octep_vf_setup_iq_regs_cn93() argument 199 octep_vf_setup_oq_regs_cn93(struct octep_vf_device * oct,int oq_no) octep_vf_setup_oq_regs_cn93() argument 245 octep_vf_setup_mbox_regs_cn93(struct octep_vf_device * oct,int q_no) octep_vf_setup_mbox_regs_cn93() argument 260 cn93_handle_vf_mbox_intr(struct octep_vf_device * oct) cn93_handle_vf_mbox_intr() argument 272 struct octep_vf_device *oct; octep_vf_ioq_intr_handler_cn93() local 291 octep_vf_reinit_regs_cn93(struct octep_vf_device * oct) octep_vf_reinit_regs_cn93() argument 309 octep_vf_enable_interrupts_cn93(struct octep_vf_device * oct) octep_vf_enable_interrupts_cn93() argument 330 octep_vf_disable_interrupts_cn93(struct octep_vf_device * oct) octep_vf_disable_interrupts_cn93() argument 366 octep_vf_enable_iq_cn93(struct octep_vf_device * oct,int iq_no) octep_vf_enable_iq_cn93() argument 388 octep_vf_enable_oq_cn93(struct octep_vf_device * oct,int oq_no) octep_vf_enable_oq_cn93() argument 404 octep_vf_enable_io_queues_cn93(struct octep_vf_device * oct) octep_vf_enable_io_queues_cn93() argument 415 octep_vf_disable_iq_cn93(struct octep_vf_device * oct,int iq_no) octep_vf_disable_iq_cn93() argument 425 octep_vf_disable_oq_cn93(struct octep_vf_device * oct,int oq_no) octep_vf_disable_oq_cn93() argument 435 octep_vf_disable_io_queues_cn93(struct octep_vf_device * oct) octep_vf_disable_io_queues_cn93() argument 446 octep_vf_dump_registers_cn93(struct octep_vf_device * oct) octep_vf_dump_registers_cn93() argument 464 octep_vf_device_setup_cn93(struct octep_vf_device * oct) octep_vf_device_setup_cn93() argument [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_CN in cnxk_vf_dump_q_regs() 84 cnxk_vf_reset_iq(struct octep_vf_device * oct,int q_no) cnxk_vf_reset_iq() argument 108 cnxk_vf_reset_oq(struct octep_vf_device * oct,int q_no) cnxk_vf_reset_oq() argument 124 octep_vf_reset_io_queues_cnxk(struct octep_vf_device * oct) octep_vf_reset_io_queues_cnxk() argument 138 octep_vf_init_config_cnxk_vf(struct octep_vf_device * oct) octep_vf_init_config_cnxk_vf() argument 164 octep_vf_setup_iq_regs_cnxk(struct octep_vf_device * oct,int iq_no) octep_vf_setup_iq_regs_cnxk() argument 202 octep_vf_setup_oq_regs_cnxk(struct octep_vf_device * oct,int oq_no) octep_vf_setup_oq_regs_cnxk() argument 256 octep_vf_setup_mbox_regs_cnxk(struct octep_vf_device * oct,int q_no) octep_vf_setup_mbox_regs_cnxk() argument 271 cnxk_handle_vf_mbox_intr(struct octep_vf_device * oct) cnxk_handle_vf_mbox_intr() argument 283 struct octep_vf_device *oct; octep_vf_ioq_intr_handler_cnxk() local 302 octep_vf_reinit_regs_cnxk(struct octep_vf_device * oct) octep_vf_reinit_regs_cnxk() argument 320 octep_vf_enable_interrupts_cnxk(struct octep_vf_device * oct) octep_vf_enable_interrupts_cnxk() argument 341 octep_vf_disable_interrupts_cnxk(struct octep_vf_device * oct) octep_vf_disable_interrupts_cnxk() argument 377 octep_vf_enable_iq_cnxk(struct octep_vf_device * oct,int iq_no) octep_vf_enable_iq_cnxk() argument 399 octep_vf_enable_oq_cnxk(struct octep_vf_device * oct,int oq_no) octep_vf_enable_oq_cnxk() argument 415 octep_vf_enable_io_queues_cnxk(struct octep_vf_device * oct) octep_vf_enable_io_queues_cnxk() argument 426 octep_vf_disable_iq_cnxk(struct octep_vf_device * oct,int iq_no) octep_vf_disable_iq_cnxk() argument 436 octep_vf_disable_oq_cnxk(struct octep_vf_device * oct,int oq_no) octep_vf_disable_oq_cnxk() argument 446 octep_vf_disable_io_queues_cnxk(struct octep_vf_device * oct) octep_vf_disable_io_queues_cnxk() argument 457 octep_vf_dump_registers_cnxk(struct octep_vf_device * oct) octep_vf_dump_registers_cnxk() argument 475 octep_vf_device_setup_cnxk(struct octep_vf_device * oct) octep_vf_device_setup_cnxk() argument [all...] |
H A D | octep_vf_mbox.c | 23 int octep_vf_setup_mbox(struct octep_vf_device *oct) in octep_vf_setup_mbox() argument 27 oct->mbox = vzalloc(sizeof(*oct->mbox)); in octep_vf_setup_mbox() 28 if (!oct->mbox) in octep_vf_setup_mbox() 31 mutex_init(&oct->mbox->lock); in octep_vf_setup_mbox() 33 oct->hw_ops.setup_mbox_regs(oct, ring); in octep_vf_setup_mbox() 34 INIT_WORK(&oct->mbox->wk.work, octep_vf_mbox_work); in octep_vf_setup_mbox() 35 oct->mbox->wk.ctxptr = oct; in octep_vf_setup_mbox() 41 octep_vf_delete_mbox(struct octep_vf_device * oct) octep_vf_delete_mbox() argument 54 octep_vf_mbox_version_check(struct octep_vf_device * oct) octep_vf_mbox_version_check() argument 81 struct octep_vf_device *oct = NULL; octep_vf_mbox_work() local 112 __octep_vf_mbox_send_cmd(struct octep_vf_device * oct,union octep_pfvf_mbox_word cmd,union octep_pfvf_mbox_word * rsp) __octep_vf_mbox_send_cmd() argument 150 octep_vf_mbox_send_cmd(struct octep_vf_device * oct,union octep_pfvf_mbox_word cmd,union octep_pfvf_mbox_word * rsp) octep_vf_mbox_send_cmd() argument 170 octep_vf_mbox_bulk_read(struct octep_vf_device * oct,enum octep_pfvf_mbox_opcode opcode,u8 * data,int * size) octep_vf_mbox_bulk_read() argument 236 octep_vf_mbox_set_mtu(struct octep_vf_device * oct,int mtu) octep_vf_mbox_set_mtu() argument 267 octep_vf_mbox_set_mac_addr(struct octep_vf_device * oct,char * mac_addr) octep_vf_mbox_set_mac_addr() argument 289 octep_vf_mbox_get_mac_addr(struct octep_vf_device * oct,char * mac_addr) octep_vf_mbox_get_mac_addr() argument 311 octep_vf_mbox_set_rx_state(struct octep_vf_device * oct,bool state) octep_vf_mbox_set_rx_state() argument 332 octep_vf_mbox_set_link_status(struct octep_vf_device * oct,bool status) octep_vf_mbox_set_link_status() argument 353 octep_vf_mbox_get_link_status(struct octep_vf_device * oct,u8 * oper_up) octep_vf_mbox_get_link_status() argument 374 octep_vf_mbox_dev_remove(struct octep_vf_device * oct) octep_vf_mbox_dev_remove() argument 385 octep_vf_mbox_get_fw_info(struct octep_vf_device * oct) octep_vf_mbox_get_fw_info() argument 410 octep_vf_mbox_set_offloads(struct octep_vf_device * oct,u16 tx_offloads,u16 rx_offloads) octep_vf_mbox_set_offloads() argument [all...] |