/openbmc/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() 71 void lio_cn6xxx_setup_pcie_mps(struct octeon_device *oct, in lio_cn6xxx_setup_pcie_mps() 94 void lio_cn6xxx_setup_pcie_mrrs(struct octeon_device *oct, in lio_cn6xxx_setup_pcie_mrrs() 122 u32 lio_cn6xxx_coprocessor_clock(struct octeon_device *oct) in lio_cn6xxx_coprocessor_clock() 130 u32 lio_cn6xxx_get_oq_ticks(struct octeon_device *oct, in lio_cn6xxx_get_oq_ticks() 330 int lio_cn6xxx_enable_io_queues(struct octeon_device *oct) in lio_cn6xxx_enable_io_queues() 349 void lio_cn6xxx_disable_io_queues(struct octeon_device *oct) in lio_cn6xxx_disable_io_queues() 412 lio_cn6xxx_bar1_idx_setup(struct octeon_device *oct, in lio_cn6xxx_bar1_idx_setup() 436 void lio_cn6xxx_bar1_idx_write(struct octeon_device *oct, in lio_cn6xxx_bar1_idx_write() 470 void lio_cn6xxx_enable_interrupt(struct octeon_device *oct, in lio_cn6xxx_enable_interrupt() [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() 208 static int cn23xx_pf_soft_reset(struct octeon_device *oct) in cn23xx_pf_soft_reset() 682 struct octeon_device *oct = mbox->oct_dev; in cn23xx_pf_mbox_thread() local 709 static int cn23xx_setup_pf_mbox(struct octeon_device *oct) in cn23xx_setup_pf_mbox() 771 static int cn23xx_free_pf_mbox(struct octeon_device *oct) in cn23xx_free_pf_mbox() 943 struct octeon_device *oct = ioq_vector->oct_dev; in cn23xx_pf_msix_interrupt_handler() local 1007 struct octeon_device *oct = (struct octeon_device *)dev; in cn23xx_interrupt_handler() local 1154 static int cn23xx_get_pf_num(struct octeon_device *oct) in cn23xx_get_pf_num() 1249 int cn23xx_sriov_config(struct octeon_device *oct) in cn23xx_sriov_config() 1419 int cn23xx_fw_loaded(struct octeon_device *oct) in cn23xx_fw_loaded() [all …]
|
H A D | cn23xx_vf_device.c | 202 static int cn23xx_setup_vf_device_regs(struct octeon_device *oct) in cn23xx_setup_vf_device_regs() 271 static int cn23xx_free_vf_mbox(struct octeon_device *oct) in cn23xx_free_vf_mbox() 278 static int cn23xx_setup_vf_mbox(struct octeon_device *oct) in cn23xx_setup_vf_mbox() 316 static int cn23xx_enable_vf_io_queues(struct octeon_device *oct) in cn23xx_enable_vf_io_queues() 357 static void cn23xx_disable_vf_io_queues(struct octeon_device *oct) in cn23xx_disable_vf_io_queues() 370 void cn23xx_vf_ask_pf_to_do_flr(struct octeon_device *oct) in cn23xx_vf_ask_pf_to_do_flr() 389 static void octeon_pfvf_hs_callback(struct octeon_device *oct, in octeon_pfvf_hs_callback() 405 int cn23xx_octeon_pfvf_handshake(struct octeon_device *oct) in cn23xx_octeon_pfvf_handshake() 474 struct octeon_device *oct = ioq_vector->oct_dev; in cn23xx_handle_vf_mbox_intr() local 490 struct octeon_device *oct = ioq_vector->oct_dev; in cn23xx_vf_msix_interrupt_handler() local [all …]
|
H A D | octeon_device.c | 646 void octeon_free_device_mem(struct octeon_device *oct) in octeon_free_device_mem() 671 struct octeon_device *oct; in octeon_allocate_device_mem() local 724 struct octeon_device *oct = NULL; in octeon_allocate_device() local 763 int octeon_register_device(struct octeon_device *oct, in octeon_register_device() 865 octeon_free_ioq_vector(struct octeon_device *oct) in octeon_free_ioq_vector() 1004 void octeon_set_droq_pkt_op(struct octeon_device *oct, in octeon_set_droq_pkt_op() 1134 octeon_register_dispatch_fn(struct octeon_device *oct, in octeon_register_dispatch_fn() 1341 u64 lio_pci_readq(struct octeon_device *oct, u64 addr) in lio_pci_readq() 1373 void lio_pci_writeq(struct octeon_device *oct, in lio_pci_writeq() 1394 int octeon_mem_access_ok(struct octeon_device *oct) in octeon_mem_access_ok() [all …]
|
H A D | octeon_mem_ops.c | 31 octeon_toggle_bar1_swapmode(struct octeon_device *oct, u32 idx) 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() 68 octeon_pci_fastread(struct octeon_device *oct, u8 __iomem *mapped_addr, in octeon_pci_fastread() 94 __octeon_pci_rw_core_mem(struct octeon_device *oct, u64 addr, in __octeon_pci_rw_core_mem() 160 octeon_pci_read_core_mem(struct octeon_device *oct, in octeon_pci_read_core_mem() 170 octeon_pci_write_core_mem(struct octeon_device *oct, in octeon_pci_write_core_mem() 179 u64 octeon_read_device_mem64(struct octeon_device *oct, u64 coreaddr) in octeon_read_device_mem64() 189 u32 octeon_read_device_mem32(struct octeon_device *oct, u64 coreaddr) in octeon_read_device_mem32() 199 void octeon_write_device_mem32(struct octeon_device *oct, u64 coreaddr, in octeon_write_device_mem32()
|
H A D | request_manager.c | 47 int octeon_init_instr_queue(struct octeon_device *oct, in octeon_init_instr_queue() 191 int octeon_setup_iq(struct octeon_device *oct, in octeon_setup_iq() 236 int lio_wait_for_instr_fetch(struct octeon_device *oct) in lio_wait_for_instr_fetch() 363 lio_process_iq_request_list(struct octeon_device *oct, in lio_process_iq_request_list() 536 octeon_send_command(struct octeon_device *oct, u32 iq_no, in octeon_send_command() 577 octeon_prepare_soft_command(struct octeon_device *oct, in octeon_prepare_soft_command() 684 int octeon_send_soft_command(struct octeon_device *oct, in octeon_send_soft_command() 768 int octeon_free_sc_done_list(struct octeon_device *oct) in octeon_free_sc_done_list() 808 int octeon_free_sc_zombie_list(struct octeon_device *oct) in octeon_free_sc_zombie_list() 833 int octeon_free_sc_buffer_pool(struct octeon_device *oct) in octeon_free_sc_buffer_pool() [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() 60 static int lio_cn68xx_soft_reset(struct octeon_device *oct) in lio_cn68xx_soft_reset() 68 static void lio_cn68xx_setup_pkt_ctl_regs(struct octeon_device *oct) in lio_cn68xx_setup_pkt_ctl_regs() 90 static int lio_cn68xx_setup_device_regs(struct octeon_device *oct) in lio_cn68xx_setup_device_regs() 108 static inline void lio_cn68xx_vendor_message_fix(struct octeon_device *oct) in lio_cn68xx_vendor_message_fix() 118 static int lio_is_210nv(struct octeon_device *oct) in lio_is_210nv() 125 int lio_setup_cn68xx_octeon_device(struct octeon_device *oct) in lio_setup_cn68xx_octeon_device()
|
H A D | lio_main.c | 165 struct octeon_device *oct = oct_priv->dev; in octeon_droq_bh() local 532 struct octeon_device *oct = lio->oct_dev; in setup_link_status_change_wq() local 571 struct octeon_device *oct = lio->oct_dev; in update_link_status() local 615 struct octeon_device *oct = lio->oct_dev; in lio_sync_octeon_time() local 665 struct octeon_device *oct = lio->oct_dev; in setup_sync_octeon_time_wq() local 754 struct octeon_device *oct = param; in liquidio_watchdog() local 2047 struct octeon_device *oct; in liquidio_get_stats64() local 2308 struct octeon_device *oct; in liquidio_xmit() local 3131 struct octeon_device *oct; in liquidio_eswitch_mode_get() local 3146 struct octeon_device *oct; in liquidio_eswitch_mode_set() local [all …]
|
H A D | lio_vf_rep.c | 113 struct octeon_device *oct; in lio_vf_rep_open() local 146 struct octeon_device *oct; in lio_vf_rep_stop() local 203 struct octeon_device *oct; in lio_vf_rep_change_mtu() local 231 struct octeon_device *oct = vf_rep->oct; in lio_vf_rep_phys_port_name() local 261 lio_vf_rep_copy_packet(struct octeon_device *oct, in lio_vf_rep_copy_packet() 298 struct octeon_device *oct; in lio_vf_rep_pkt_recv() local 373 struct octeon_device *oct = vf_rep->oct; in lio_vf_rep_pkt_xmit() local 467 struct octeon_device *oct; in lio_vf_rep_fetch_stats() local 489 lio_vf_rep_create(struct octeon_device *oct) in lio_vf_rep_create() 575 lio_vf_rep_destroy(struct octeon_device *oct) in lio_vf_rep_destroy() [all …]
|
H A D | lio_core.c | 166 struct octeon_device *oct = lio->oct_dev; in liquidio_set_feature() local 262 struct octeon_device *oct = lio->oct_dev; in liquidio_link_ctrl_cmd_completion() local 452 struct octeon_device *oct = lio->oct_dev; in octnet_poll_check_rxq_oom_status() local 466 struct octeon_device *oct = lio->oct_dev; in setup_rx_oom_poll_fn() local 493 struct octeon_device *oct = lio->oct_dev; in cleanup_rx_oom_poll_fn() local 597 struct octeon_device *oct = lio->oct_dev; in liquidio_push_packet() local 730 struct octeon_device *oct; in liquidio_napi_drv_callback() local 753 struct octeon_device *oct; in liquidio_napi_poll() local 1217 struct octeon_device *oct = lio->oct_dev; in liquidio_change_mtu() local 1682 struct octeon_device *oct; in liquidio_set_fec() local [all …]
|
H A D | lio_vf_main.c | 304 struct octeon_device *oct = lio->oct_dev; in setup_link_status_change_wq() local 342 struct octeon_device *oct = lio->oct_dev; in update_link_status() local 908 struct octeon_device *oct = lio->oct_dev; in liquidio_open() local 954 struct octeon_device *oct = lio->oct_dev; in liquidio_stop() local 1035 struct octeon_device *oct = lio->oct_dev; in liquidio_set_uc_list() local 1076 struct octeon_device *oct = lio->oct_dev; in liquidio_set_mcast_list() local 1127 struct octeon_device *oct = lio->oct_dev; in liquidio_set_mac() local 1176 struct octeon_device *oct; in liquidio_get_stats64() local 1413 struct octeon_device *oct; in liquidio_xmit() local 1653 struct octeon_device *oct = lio->oct_dev; in liquidio_vlan_rx_add_vid() local [all …]
|
H A D | octeon_console.c | 147 static inline u64 __cvmx_bootmem_desc_get(struct octeon_device *oct, in __cvmx_bootmem_desc_get() 173 static void CVMX_BOOTMEM_NAMED_GET_NAME(struct octeon_device *oct, in CVMX_BOOTMEM_NAMED_GET_NAME() 195 static int __cvmx_bootmem_check_version(struct octeon_device *oct, in __cvmx_bootmem_check_version() 228 *__cvmx_bootmem_find_named_block_flags(struct octeon_device *oct, in __cvmx_bootmem_find_named_block_flags() 399 int octeon_wait_for_bootloader(struct octeon_device *oct, in octeon_wait_for_bootloader() 431 static void output_console_line(struct octeon_device *oct, in output_console_line() 484 struct octeon_device *oct = (struct octeon_device *)wk->ctxptr; in check_console() local 533 int octeon_init_consoles(struct octeon_device *oct) in octeon_init_consoles() 576 static void octeon_get_uboot_version(struct octeon_device *oct) in octeon_get_uboot_version() 652 int octeon_add_console(struct octeon_device *oct, u32 console_num, in octeon_add_console() [all …]
|
H A D | lio_ethtool.c | 219 struct octeon_device *oct = lio->oct_dev; in lio_get_link_ksettings() local 400 struct octeon_device *oct; in lio_set_link_ksettings() local 439 struct octeon_device *oct; in lio_get_drvinfo() local 454 struct octeon_device *oct; in lio_get_vf_drvinfo() local 471 struct octeon_device *oct = lio->oct_dev; in lio_send_queue_count_update() local 500 struct octeon_device *oct = lio->oct_dev; in lio_ethtool_get_channels() local 606 struct octeon_device *oct = lio->oct_dev; in lio_ethtool_set_channels() local 706 struct octeon_device *oct = lio->oct_dev; in octnet_gpio_access() local 733 struct octeon_device *oct = lio->oct_dev; in octnet_id_active() local 832 struct octeon_device *oct = lio->oct_dev; in lio_set_phys_id() local [all …]
|
H A D | octeon_droq.c | 141 octeon_droq_destroy_ring_buffers(struct octeon_device *oct, in octeon_droq_destroy_ring_buffers() 168 octeon_droq_setup_ring_buffers(struct octeon_device *oct, in octeon_droq_setup_ring_buffers() 199 int octeon_delete_droq(struct octeon_device *oct, u32 q_no) in octeon_delete_droq() 222 int octeon_init_droq(struct octeon_device *oct, in octeon_init_droq() 502 struct octeon_device *oct = droq->oct_dev; in octeon_retry_droq_refill() local 530 octeon_droq_dispatch_pkt(struct octeon_device *oct, in octeon_droq_dispatch_pkt() 595 octeon_droq_fast_process_packets(struct octeon_device *oct, in octeon_droq_fast_process_packets() 743 octeon_droq_process_packets(struct octeon_device *oct, in octeon_droq_process_packets() 786 octeon_droq_process_poll_pkts(struct octeon_device *oct, in octeon_droq_process_poll_pkts() 828 octeon_enable_irq(struct octeon_device *oct, u32 q_no) in octeon_enable_irq() [all …]
|
H A D | octeon_nic.c | 30 octeon_alloc_soft_command_resp(struct octeon_device *oct, in octeon_alloc_soft_command_resp() 84 int octnet_send_nic_data_pkt(struct octeon_device *oct, in octnet_send_nic_data_pkt() 97 *octnic_alloc_ctrl_pkt_sc(struct octeon_device *oct, in octnic_alloc_ctrl_pkt_sc() 139 octnet_send_nic_ctrl_pkt(struct octeon_device *oct, in octnet_send_nic_ctrl_pkt()
|
H A D | octeon_mailbox.c | 131 int octeon_mbox_write(struct octeon_device *oct, in octeon_mbox_write() 209 static void get_vf_stats(struct octeon_device *oct, in get_vf_stats() 239 struct octeon_device *oct = mbox->oct_dev; in octeon_mbox_process_cmd() local 355 int octeon_mbox_cancel(struct octeon_device *oct, int q_no) in octeon_mbox_cancel()
|
H A D | response_manager.c | 30 int octeon_setup_response_list(struct octeon_device *oct) in octeon_setup_response_list() 57 void octeon_delete_response_list(struct octeon_device *oct) in octeon_delete_response_list() 229 struct octeon_device *oct = (struct octeon_device *)wk->ctxptr; in oct_poll_req_completion() local
|
H A D | octeon_nic.h | 112 static inline int octnet_iq_is_full(struct octeon_device *oct, u32 q_no) in octnet_iq_is_full() 119 octnet_prepare_pci_cmd_o2(struct octeon_device *oct, in octnet_prepare_pci_cmd_o2() 173 octnet_prepare_pci_cmd_o3(struct octeon_device *oct, in octnet_prepare_pci_cmd_o3() 243 octnet_prepare_pci_cmd(struct octeon_device *oct, union octeon_instr_64B *cmd, in octnet_prepare_pci_cmd()
|
H A D | octeon_network.h | 260 *recv_buffer_alloc(struct octeon_device *oct, in recv_buffer_alloc() 331 recv_buffer_recycle(struct octeon_device *oct, void *buf) in recv_buffer_recycle() 363 *recv_buffer_reuse(struct octeon_device *oct, void *buf) in recv_buffer_reuse() 432 #define lio_dma_alloc(oct, size, dma_addr) \ argument 434 #define lio_dma_free(oct, size, virt_addr, dma_addr) \ argument 535 static inline int wait_for_pending_requests(struct octeon_device *oct) in wait_for_pending_requests() 602 static inline int skb_iq(struct octeon_device *oct, struct sk_buff *skb) in skb_iq()
|
/openbmc/linux/drivers/net/ethernet/marvell/octeon_ep/ |
H A D | octep_cn9k_pf.c | 43 static void cn93_dump_regs(struct octep_device *oct, int qno) in cn93_dump_regs() 110 static int cn93_reset_iq(struct octep_device *oct, int q_no) in cn93_reset_iq() 138 static void cn93_reset_oq(struct octep_device *oct, int q_no) in cn93_reset_oq() 156 static void octep_reset_io_queues_cn93_pf(struct octep_device *oct) in octep_reset_io_queues_cn93_pf() 203 static void octep_init_config_cn93_pf(struct octep_device *oct) in octep_init_config_cn93_pf() 405 struct octep_device *oct = (struct octep_device *)dev; in octep_non_ioq_intr_handler_cn93_pf() local 523 static int octep_soft_reset_cn93_pf(struct octep_device *oct) in octep_soft_reset_cn93_pf() 540 static void octep_reinit_regs_cn93_pf(struct octep_device *oct) in octep_reinit_regs_cn93_pf() 652 static void octep_enable_io_queues_cn93_pf(struct octep_device *oct) in octep_enable_io_queues_cn93_pf() 697 static void octep_dump_registers_cn93_pf(struct octep_device *oct) in octep_dump_registers_cn93_pf() [all …]
|
H A D | octep_main.c | 167 struct octep_device *oct = data; in octep_non_ioq_intr_handler() local 184 struct octep_device *oct = ioq_vector->octep_dev; in octep_ioq_intr_handler() local 484 struct octep_device *oct = netdev_priv(netdev); in octep_open() local 550 struct octep_device *oct = netdev_priv(netdev); in octep_stop() local 629 struct octep_device *oct = netdev_priv(netdev); in octep_start_xmit() local 761 struct octep_device *oct = netdev_priv(netdev); in octep_get_stats64() local 826 struct octep_device *oct = netdev_priv(netdev); in octep_tx_timeout() local 833 struct octep_device *oct = netdev_priv(netdev); in octep_set_mac() local 853 struct octep_device *oct = netdev_priv(netdev); in octep_change_mtu() local 968 int octep_device_setup(struct octep_device *oct) in octep_device_setup() [all …]
|
H A D | octep_ctrl_net.c | 55 static int octep_send_mbox_req(struct octep_device *oct, in octep_send_mbox_req() 97 int octep_ctrl_net_init(struct octep_device *oct) in octep_ctrl_net_init() 123 int octep_ctrl_net_get_link_status(struct octep_device *oct, int vfid) in octep_ctrl_net_get_link_status() 201 int octep_ctrl_net_set_mtu(struct octep_device *oct, int vfid, int mtu, in octep_ctrl_net_set_mtu() 215 int octep_ctrl_net_get_if_stats(struct octep_device *oct, int vfid, in octep_ctrl_net_get_if_stats() 236 int octep_ctrl_net_get_link_info(struct octep_device *oct, int vfid, in octep_ctrl_net_get_link_info() 261 int octep_ctrl_net_set_link_info(struct octep_device *oct, int vfid, in octep_ctrl_net_set_link_info() 279 static void process_mbox_resp(struct octep_device *oct, in process_mbox_resp() 296 static int process_mbox_notify(struct octep_device *oct, in process_mbox_notify() 331 void octep_ctrl_net_recv_fw_messages(struct octep_device *oct) in octep_ctrl_net_recv_fw_messages() [all …]
|
H A D | octep_rx.c | 79 static int octep_oq_refill(struct octep_device *oct, struct octep_oq *oq) in octep_oq_refill() 123 static int octep_setup_oq(struct octep_device *oct, int q_no) in octep_setup_oq() 227 struct octep_device *oct = oq->octep_dev; in octep_free_oq() local 250 int octep_setup_oqs(struct octep_device *oct) in octep_setup_oqs() 282 void octep_oq_dbell_init(struct octep_device *oct) in octep_oq_dbell_init() 295 void octep_free_oqs(struct octep_device *oct) in octep_free_oqs() 316 static int octep_oq_check_hw_for_pkts(struct octep_device *oct, in octep_oq_check_hw_for_pkts() 352 static int __octep_oq_process_rx(struct octep_device *oct, in __octep_oq_process_rx() 477 struct octep_device *oct = oq->octep_dev; in octep_oq_process_rx() local
|
H A D | octep_tx.c | 36 struct octep_device *oct = iq->octep_dev; in octep_iq_process_completions() local 160 void octep_clean_iqs(struct octep_device *oct) in octep_clean_iqs() 178 static int octep_setup_iq(struct octep_device *oct, int q_no) in octep_setup_iq() 267 struct octep_device *oct = iq->octep_dev; in octep_free_iq() local 295 int octep_setup_iqs(struct octep_device *oct) in octep_setup_iqs() 324 void octep_free_iqs(struct octep_device *oct) in octep_free_iqs()
|
H A D | octep_ethtool.c | 72 struct octep_device *oct = netdev_priv(netdev); in octep_get_drvinfo() local 81 struct octep_device *oct = netdev_priv(netdev); in octep_get_strings() local 117 struct octep_device *oct = netdev_priv(netdev); in octep_get_sset_count() local 134 struct octep_device *oct = netdev_priv(netdev); in octep_get_ethtool_stats() local 282 struct octep_device *oct = netdev_priv(netdev); in octep_get_link_ksettings() local 335 struct octep_device *oct = netdev_priv(netdev); in octep_set_link_ksettings() local
|