/Linux-v4.19/drivers/net/ethernet/cavium/liquidio/ |
D | cn66xx_device.c | 29 int lio_cn6xxx_soft_reset(struct octeon_device *oct) in lio_cn6xxx_soft_reset() 58 void lio_cn6xxx_enable_error_reporting(struct octeon_device *oct) in lio_cn6xxx_enable_error_reporting() 74 void lio_cn6xxx_setup_pcie_mps(struct octeon_device *oct, in lio_cn6xxx_setup_pcie_mps() 97 void lio_cn6xxx_setup_pcie_mrrs(struct octeon_device *oct, in lio_cn6xxx_setup_pcie_mrrs() 125 u32 lio_cn6xxx_coprocessor_clock(struct octeon_device *oct) in lio_cn6xxx_coprocessor_clock() 133 u32 lio_cn6xxx_get_oq_ticks(struct octeon_device *oct, in lio_cn6xxx_get_oq_ticks() 158 void lio_cn6xxx_setup_global_input_regs(struct octeon_device *oct) in lio_cn6xxx_setup_global_input_regs() 173 static void lio_cn66xx_setup_pkt_ctl_regs(struct octeon_device *oct) in lio_cn66xx_setup_pkt_ctl_regs() 196 void lio_cn6xxx_setup_global_output_regs(struct octeon_device *oct) in lio_cn6xxx_setup_global_output_regs() 250 static int lio_cn6xxx_setup_device_regs(struct octeon_device *oct) in lio_cn6xxx_setup_device_regs() [all …]
|
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() 239 static void cn23xx_enable_error_reporting(struct octeon_device *oct) in cn23xx_enable_error_reporting() 269 static u32 cn23xx_coprocessor_clock(struct octeon_device *oct) in cn23xx_coprocessor_clock() 279 u32 cn23xx_pf_get_oq_ticks(struct octeon_device *oct, u32 time_intr_in_us) in cn23xx_pf_get_oq_ticks() 301 static void cn23xx_setup_global_mac_regs(struct octeon_device *oct) in cn23xx_setup_global_mac_regs() 345 static int cn23xx_reset_io_queues(struct octeon_device *oct) in cn23xx_reset_io_queues() 400 static int cn23xx_pf_setup_global_input_regs(struct octeon_device *oct) in cn23xx_pf_setup_global_input_regs() 475 static void cn23xx_pf_setup_global_output_regs(struct octeon_device *oct) in cn23xx_pf_setup_global_output_regs() 564 static int cn23xx_setup_pf_device_regs(struct octeon_device *oct) in cn23xx_setup_pf_device_regs() [all …]
|
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() 50 static int cn23xx_vf_reset_io_queues(struct octeon_device *oct, u32 num_queues) in cn23xx_vf_reset_io_queues() 101 static int cn23xx_vf_setup_global_input_regs(struct octeon_device *oct) in cn23xx_vf_setup_global_input_regs() 151 static void cn23xx_vf_setup_global_output_regs(struct octeon_device *oct) in cn23xx_vf_setup_global_output_regs() 202 static int cn23xx_setup_vf_device_regs(struct octeon_device *oct) in cn23xx_setup_vf_device_regs() 212 static void cn23xx_setup_vf_iq_regs(struct octeon_device *oct, u32 iq_no) in cn23xx_setup_vf_iq_regs() 245 static void cn23xx_setup_vf_oq_regs(struct octeon_device *oct, u32 oq_no) in cn23xx_setup_vf_oq_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() 318 static int cn23xx_enable_vf_io_queues(struct octeon_device *oct) in cn23xx_enable_vf_io_queues() [all …]
|
D | octeon_device.c | 569 static void *__retrieve_octeon_config_info(struct octeon_device *oct, in __retrieve_octeon_config_info() 597 static int __verify_octeon_config_info(struct octeon_device *oct, void *conf) in __verify_octeon_config_info() 613 void *oct_get_config_info(struct octeon_device *oct, u16 card_type) in oct_get_config_info() 645 void octeon_free_device_mem(struct octeon_device *oct) in octeon_free_device_mem() 669 struct octeon_device *oct; in octeon_allocate_device_mem() local 722 struct octeon_device *oct = NULL; in octeon_allocate_device() local 760 int octeon_register_device(struct octeon_device *oct, in octeon_register_device() 813 int octeon_deregister_device(struct octeon_device *oct) in octeon_deregister_device() 827 octeon_allocate_ioq_vector(struct octeon_device *oct, u32 num_ioqs) in octeon_allocate_ioq_vector() 859 octeon_free_ioq_vector(struct octeon_device *oct) in octeon_free_ioq_vector() [all …]
|
D | octeon_mem_ops.c | 30 octeon_toggle_bar1_swapmode(struct octeon_device *oct, u32 idx) in octeon_toggle_bar1_swapmode() 39 #define octeon_toggle_bar1_swapmode(oct, idx) argument 43 octeon_pci_fastwrite(struct octeon_device *oct, u8 __iomem *mapped_addr, in octeon_pci_fastwrite() 67 octeon_pci_fastread(struct octeon_device *oct, u8 __iomem *mapped_addr, in octeon_pci_fastread() 93 __octeon_pci_rw_core_mem(struct octeon_device *oct, u64 addr, in __octeon_pci_rw_core_mem() 159 octeon_pci_read_core_mem(struct octeon_device *oct, in octeon_pci_read_core_mem() 168 octeon_pci_write_core_mem(struct octeon_device *oct, in octeon_pci_write_core_mem() 176 u64 octeon_read_device_mem64(struct octeon_device *oct, u64 coreaddr) in octeon_read_device_mem64() 185 u32 octeon_read_device_mem32(struct octeon_device *oct, u64 coreaddr) in octeon_read_device_mem32() 194 void octeon_write_device_mem32(struct octeon_device *oct, u64 coreaddr, in octeon_write_device_mem32()
|
D | cn68xx_device.c | 30 static void lio_cn68xx_set_dpi_regs(struct octeon_device *oct) in lio_cn68xx_set_dpi_regs() 59 static int lio_cn68xx_soft_reset(struct octeon_device *oct) in lio_cn68xx_soft_reset() 67 static void lio_cn68xx_setup_pkt_ctl_regs(struct octeon_device *oct) in lio_cn68xx_setup_pkt_ctl_regs() 89 static int lio_cn68xx_setup_device_regs(struct octeon_device *oct) in lio_cn68xx_setup_device_regs() 107 static inline void lio_cn68xx_vendor_message_fix(struct octeon_device *oct) in lio_cn68xx_vendor_message_fix() 117 static int lio_is_210nv(struct octeon_device *oct) in lio_is_210nv() 124 int lio_setup_cn68xx_octeon_device(struct octeon_device *oct) in lio_setup_cn68xx_octeon_device()
|
D | request_manager.c | 43 static inline int IQ_INSTR_MODE_64B(struct octeon_device *oct, int iq_no) in IQ_INSTR_MODE_64B() 50 #define IQ_INSTR_MODE_32B(oct, iq_no) (!IQ_INSTR_MODE_64B(oct, iq_no)) argument 56 int octeon_init_instr_queue(struct octeon_device *oct, in octeon_init_instr_queue() 168 int octeon_delete_instr_queue(struct octeon_device *oct, u32 iq_no) in octeon_delete_instr_queue() 202 int octeon_setup_iq(struct octeon_device *oct, in octeon_setup_iq() 247 int lio_wait_for_instr_fetch(struct octeon_device *oct) in lio_wait_for_instr_fetch() 275 ring_doorbell(struct octeon_device *oct, struct octeon_instr_queue *iq) in ring_doorbell() 288 octeon_ring_doorbell_locked(struct octeon_device *oct, u32 iq_no) in octeon_ring_doorbell_locked() 348 octeon_register_reqtype_free_fn(struct octeon_device *oct, int reqtype, in octeon_register_reqtype_free_fn() 372 lio_process_iq_request_list(struct octeon_device *oct, in lio_process_iq_request_list() [all …]
|
D | lio_main.c | 178 struct octeon_device *oct = (struct octeon_device *)pdev; in octeon_droq_bh() local 207 static int lio_wait_for_oq_pkts(struct octeon_device *oct) in lio_wait_for_oq_pkts() 238 static void force_io_queues_off(struct octeon_device *oct) in force_io_queues_off() 254 static inline void pcierror_quiesce_device(struct octeon_device *oct) in pcierror_quiesce_device() 319 static void stop_pci_io(struct octeon_device *oct) in stop_pci_io() 355 struct octeon_device *oct = pci_get_drvdata(pdev); in liquidio_pcie_error_detected() local 571 struct octeon_device *oct = lio->oct_dev; in setup_link_status_change_wq() local 610 struct octeon_device *oct = lio->oct_dev; in update_link_status() local 652 static void lio_sync_octeon_time_cb(struct octeon_device *oct, in lio_sync_octeon_time_cb() 674 struct octeon_device *oct = lio->oct_dev; in lio_sync_octeon_time() local [all …]
|
D | lio_vf_rep.c | 53 lio_vf_rep_send_sc_complete(struct octeon_device *oct, in lio_vf_rep_send_sc_complete() 69 lio_vf_rep_send_soft_command(struct octeon_device *oct, in lio_vf_rep_send_soft_command() 129 struct octeon_device *oct; in lio_vf_rep_open() local 162 struct octeon_device *oct; in lio_vf_rep_stop() local 219 struct octeon_device *oct; in lio_vf_rep_change_mtu() local 247 struct octeon_device *oct = vf_rep->oct; in lio_vf_rep_phys_port_name() local 259 lio_vf_rep_get_ndev(struct octeon_device *oct, int ifidx) in lio_vf_rep_get_ndev() 277 lio_vf_rep_copy_packet(struct octeon_device *oct, in lio_vf_rep_copy_packet() 315 struct octeon_device *oct; in lio_vf_rep_pkt_recv() local 364 lio_vf_rep_packet_sent_callback(struct octeon_device *oct, in lio_vf_rep_packet_sent_callback() [all …]
|
D | lio_vf_main.c | 82 static int lio_wait_for_oq_pkts(struct octeon_device *oct) in lio_wait_for_oq_pkts() 114 static void pcierror_quiesce_device(struct octeon_device *oct) in pcierror_quiesce_device() 178 static void stop_pci_io(struct octeon_device *oct) in stop_pci_io() 227 struct octeon_device *oct = pci_get_drvdata(pdev); in liquidio_pcie_error_detected() local 314 struct octeon_device *oct = lio->oct_dev; in setup_link_status_change_wq() local 352 struct octeon_device *oct = lio->oct_dev; in update_link_status() local 431 static void octeon_pci_flr(struct octeon_device *oct) in octeon_pci_flr() 453 static void octeon_destroy_resources(struct octeon_device *oct) in octeon_destroy_resources() 579 static void rx_ctl_callback(struct octeon_device *oct, in rx_ctl_callback() 608 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; in send_rx_ctrl_cmd() local [all …]
|
D | lio_core.c | 39 void lio_if_cfg_callback(struct octeon_device *oct, in lio_if_cfg_callback() 111 int lio_setup_glists(struct octeon_device *oct, struct lio *lio, int num_iqs) in lio_setup_glists() 191 struct octeon_device *oct = lio->oct_dev; in liquidio_set_feature() local 285 struct octeon_device *oct = lio->oct_dev; in liquidio_link_ctrl_cmd_completion() local 436 void octeon_pf_changed_vf_macaddr(struct octeon_device *oct, u8 *mac) in octeon_pf_changed_vf_macaddr() 471 struct octeon_device *oct = lio->oct_dev; in octnet_poll_check_rxq_oom_status() local 492 struct octeon_device *oct = lio->oct_dev; in setup_rx_oom_poll_fn() local 521 static void lio_update_txq_status(struct octeon_device *oct, int iq_num) in lio_update_txq_status() 553 static int octeon_setup_droq(struct octeon_device *oct, int q_no, int num_descs, in octeon_setup_droq() 608 struct octeon_device *oct = lio->oct_dev; in liquidio_push_packet() local [all …]
|
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() 258 static u64 cvmx_bootmem_phy_named_block_find(struct octeon_device *oct, in cvmx_bootmem_phy_named_block_find() 335 static int octeon_named_block_find(struct octeon_device *oct, const char *name, in octeon_named_block_find() 361 int octeon_console_send_cmd(struct octeon_device *oct, char *cmd_str, in octeon_console_send_cmd() 400 int octeon_wait_for_bootloader(struct octeon_device *oct, in octeon_wait_for_bootloader() 420 static void octeon_console_handle_result(struct octeon_device *oct, in octeon_console_handle_result() 432 static void output_console_line(struct octeon_device *oct, in output_console_line() [all …]
|
D | lio_ethtool.c | 231 struct octeon_device *oct = lio->oct_dev; in lio_get_link_ksettings() local 391 struct octeon_device *oct; in lio_set_link_ksettings() local 430 struct octeon_device *oct; in lio_get_drvinfo() local 446 struct octeon_device *oct; in lio_get_vf_drvinfo() local 464 struct octeon_device *oct = lio->oct_dev; in lio_send_queue_count_update() local 494 struct octeon_device *oct = lio->oct_dev; in lio_ethtool_get_channels() local 534 lio_irq_reallocate_irqs(struct octeon_device *oct, uint32_t num_ioqs) in lio_irq_reallocate_irqs() 600 struct octeon_device *oct = lio->oct_dev; in lio_ethtool_set_channels() local 700 struct octeon_device *oct = lio->oct_dev; in octnet_gpio_access() local 727 struct octeon_device *oct = lio->oct_dev; in octnet_id_active() local [all …]
|
D | octeon_droq.c | 140 octeon_droq_destroy_ring_buffers(struct octeon_device *oct, in octeon_droq_destroy_ring_buffers() 167 octeon_droq_setup_ring_buffers(struct octeon_device *oct, in octeon_droq_setup_ring_buffers() 198 int octeon_delete_droq(struct octeon_device *oct, u32 q_no) in octeon_delete_droq() 220 int octeon_init_droq(struct octeon_device *oct, in octeon_init_droq() 511 struct octeon_device *oct = droq->oct_dev; in octeon_droq_check_oom() local 537 octeon_droq_dispatch_pkt(struct octeon_device *oct, in octeon_droq_dispatch_pkt() 573 static inline void octeon_droq_drop_packets(struct octeon_device *oct, in octeon_droq_drop_packets() 602 octeon_droq_fast_process_packets(struct octeon_device *oct, in octeon_droq_fast_process_packets() 739 octeon_droq_process_packets(struct octeon_device *oct, in octeon_droq_process_packets() 791 octeon_droq_process_poll_pkts(struct octeon_device *oct, in octeon_droq_process_poll_pkts() [all …]
|
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() 95 static void octnet_link_ctrl_callback(struct octeon_device *oct, in octnet_link_ctrl_callback() 119 *octnic_alloc_ctrl_pkt_sc(struct octeon_device *oct, in octnic_alloc_ctrl_pkt_sc() 165 octnet_send_nic_ctrl_pkt(struct octeon_device *oct, in octnet_send_nic_ctrl_pkt()
|
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 356 int octeon_mbox_cancel(struct octeon_device *oct, int q_no) in octeon_mbox_cancel()
|
D | response_manager.c | 30 int octeon_setup_response_list(struct octeon_device *oct) in octeon_setup_response_list() 56 void octeon_delete_response_list(struct octeon_device *oct) in octeon_delete_response_list() 162 struct octeon_device *oct = (struct octeon_device *)wk->ctxptr; in oct_poll_req_completion() local
|
D | octeon_nic.h | 119 static inline int octnet_iq_is_full(struct octeon_device *oct, u32 q_no) in octnet_iq_is_full() 126 octnet_prepare_pci_cmd_o2(struct octeon_device *oct, in octnet_prepare_pci_cmd_o2() 180 octnet_prepare_pci_cmd_o3(struct octeon_device *oct, in octnet_prepare_pci_cmd_o3() 250 octnet_prepare_pci_cmd(struct octeon_device *oct, union octeon_instr_64B *cmd, in octnet_prepare_pci_cmd()
|
D | octeon_network.h | 263 *recv_buffer_alloc(struct octeon_device *oct, in recv_buffer_alloc() 334 recv_buffer_recycle(struct octeon_device *oct, void *buf) in recv_buffer_recycle() 366 *recv_buffer_reuse(struct octeon_device *oct, void *buf) in recv_buffer_reuse() 435 #define lio_dma_alloc(oct, size, dma_addr) \ argument 437 #define lio_dma_free(oct, size, virt_addr, dma_addr) \ argument 538 static inline int wait_for_pending_requests(struct octeon_device *oct) in wait_for_pending_requests() 605 static inline int skb_iq(struct octeon_device *oct, struct sk_buff *skb) in skb_iq()
|
D | octeon_main.h | 88 static inline void octeon_unmap_pci_barx(struct octeon_device *oct, int baridx) in octeon_unmap_pci_barx() 106 static inline int octeon_map_pci_barx(struct octeon_device *oct, in octeon_map_pci_barx()
|
D | lio_vf_rep.h | 34 struct octeon_device *oct; member
|
D | octeon_device.h | 419 struct octeon_device *oct; member 614 #define OCTEON_CN6XXX(oct) ({ \ argument 618 #define OCTEON_CN23XX_PF(oct) ((oct)->chip_id == OCTEON_CN23XX_PF_VID) argument 619 #define OCTEON_CN23XX_VF(oct) ((oct)->chip_id == OCTEON_CN23XX_VF_VID) argument 620 #define CHIP_CONF(oct, TYPE) \ argument 708 static inline u16 OCTEON_MAJOR_REV(struct octeon_device *oct) in OCTEON_MAJOR_REV() 715 static inline u16 OCTEON_MINOR_REV(struct octeon_device *oct) in OCTEON_MINOR_REV()
|
D | octeon_config.h | 457 #define MAX_OCTEON_INSTR_QUEUES(oct) \ argument 462 #define MAX_OCTEON_OUTPUT_QUEUES(oct) \ argument
|