/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/ |
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 …]
|
D | octeon_device.h | 212 typedef int (*octeon_console_print_fn)(struct octeon_device *oct, 233 void (*setup_iq_regs)(struct octeon_device *, u32); 234 void (*setup_oq_regs)(struct octeon_device *, u32); 239 int (*setup_mbox)(struct octeon_device *); 240 int (*free_mbox)(struct octeon_device *); 242 int (*soft_reset)(struct octeon_device *); 243 int (*setup_device_regs)(struct octeon_device *); 244 void (*bar1_idx_setup)(struct octeon_device *, u64, u32, int); 245 void (*bar1_idx_write)(struct octeon_device *, u32, u32); 246 u32 (*bar1_idx_read)(struct octeon_device *, u32); [all …]
|
D | octeon_iq.h | 77 struct octeon_device *oct_dev; 297 void (*callback)(struct octeon_device *, u32, void *); 327 int octeon_setup_sc_buffer_pool(struct octeon_device *oct); 328 int octeon_free_sc_done_list(struct octeon_device *oct); 329 int octeon_free_sc_zombie_list(struct octeon_device *oct); 330 int octeon_free_sc_buffer_pool(struct octeon_device *oct); 332 octeon_alloc_soft_command(struct octeon_device *oct, 335 void octeon_free_soft_command(struct octeon_device *oct, 348 int octeon_init_instr_queue(struct octeon_device *octeon_dev, 362 int octeon_delete_instr_queue(struct octeon_device *octeon_dev, u32 iq_no); [all …]
|
D | cn23xx_pf_device.h | 55 int setup_cn23xx_octeon_pf_device(struct octeon_device *oct); 57 int validate_cn23xx_pf_config_info(struct octeon_device *oct, 60 u32 cn23xx_pf_get_oq_ticks(struct octeon_device *oct, u32 time_intr_in_us); 62 void cn23xx_dump_pf_initialized_regs(struct octeon_device *oct); 64 int cn23xx_sriov_config(struct octeon_device *oct); 66 int cn23xx_fw_loaded(struct octeon_device *oct); 68 void cn23xx_tell_vf_its_macaddr_changed(struct octeon_device *oct, int vfidx, 71 int cn23xx_get_vf_stats(struct octeon_device *oct, int ifidx,
|
D | octeon_droq.h | 254 struct octeon_device *oct_dev; 337 int octeon_init_droq(struct octeon_device *oct_dev, 350 int octeon_delete_droq(struct octeon_device *oct_dev, u32 q_no); 364 octeon_register_droq_ops(struct octeon_device *oct, 376 int octeon_unregister_droq_ops(struct octeon_device *oct, u32 q_no); 390 int octeon_register_dispatch_fn(struct octeon_device *oct, 395 void *octeon_get_dispatch_arg(struct octeon_device *oct, 402 int octeon_create_droq(struct octeon_device *oct, u32 q_no, 405 int octeon_droq_process_packets(struct octeon_device *oct, 409 int octeon_droq_process_poll_pkts(struct octeon_device *oct, [all …]
|
D | octeon_device.c | 542 static struct octeon_device *octeon_device[MAX_OCTEON_DEVICES]; variable 563 memset(octeon_device, 0, (sizeof(void *) * MAX_OCTEON_DEVICES)); in octeon_init_device_list() 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() 662 octeon_device[i] = NULL; in octeon_free_device_mem() 666 static struct octeon_device *octeon_allocate_device_mem(u32 pci_id, in octeon_allocate_device_mem() 669 struct octeon_device *oct; in octeon_allocate_device_mem() 695 octdevsize = sizeof(struct octeon_device); in octeon_allocate_device_mem() [all …]
|
D | cn23xx_vf_device.h | 39 void cn23xx_vf_ask_pf_to_do_flr(struct octeon_device *oct); 41 int cn23xx_octeon_pfvf_handshake(struct octeon_device *oct); 43 int cn23xx_setup_octeon_vf_device(struct octeon_device *oct); 45 u32 cn23xx_vf_get_oq_ticks(struct octeon_device *oct, u32 time_intr_in_us); 47 void cn23xx_dump_vf_initialized_regs(struct octeon_device *oct);
|
D | cn66xx_device.c | 29 int lio_cn6xxx_soft_reset(struct octeon_device *oct) in lio_cn6xxx_soft_reset() 55 void lio_cn6xxx_enable_error_reporting(struct octeon_device *oct) in lio_cn6xxx_enable_error_reporting() 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() 155 void lio_cn6xxx_setup_global_input_regs(struct octeon_device *oct) in lio_cn6xxx_setup_global_input_regs() 170 static void lio_cn66xx_setup_pkt_ctl_regs(struct octeon_device *oct) in lio_cn66xx_setup_pkt_ctl_regs() 193 void lio_cn6xxx_setup_global_output_regs(struct octeon_device *oct) in lio_cn6xxx_setup_global_output_regs() 247 static int lio_cn6xxx_setup_device_regs(struct octeon_device *oct) in lio_cn6xxx_setup_device_regs() [all …]
|
D | octeon_mem_ops.h | 36 u64 octeon_read_device_mem64(struct octeon_device *oct, u64 core_addr); 44 u32 octeon_read_device_mem32(struct octeon_device *oct, u64 core_addr); 52 octeon_write_device_mem32(struct octeon_device *oct, 59 octeon_pci_read_core_mem(struct octeon_device *oct, 67 octeon_pci_write_core_mem(struct octeon_device *oct,
|
D | octeon_mem_ops.c | 31 octeon_toggle_bar1_swapmode(struct octeon_device *oct, u32 idx) in octeon_toggle_bar1_swapmode() 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() 169 octeon_pci_write_core_mem(struct octeon_device *oct, in octeon_pci_write_core_mem() 177 u64 octeon_read_device_mem64(struct octeon_device *oct, u64 coreaddr) in octeon_read_device_mem64() 186 u32 octeon_read_device_mem32(struct octeon_device *oct, u64 coreaddr) in octeon_read_device_mem32() 195 void octeon_write_device_mem32(struct octeon_device *oct, u64 coreaddr, in octeon_write_device_mem32()
|
D | cn68xx_device.c | 32 static void lio_cn68xx_set_dpi_regs(struct octeon_device *oct) in lio_cn68xx_set_dpi_regs() 61 static int lio_cn68xx_soft_reset(struct octeon_device *oct) in lio_cn68xx_soft_reset() 69 static void lio_cn68xx_setup_pkt_ctl_regs(struct octeon_device *oct) in lio_cn68xx_setup_pkt_ctl_regs() 91 static int lio_cn68xx_setup_device_regs(struct octeon_device *oct) in lio_cn68xx_setup_device_regs() 109 static inline void lio_cn68xx_vendor_message_fix(struct octeon_device *oct) in lio_cn68xx_vendor_message_fix() 119 static int lio_is_210nv(struct octeon_device *oct) in lio_is_210nv() 126 int lio_setup_cn68xx_octeon_device(struct octeon_device *oct) in lio_setup_cn68xx_octeon_device()
|
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_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, 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() [all …]
|
D | octeon_main.h | 42 struct octeon_device *dev; 73 void octeon_pf_changed_vf_macaddr(struct octeon_device *oct, u8 *mac); 75 void octeon_schedule_rxq_oom_work(struct octeon_device *oct, 93 static inline void octeon_unmap_pci_barx(struct octeon_device *oct, int baridx) in octeon_unmap_pci_barx() 111 static inline int octeon_map_pci_barx(struct octeon_device *oct, in octeon_map_pci_barx() 185 wait_for_sc_completion_timeout(struct octeon_device *oct_dev, in wait_for_sc_completion_timeout()
|
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 | lio_vf_rep.h | 34 struct octeon_device *oct; 45 int lio_vf_rep_create(struct octeon_device *oct); 46 void lio_vf_rep_destroy(struct octeon_device *oct);
|
D | request_manager.c | 39 static void __check_db_timeout(struct octeon_device *oct, u64 iq_no); 43 static inline int IQ_INSTR_MODE_64B(struct octeon_device *oct, int iq_no) in IQ_INSTR_MODE_64B() 56 int octeon_init_instr_queue(struct octeon_device *oct, in octeon_init_instr_queue() 165 int octeon_delete_instr_queue(struct octeon_device *oct, u32 iq_no) in octeon_delete_instr_queue() 199 int octeon_setup_iq(struct octeon_device *oct, in octeon_setup_iq() 244 int lio_wait_for_instr_fetch(struct octeon_device *oct) in lio_wait_for_instr_fetch() 272 ring_doorbell(struct octeon_device *oct, struct octeon_instr_queue *iq) in ring_doorbell() 284 octeon_ring_doorbell_locked(struct octeon_device *oct, u32 iq_no) in octeon_ring_doorbell_locked() 344 octeon_register_reqtype_free_fn(struct octeon_device *oct, int reqtype, in octeon_register_reqtype_free_fn() 368 lio_process_iq_request_list(struct octeon_device *oct, in lio_process_iq_request_list() [all …]
|
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() 263 octeon_alloc_soft_command_resp(struct octeon_device *oct, 274 int octnet_send_nic_data_pkt(struct octeon_device *oct, 285 octnet_send_nic_ctrl_pkt(struct octeon_device *oct,
|
D | lio_vf_rep.c | 55 lio_vf_rep_send_soft_command(struct octeon_device *oct, in lio_vf_rep_send_soft_command() 113 struct octeon_device *oct; in lio_vf_rep_open() 146 struct octeon_device *oct; in lio_vf_rep_stop() 203 struct octeon_device *oct; in lio_vf_rep_change_mtu() 231 struct octeon_device *oct = vf_rep->oct; in lio_vf_rep_phys_port_name() 243 lio_vf_rep_get_ndev(struct octeon_device *oct, int ifidx) in lio_vf_rep_get_ndev() 261 lio_vf_rep_copy_packet(struct octeon_device *oct, in lio_vf_rep_copy_packet() 299 struct octeon_device *oct; in lio_vf_rep_pkt_recv() 348 lio_vf_rep_packet_sent_callback(struct octeon_device *oct, in lio_vf_rep_packet_sent_callback() 374 struct octeon_device *oct = vf_rep->oct; in lio_vf_rep_pkt_xmit() [all …]
|
D | lio_main.c | 150 static int octeon_dbg_console_print(struct octeon_device *oct, u32 console_num, 153 static int octeon_device_init(struct octeon_device *); 170 struct octeon_device *oct = oct_priv->dev; in octeon_droq_bh() 197 static int lio_wait_for_oq_pkts(struct octeon_device *oct) in lio_wait_for_oq_pkts() 228 static void force_io_queues_off(struct octeon_device *oct) in force_io_queues_off() 244 static inline void pcierror_quiesce_device(struct octeon_device *oct) in pcierror_quiesce_device() 309 static void stop_pci_io(struct octeon_device *oct) in stop_pci_io() 345 struct octeon_device *oct = pci_get_drvdata(pdev); in liquidio_pcie_error_detected() 538 struct octeon_device *oct = lio->oct_dev; in setup_link_status_change_wq() 577 struct octeon_device *oct = lio->oct_dev; in update_link_status() [all …]
|
D | response_manager.h | 130 int octeon_setup_response_list(struct octeon_device *octeon_dev); 132 void octeon_delete_response_list(struct octeon_device *octeon_dev); 140 int lio_process_ordered_list(struct octeon_device *octeon_dev,
|
D | octeon_network.h | 127 struct octeon_device *oct_dev; 219 int liquidio_setup_io_queues(struct octeon_device *octeon_dev, int ifidx, 225 int octeon_setup_interrupt(struct octeon_device *oct, u32 num_ioqs); 229 int lio_wait_for_clean_oq(struct octeon_device *oct); 238 int lio_setup_glists(struct octeon_device *oct, struct lio *lio, int num_qs); 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() 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()
|
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() 62 int lio_process_ordered_list(struct octeon_device *octeon_dev, in lio_process_ordered_list() 226 struct octeon_device *oct = (struct octeon_device *)wk->ctxptr; in oct_poll_req_completion()
|
D | octeon_mailbox.h | 86 struct octeon_device *oct_dev; 117 int octeon_mbox_write(struct octeon_device *oct, 120 int octeon_mbox_cancel(struct octeon_device *oct, int q_no);
|
D | octeon_droq.c | 55 void *octeon_get_dispatch_arg(struct octeon_device *octeon_dev, in octeon_get_dispatch_arg() 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() 333 struct octeon_device *octeon_dev, in octeon_create_recv_info() 431 octeon_droq_refill(struct octeon_device *octeon_dev, struct octeon_droq *droq) in octeon_droq_refill() 500 struct octeon_device *oct = droq->oct_dev; in octeon_retry_droq_refill() 528 octeon_droq_dispatch_pkt(struct octeon_device *oct, in octeon_droq_dispatch_pkt() 564 static inline void octeon_droq_drop_packets(struct octeon_device *oct, in octeon_droq_drop_packets() [all …]
|