Home
last modified time | relevance | path

Searched refs:octeon_device (Results 1 – 25 of 32) sorted by relevance

12

/Linux-v4.19/drivers/net/ethernet/cavium/liquidio/
Dcn66xx_device.h68 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 …]
Docteon_device.h212 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 …]
Docteon_iq.h77 struct octeon_device *oct_dev;
296 void (*callback)(struct octeon_device *, u32, void *);
319 int octeon_setup_sc_buffer_pool(struct octeon_device *oct);
320 int octeon_free_sc_buffer_pool(struct octeon_device *oct);
322 octeon_alloc_soft_command(struct octeon_device *oct,
325 void octeon_free_soft_command(struct octeon_device *oct,
338 int octeon_init_instr_queue(struct octeon_device *octeon_dev,
352 int octeon_delete_instr_queue(struct octeon_device *octeon_dev, u32 iq_no);
354 int lio_wait_for_instr_fetch(struct octeon_device *oct);
357 octeon_ring_doorbell_locked(struct octeon_device *oct, u32 iq_no);
[all …]
Dcn23xx_pf_device.h55 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,
Docteon_droq.h257 struct octeon_device *oct_dev;
340 int octeon_init_droq(struct octeon_device *oct_dev,
353 int octeon_delete_droq(struct octeon_device *oct_dev, u32 q_no);
367 octeon_register_droq_ops(struct octeon_device *oct,
379 int octeon_unregister_droq_ops(struct octeon_device *oct, u32 q_no);
393 int octeon_register_dispatch_fn(struct octeon_device *oct,
398 void *octeon_get_dispatch_arg(struct octeon_device *oct,
405 int octeon_create_droq(struct octeon_device *oct, u32 q_no,
408 int octeon_droq_process_packets(struct octeon_device *oct,
412 int octeon_droq_process_poll_pkts(struct octeon_device *oct,
[all …]
Docteon_device.c542 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 …]
Dcn23xx_vf_device.h39 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);
Dcn66xx_device.c29 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 …]
Docteon_mem_ops.h36 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,
Docteon_mem_ops.c30 octeon_toggle_bar1_swapmode(struct octeon_device *oct, u32 idx) in octeon_toggle_bar1_swapmode()
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()
Dcn68xx_device.c30 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()
Dcn23xx_vf_device.c30 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 …]
Docteon_console.c35 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 …]
Dcn23xx_pf_device.c39 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 …]
Dlio_vf_rep.h34 struct octeon_device *oct;
45 int lio_vf_rep_create(struct octeon_device *oct);
46 void lio_vf_rep_destroy(struct octeon_device *oct);
Dresponse_manager.c30 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()
162 struct octeon_device *oct = (struct octeon_device *)wk->ctxptr; in oct_poll_req_completion()
Docteon_nic.h119 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()
270 octeon_alloc_soft_command_resp(struct octeon_device *oct,
281 int octnet_send_nic_data_pkt(struct octeon_device *oct,
292 octnet_send_nic_ctrl_pkt(struct octeon_device *oct,
Dlio_vf_rep.c53 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()
162 struct octeon_device *oct; in lio_vf_rep_stop()
219 struct octeon_device *oct; in lio_vf_rep_change_mtu()
247 struct octeon_device *oct = vf_rep->oct; in lio_vf_rep_phys_port_name()
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()
364 lio_vf_rep_packet_sent_callback(struct octeon_device *oct, in lio_vf_rep_packet_sent_callback()
[all …]
Drequest_manager.c39 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()
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 …]
Docteon_network.h129 struct octeon_device *oct_dev;
220 int liquidio_setup_io_queues(struct octeon_device *octeon_dev, int ifidx,
226 int octeon_setup_interrupt(struct octeon_device *oct, u32 num_ioqs);
230 int lio_wait_for_clean_oq(struct octeon_device *oct);
237 void lio_if_cfg_callback(struct octeon_device *oct,
243 int lio_setup_glists(struct octeon_device *oct, struct lio *lio, int num_qs);
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()
538 static inline int wait_for_pending_requests(struct octeon_device *oct) in wait_for_pending_requests()
[all …]
Dlio_main.c160 static int octeon_dbg_console_print(struct octeon_device *oct, u32 console_num,
163 static int octeon_device_init(struct octeon_device *);
178 struct octeon_device *oct = (struct octeon_device *)pdev; in octeon_droq_bh()
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()
571 struct octeon_device *oct = lio->oct_dev; in setup_link_status_change_wq()
610 struct octeon_device *oct = lio->oct_dev; in update_link_status()
[all …]
Dresponse_manager.h128 int octeon_setup_response_list(struct octeon_device *octeon_dev);
130 void octeon_delete_response_list(struct octeon_device *octeon_dev);
138 int lio_process_ordered_list(struct octeon_device *octeon_dev,
Docteon_mailbox.h86 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);
Docteon_droq.c55 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()
340 struct octeon_device *octeon_dev, in octeon_create_recv_info()
440 octeon_droq_refill(struct octeon_device *octeon_dev, struct octeon_droq *droq) in octeon_droq_refill()
511 struct octeon_device *oct = droq->oct_dev; in octeon_droq_check_oom()
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()
[all …]
Docteon_nic.c30 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()

12