Lines Matching refs:octeon_device

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()
646 void octeon_free_device_mem(struct octeon_device *oct) in octeon_free_device_mem()
663 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()
697 octdevsize = sizeof(struct octeon_device); in octeon_allocate_device_mem()
711 oct = (struct octeon_device *)buf; in octeon_allocate_device_mem()
720 struct octeon_device *octeon_allocate_device(u32 pci_id, in octeon_allocate_device()
724 struct octeon_device *oct = NULL; in octeon_allocate_device()
729 if (!octeon_device[oct_idx]) in octeon_allocate_device()
736 octeon_device[oct_idx] = oct; in octeon_allocate_device()
763 int octeon_register_device(struct octeon_device *oct, in octeon_register_device()
781 if (!octeon_device[idx]) { in octeon_register_device()
792 if ((octeon_device[idx]->loc.bus == bus) && in octeon_register_device()
793 (octeon_device[idx]->loc.dev == dev)) { in octeon_register_device()
795 octeon_device[idx]->adapter_refcount; in octeon_register_device()
797 octeon_device[idx]->adapter_fw_state; in octeon_register_device()
817 int octeon_deregister_device(struct octeon_device *oct) in octeon_deregister_device()
832 octeon_allocate_ioq_vector(struct octeon_device *oct, u32 num_ioqs) in octeon_allocate_ioq_vector()
865 octeon_free_ioq_vector(struct octeon_device *oct) in octeon_free_ioq_vector()
872 int octeon_setup_instr_queues(struct octeon_device *oct) in octeon_setup_instr_queues()
917 int octeon_setup_output_queues(struct octeon_device *oct) in octeon_setup_output_queues()
954 int octeon_set_io_queues_off(struct octeon_device *oct) in octeon_set_io_queues_off()
1004 void octeon_set_droq_pkt_op(struct octeon_device *oct, in octeon_set_droq_pkt_op()
1023 int octeon_init_dispatch_list(struct octeon_device *oct) in octeon_init_dispatch_list()
1043 void octeon_delete_dispatch_list(struct octeon_device *oct) in octeon_delete_dispatch_list()
1076 octeon_get_dispatch(struct octeon_device *octeon_dev, u16 opcode, in octeon_get_dispatch()
1134 octeon_register_dispatch_fn(struct octeon_device *oct, in octeon_register_dispatch_fn()
1202 struct octeon_device *oct = (struct octeon_device *)buf; in octeon_core_drv_init()
1282 int octeon_get_tx_qsize(struct octeon_device *oct, u32 q_no) in octeon_get_tx_qsize()
1293 int octeon_get_rx_qsize(struct octeon_device *oct, u32 q_no) in octeon_get_rx_qsize()
1303 struct octeon_config *octeon_get_conf(struct octeon_device *oct) in octeon_get_conf()
1333 struct octeon_device *lio_get_device(u32 octeon_id) in lio_get_device()
1338 return octeon_device[octeon_id]; in lio_get_device()
1342 u64 lio_pci_readq(struct octeon_device *oct, u64 addr) in lio_pci_readq()
1374 void lio_pci_writeq(struct octeon_device *oct, in lio_pci_writeq()
1395 int octeon_mem_access_ok(struct octeon_device *oct) in octeon_mem_access_ok()
1415 int octeon_wait_for_ddr_init(struct octeon_device *oct, u32 *timeout) in octeon_wait_for_ddr_init()
1440 struct octeon_device *oct = NULL; in lio_enable_irq()