Lines Matching refs:octeon_device

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);
249 void (*enable_oq_pkt_time_intr)(struct octeon_device *, u32);
250 void (*disable_oq_pkt_time_intr)(struct octeon_device *, u32);
252 void (*enable_interrupt)(struct octeon_device *, u8);
253 void (*disable_interrupt)(struct octeon_device *, u8);
255 int (*enable_io_queues)(struct octeon_device *);
256 void (*disable_io_queues)(struct octeon_device *);
404 struct octeon_device *oct_dev;
419 struct octeon_device *oct;
426 struct octeon_device { struct
631 void octeon_free_device_mem(struct octeon_device *oct); argument
637 struct octeon_device *octeon_allocate_device(u32 pci_id,
648 int octeon_register_device(struct octeon_device *oct,
655 int octeon_deregister_device(struct octeon_device *oct);
662 int octeon_init_dispatch_list(struct octeon_device *octeon_dev);
668 void octeon_delete_dispatch_list(struct octeon_device *octeon_dev);
691 octeon_get_dispatch(struct octeon_device *octeon_dev, u16 opcode,
699 struct octeon_device *lio_get_device(u32 octeon_id);
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()
730 u64 lio_pci_readq(struct octeon_device *oct, u64 addr);
742 void lio_pci_writeq(struct octeon_device *oct, u64 val, u64 addr);
763 int octeon_mem_access_ok(struct octeon_device *oct);
775 int octeon_wait_for_ddr_init(struct octeon_device *oct,
786 int octeon_wait_for_bootloader(struct octeon_device *oct,
795 int octeon_init_consoles(struct octeon_device *oct);
809 int octeon_add_console(struct octeon_device *oct, u32 console_num,
813 int octeon_console_write(struct octeon_device *oct, u32 console_num,
815 int octeon_console_write_avail(struct octeon_device *oct, u32 console_num);
817 int octeon_console_read_avail(struct octeon_device *oct, u32 console_num);
820 void octeon_remove_consoles(struct octeon_device *oct);
831 int octeon_console_send_cmd(struct octeon_device *oct, char *cmd_str,
844 int octeon_download_firmware(struct octeon_device *oct, const u8 *data,
854 int octeon_setup_instr_queues(struct octeon_device *oct);
861 int octeon_setup_output_queues(struct octeon_device *oct);
863 int octeon_get_tx_qsize(struct octeon_device *oct, u32 q_no);
865 int octeon_get_rx_qsize(struct octeon_device *oct, u32 q_no);
870 int octeon_set_io_queues_off(struct octeon_device *oct);
877 void octeon_set_droq_pkt_op(struct octeon_device *oct, u32 q_no, u32 enable);
885 void *oct_get_config_info(struct octeon_device *oct, u16 card_type);
890 struct octeon_config *octeon_get_conf(struct octeon_device *oct);
892 void octeon_free_ioq_vector(struct octeon_device *oct);
893 int octeon_allocate_ioq_vector(struct octeon_device *oct, u32 num_ioqs);
903 static inline u32 lio_get_priv_flag(struct octeon_device *octdev, u32 flag) in lio_get_priv_flag()
908 static inline void lio_set_priv_flag(struct octeon_device *octdev, in lio_set_priv_flag()