Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/
Dcn66xx_device.h73 int lio_cn6xxx_soft_reset(struct octeon_device *oct);
74 void lio_cn6xxx_enable_error_reporting(struct octeon_device *oct);
75 void lio_cn6xxx_setup_pcie_mps(struct octeon_device *oct,
77 void lio_cn6xxx_setup_pcie_mrrs(struct octeon_device *oct,
79 void lio_cn6xxx_setup_global_input_regs(struct octeon_device *oct);
80 void lio_cn6xxx_setup_global_output_regs(struct octeon_device *oct);
81 void lio_cn6xxx_setup_iq_regs(struct octeon_device *oct, u32 iq_no);
82 void lio_cn6xxx_setup_oq_regs(struct octeon_device *oct, u32 oq_no);
83 void lio_cn6xxx_enable_io_queues(struct octeon_device *oct);
84 void lio_cn6xxx_disable_io_queues(struct octeon_device *oct);
[all …]
Docteon_device.h197 void (*setup_iq_regs)(struct octeon_device *, u32);
198 void (*setup_oq_regs)(struct octeon_device *, u32);
201 int (*soft_reset)(struct octeon_device *);
202 int (*setup_device_regs)(struct octeon_device *);
203 void (*reinit_regs)(struct octeon_device *);
204 void (*bar1_idx_setup)(struct octeon_device *, u64, u32, int);
205 void (*bar1_idx_write)(struct octeon_device *, u32, u32);
206 u32 (*bar1_idx_read)(struct octeon_device *, u32);
207 u32 (*update_iq_read_idx)(struct octeon_device *,
210 void (*enable_oq_pkt_time_intr)(struct octeon_device *, u32);
[all …]
Docteon_iq.h239 void (*callback)(struct octeon_device *, u32, void *);
259 int octeon_setup_sc_buffer_pool(struct octeon_device *oct);
260 int octeon_free_sc_buffer_pool(struct octeon_device *oct);
262 octeon_alloc_soft_command(struct octeon_device *oct,
265 void octeon_free_soft_command(struct octeon_device *oct,
278 int octeon_init_instr_queue(struct octeon_device *octeon_dev, u32 iq_no,
291 int octeon_delete_instr_queue(struct octeon_device *octeon_dev, u32 iq_no);
293 int lio_wait_for_instr_fetch(struct octeon_device *oct);
296 octeon_register_reqtype_free_fn(struct octeon_device *oct, int reqtype,
300 lio_process_iq_request_list(struct octeon_device *oct,
[all …]
Docteon_droq.h244 struct octeon_device *oct_dev;
339 int octeon_init_droq(struct octeon_device *oct_dev,
352 int octeon_delete_droq(struct octeon_device *oct_dev, u32 q_no);
366 octeon_register_droq_ops(struct octeon_device *oct,
378 int octeon_unregister_droq_ops(struct octeon_device *oct, u32 q_no);
392 int octeon_register_dispatch_fn(struct octeon_device *oct,
407 int octeon_unregister_dispatch_fn(struct octeon_device *oct,
413 u32 octeon_droq_check_hw_for_pkts(struct octeon_device *oct,
416 int octeon_create_droq(struct octeon_device *oct, u32 q_no,
419 int octeon_droq_process_packets(struct octeon_device *oct,
[all …]
Docteon_device.c462 static struct octeon_device *octeon_device[MAX_OCTEON_DEVICES]; variable
478 memset(octeon_device, 0, (sizeof(void *) * MAX_OCTEON_DEVICES)); in octeon_init_device_list()
483 static void *__retrieve_octeon_config_info(struct octeon_device *oct, in __retrieve_octeon_config_info()
507 static int __verify_octeon_config_info(struct octeon_device *oct, void *conf) in __verify_octeon_config_info()
521 void *oct_get_config_info(struct octeon_device *oct, u16 card_type) in oct_get_config_info()
553 int octeon_download_firmware(struct octeon_device *oct, const u8 *data, in octeon_download_firmware()
647 void octeon_free_device_mem(struct octeon_device *oct) in octeon_free_device_mem()
664 octeon_device[i] = NULL; in octeon_free_device_mem()
668 static struct octeon_device *octeon_allocate_device_mem(u32 pci_id, in octeon_allocate_device_mem()
671 struct octeon_device *oct; in octeon_allocate_device_mem()
[all …]
Docteon_mem_ops.h39 u64 octeon_read_device_mem64(struct octeon_device *oct, u64 core_addr);
47 u32 octeon_read_device_mem32(struct octeon_device *oct, u64 core_addr);
55 octeon_write_device_mem32(struct octeon_device *oct,
62 octeon_pci_read_core_mem(struct octeon_device *oct,
70 octeon_pci_write_core_mem(struct octeon_device *oct,
Dcn66xx_device.c43 int lio_cn6xxx_soft_reset(struct octeon_device *oct) in lio_cn6xxx_soft_reset()
72 void lio_cn6xxx_enable_error_reporting(struct octeon_device *oct) in lio_cn6xxx_enable_error_reporting()
88 void lio_cn6xxx_setup_pcie_mps(struct octeon_device *oct, in lio_cn6xxx_setup_pcie_mps()
111 void lio_cn6xxx_setup_pcie_mrrs(struct octeon_device *oct, in lio_cn6xxx_setup_pcie_mrrs()
139 u32 lio_cn6xxx_coprocessor_clock(struct octeon_device *oct) in lio_cn6xxx_coprocessor_clock()
147 u32 lio_cn6xxx_get_oq_ticks(struct octeon_device *oct, in lio_cn6xxx_get_oq_ticks()
172 void lio_cn6xxx_setup_global_input_regs(struct octeon_device *oct) in lio_cn6xxx_setup_global_input_regs()
187 static void lio_cn66xx_setup_pkt_ctl_regs(struct octeon_device *oct) in lio_cn66xx_setup_pkt_ctl_regs()
210 void lio_cn6xxx_setup_global_output_regs(struct octeon_device *oct) in lio_cn6xxx_setup_global_output_regs()
267 static int lio_cn6xxx_setup_device_regs(struct octeon_device *oct) in lio_cn6xxx_setup_device_regs()
[all …]
Docteon_mem_ops.c48 octeon_toggle_bar1_swapmode(struct octeon_device *oct __attribute__((unused)), in octeon_toggle_bar1_swapmode()
61 octeon_pci_fastwrite(struct octeon_device *oct, u8 __iomem *mapped_addr, in octeon_pci_fastwrite()
85 octeon_pci_fastread(struct octeon_device *oct, u8 __iomem *mapped_addr, in octeon_pci_fastread()
111 __octeon_pci_rw_core_mem(struct octeon_device *oct, u64 addr, in __octeon_pci_rw_core_mem()
158 octeon_pci_read_core_mem(struct octeon_device *oct, in octeon_pci_read_core_mem()
167 octeon_pci_write_core_mem(struct octeon_device *oct, in octeon_pci_write_core_mem()
175 u64 octeon_read_device_mem64(struct octeon_device *oct, u64 coreaddr) in octeon_read_device_mem64()
184 u32 octeon_read_device_mem32(struct octeon_device *oct, u64 coreaddr) in octeon_read_device_mem32()
193 void octeon_write_device_mem32(struct octeon_device *oct, u64 coreaddr, in octeon_write_device_mem32()
Drequest_manager.c54 static void __check_db_timeout(struct octeon_device *oct, unsigned long iq_no);
58 static inline int IQ_INSTR_MODE_64B(struct octeon_device *oct, int iq_no) in IQ_INSTR_MODE_64B()
71 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()
190 int octeon_setup_iq(struct octeon_device *oct, in octeon_setup_iq()
221 int lio_wait_for_instr_fetch(struct octeon_device *oct) in lio_wait_for_instr_fetch()
251 ring_doorbell(struct octeon_device *oct, struct octeon_instr_queue *iq) in ring_doorbell()
275 __post_command(struct octeon_device *octeon_dev __attribute__((unused)), in __post_command()
305 __post_command2(struct octeon_device *octeon_dev __attribute__((unused)), in __post_command2()
343 octeon_register_reqtype_free_fn(struct octeon_device *oct, int reqtype, in octeon_register_reqtype_free_fn()
[all …]
Docteon_console.c51 static u64 cvmx_bootmem_phy_named_block_find(struct octeon_device *oct,
205 static inline u64 __cvmx_bootmem_desc_get(struct octeon_device *oct, in __cvmx_bootmem_desc_get()
231 static void CVMX_BOOTMEM_NAMED_GET_NAME(struct octeon_device *oct, in CVMX_BOOTMEM_NAMED_GET_NAME()
253 static int __cvmx_bootmem_check_version(struct octeon_device *oct, in __cvmx_bootmem_check_version()
281 *__cvmx_bootmem_find_named_block_flags(struct octeon_device *oct, in __cvmx_bootmem_find_named_block_flags()
301 static u64 cvmx_bootmem_phy_named_block_find(struct octeon_device *oct, in cvmx_bootmem_phy_named_block_find()
357 static int octeon_named_block_find(struct octeon_device *oct, const char *name, in octeon_named_block_find()
383 int octeon_console_send_cmd(struct octeon_device *oct, char *cmd_str, in octeon_console_send_cmd()
422 int octeon_wait_for_bootloader(struct octeon_device *oct, in octeon_wait_for_bootloader()
442 static void octeon_console_handle_result(struct octeon_device *oct, in octeon_console_handle_result()
[all …]
Dcn68xx_device.c45 static void lio_cn68xx_set_dpi_regs(struct octeon_device *oct) in lio_cn68xx_set_dpi_regs()
74 static int lio_cn68xx_soft_reset(struct octeon_device *oct) in lio_cn68xx_soft_reset()
82 static void lio_cn68xx_setup_pkt_ctl_regs(struct octeon_device *oct) in lio_cn68xx_setup_pkt_ctl_regs()
104 static int lio_cn68xx_setup_device_regs(struct octeon_device *oct) in lio_cn68xx_setup_device_regs()
122 static inline void lio_cn68xx_vendor_message_fix(struct octeon_device *oct) in lio_cn68xx_vendor_message_fix()
132 int lio_is_210nv(struct octeon_device *oct) in lio_is_210nv()
139 int lio_setup_cn68xx_octeon_device(struct octeon_device *oct) in lio_setup_cn68xx_octeon_device()
Dresponse_manager.c47 int octeon_setup_response_list(struct octeon_device *oct) in octeon_setup_response_list()
72 void octeon_delete_response_list(struct octeon_device *oct) in octeon_delete_response_list()
79 int lio_process_ordered_list(struct octeon_device *octeon_dev, in lio_process_ordered_list()
172 struct octeon_device *oct = (struct octeon_device *)wk->ctxptr; in oct_poll_req_completion()
Docteon_nic.c46 octeon_alloc_soft_command_resp(struct octeon_device *oct, in octeon_alloc_soft_command_resp()
86 int octnet_send_nic_data_pkt(struct octeon_device *oct, in octnet_send_nic_data_pkt()
99 static void octnet_link_ctrl_callback(struct octeon_device *oct, in octnet_link_ctrl_callback()
121 *octnic_alloc_ctrl_pkt_sc(struct octeon_device *oct, in octnic_alloc_ctrl_pkt_sc()
166 octnet_send_nic_ctrl_pkt(struct octeon_device *oct, in octnet_send_nic_ctrl_pkt()
Dresponse_manager.h127 int octeon_setup_response_list(struct octeon_device *octeon_dev);
129 void octeon_delete_response_list(struct octeon_device *octeon_dev);
137 int lio_process_ordered_list(struct octeon_device *octeon_dev,
Dlio_ethtool.c110 struct octeon_device *oct = lio->oct_dev; in lio_get_settings()
145 struct octeon_device *oct; in lio_get_drvinfo()
163 struct octeon_device *oct = lio->oct_dev; in lio_ethtool_get_channels()
185 struct octeon_device *oct_dev = lio->oct_dev; in lio_get_eeprom_len()
202 struct octeon_device *oct_dev = lio->oct_dev; in lio_get_eeprom()
223 struct octeon_device *oct = lio->oct_dev; in octnet_gpio_access()
252 static void octnet_mdio_resp_callback(struct octeon_device *oct, in octnet_mdio_resp_callback()
280 struct octeon_device *oct_dev = lio->oct_dev; in octnet_mdio45_access()
356 struct octeon_device *oct = lio->oct_dev; in lio_set_phys_id()
459 struct octeon_device *oct = lio->oct_dev; in lio_ethtool_get_ringparam()
[all …]
Docteon_droq.c72 static inline void *octeon_get_dispatch_arg(struct octeon_device *octeon_dev, in octeon_get_dispatch_arg()
107 u32 octeon_droq_check_hw_for_pkts(struct octeon_device *oct, in octeon_droq_check_hw_for_pkts()
150 octeon_droq_destroy_ring_buffers(struct octeon_device *oct, in octeon_droq_destroy_ring_buffers()
176 octeon_droq_setup_ring_buffers(struct octeon_device *oct, in octeon_droq_setup_ring_buffers()
212 int octeon_delete_droq(struct octeon_device *oct, u32 q_no) in octeon_delete_droq()
236 int octeon_init_droq(struct octeon_device *oct, in octeon_init_droq()
352 struct octeon_device *octeon_dev, in octeon_create_recv_info()
446 octeon_droq_refill(struct octeon_device *octeon_dev, struct octeon_droq *droq) in octeon_droq_refill()
515 octeon_droq_dispatch_pkt(struct octeon_device *oct, in octeon_droq_dispatch_pkt()
549 static inline void octeon_droq_drop_packets(struct octeon_device *oct, in octeon_droq_drop_packets()
[all …]
Dlio_main.c206 static int octeon_device_init(struct octeon_device *);
218 struct octeon_device *oct = (struct octeon_device *)pdev; in octeon_droq_bh()
234 static int lio_wait_for_oq_pkts(struct octeon_device *oct) in lio_wait_for_oq_pkts()
336 static void force_io_queues_off(struct octeon_device *oct) in force_io_queues_off()
354 static int wait_for_pending_requests(struct octeon_device *oct) in wait_for_pending_requests()
378 static inline void pcierror_quiesce_device(struct octeon_device *oct) in pcierror_quiesce_device()
443 static void stop_pci_io(struct octeon_device *oct) in stop_pci_io()
480 struct octeon_device *oct = pci_get_drvdata(pdev); in liquidio_pcie_error_detected()
905 void liquidio_schedule_droq_pkt_handlers(struct octeon_device *oct) in liquidio_schedule_droq_pkt_handlers()
937 struct octeon_device *oct = (struct octeon_device *)dev; in liquidio_intr_handler()
[all …]
Dcn68xx_device.h30 int lio_setup_cn68xx_octeon_device(struct octeon_device *oct);
31 int lio_is_210nv(struct octeon_device *oct);
Docteon_nic.h120 static inline int octnet_iq_is_full(struct octeon_device *oct, u32 q_no) in octnet_iq_is_full()
200 octeon_alloc_soft_command_resp(struct octeon_device *oct,
211 int octnet_send_nic_data_pkt(struct octeon_device *oct,
223 octnet_send_nic_ctrl_pkt(struct octeon_device *oct,
Docteon_network.h63 struct octeon_device *oct_dev;
135 *recv_buffer_alloc(struct octeon_device *oct __attribute__((unused)), in recv_buffer_alloc()
168 struct octeon_device *oct = droq->oct_dev; in lio_map_ring_info()
208 static inline void *octeon_fast_packet_alloc(struct octeon_device *oct, in octeon_fast_packet_alloc()
DMakefile10 octeon_device.o \
Docteon_main.h71 static inline void octeon_unmap_pci_barx(struct octeon_device *oct, int baridx) in octeon_unmap_pci_barx()
89 static inline int octeon_map_pci_barx(struct octeon_device *oct, in octeon_map_pci_barx()