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()
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()
709 oct = (struct octeon_device *)buf; in octeon_allocate_device_mem()
718 struct octeon_device *octeon_allocate_device(u32 pci_id, in octeon_allocate_device()
722 struct octeon_device *oct = NULL; in octeon_allocate_device()
727 if (!octeon_device[oct_idx]) in octeon_allocate_device()
734 octeon_device[oct_idx] = oct; in octeon_allocate_device()
760 int octeon_register_device(struct octeon_device *oct, in octeon_register_device()
778 if (!octeon_device[idx]) { in octeon_register_device()
789 if ((octeon_device[idx]->loc.bus == bus) && in octeon_register_device()
790 (octeon_device[idx]->loc.dev == dev)) { in octeon_register_device()
792 octeon_device[idx]->adapter_refcount; in octeon_register_device()
794 octeon_device[idx]->adapter_fw_state; in octeon_register_device()
813 int octeon_deregister_device(struct octeon_device *oct) in octeon_deregister_device()
827 octeon_allocate_ioq_vector(struct octeon_device *oct, u32 num_ioqs) in octeon_allocate_ioq_vector()
859 octeon_free_ioq_vector(struct octeon_device *oct) in octeon_free_ioq_vector()
865 int octeon_setup_instr_queues(struct octeon_device *oct) in octeon_setup_instr_queues()
909 int octeon_setup_output_queues(struct octeon_device *oct) in octeon_setup_output_queues()
945 int octeon_set_io_queues_off(struct octeon_device *oct) in octeon_set_io_queues_off()
994 void octeon_set_droq_pkt_op(struct octeon_device *oct, in octeon_set_droq_pkt_op()
1013 int octeon_init_dispatch_list(struct octeon_device *oct) in octeon_init_dispatch_list()
1032 void octeon_delete_dispatch_list(struct octeon_device *oct) in octeon_delete_dispatch_list()
1065 octeon_get_dispatch(struct octeon_device *octeon_dev, u16 opcode, in octeon_get_dispatch()
1123 octeon_register_dispatch_fn(struct octeon_device *oct, in octeon_register_dispatch_fn()
1193 struct octeon_device *oct = (struct octeon_device *)buf; in octeon_core_drv_init()
1271 int octeon_get_tx_qsize(struct octeon_device *oct, u32 q_no) in octeon_get_tx_qsize()
1281 int octeon_get_rx_qsize(struct octeon_device *oct, u32 q_no) in octeon_get_rx_qsize()
1290 struct octeon_config *octeon_get_conf(struct octeon_device *oct) in octeon_get_conf()
1319 struct octeon_device *lio_get_device(u32 octeon_id) in lio_get_device()
1324 return octeon_device[octeon_id]; in lio_get_device()
1327 u64 lio_pci_readq(struct octeon_device *oct, u64 addr) in lio_pci_readq()
1358 void lio_pci_writeq(struct octeon_device *oct, in lio_pci_writeq()
1379 int octeon_mem_access_ok(struct octeon_device *oct) in octeon_mem_access_ok()
1398 int octeon_wait_for_ddr_init(struct octeon_device *oct, u32 *timeout) in octeon_wait_for_ddr_init()
1425 struct octeon_device *octeon_dev = (struct octeon_device *)dev; in lio_get_device_id()
1429 if (octeon_device[i] == octeon_dev) in lio_get_device_id()
1438 struct octeon_device *oct = NULL; in lio_enable_irq()