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()
568 static void *__retrieve_octeon_config_info(struct octeon_device *oct, in __retrieve_octeon_config_info()
596 static int __verify_octeon_config_info(struct octeon_device *oct, void *conf) in __verify_octeon_config_info()
612 void *oct_get_config_info(struct octeon_device *oct, u16 card_type) in oct_get_config_info()
644 void octeon_free_device_mem(struct octeon_device *oct) in octeon_free_device_mem()
661 octeon_device[i] = NULL; in octeon_free_device_mem()
665 static struct octeon_device *octeon_allocate_device_mem(u32 pci_id, in octeon_allocate_device_mem()
668 struct octeon_device *oct; in octeon_allocate_device_mem()
694 octdevsize = sizeof(struct octeon_device); in octeon_allocate_device_mem()
708 oct = (struct octeon_device *)buf; in octeon_allocate_device_mem()
717 struct octeon_device *octeon_allocate_device(u32 pci_id, in octeon_allocate_device()
721 struct octeon_device *oct = NULL; in octeon_allocate_device()
726 if (!octeon_device[oct_idx]) in octeon_allocate_device()
733 octeon_device[oct_idx] = oct; in octeon_allocate_device()
759 int octeon_register_device(struct octeon_device *oct, in octeon_register_device()
777 if (!octeon_device[idx]) { in octeon_register_device()
788 if ((octeon_device[idx]->loc.bus == bus) && in octeon_register_device()
789 (octeon_device[idx]->loc.dev == dev)) { in octeon_register_device()
791 octeon_device[idx]->adapter_refcount; in octeon_register_device()
793 octeon_device[idx]->adapter_fw_state; in octeon_register_device()
812 int octeon_deregister_device(struct octeon_device *oct) in octeon_deregister_device()
826 octeon_allocate_ioq_vector(struct octeon_device *oct, u32 num_ioqs) in octeon_allocate_ioq_vector()
858 octeon_free_ioq_vector(struct octeon_device *oct) in octeon_free_ioq_vector()
864 int octeon_setup_instr_queues(struct octeon_device *oct) in octeon_setup_instr_queues()
908 int octeon_setup_output_queues(struct octeon_device *oct) in octeon_setup_output_queues()
944 int octeon_set_io_queues_off(struct octeon_device *oct) in octeon_set_io_queues_off()
993 void octeon_set_droq_pkt_op(struct octeon_device *oct, in octeon_set_droq_pkt_op()
1012 int octeon_init_dispatch_list(struct octeon_device *oct) in octeon_init_dispatch_list()
1031 void octeon_delete_dispatch_list(struct octeon_device *oct) in octeon_delete_dispatch_list()
1063 octeon_get_dispatch(struct octeon_device *octeon_dev, u16 opcode, in octeon_get_dispatch()
1121 octeon_register_dispatch_fn(struct octeon_device *oct, in octeon_register_dispatch_fn()
1188 struct octeon_device *oct = (struct octeon_device *)buf; in octeon_core_drv_init()
1266 int octeon_get_tx_qsize(struct octeon_device *oct, u32 q_no) in octeon_get_tx_qsize()
1276 int octeon_get_rx_qsize(struct octeon_device *oct, u32 q_no) in octeon_get_rx_qsize()
1285 struct octeon_config *octeon_get_conf(struct octeon_device *oct) in octeon_get_conf()
1314 struct octeon_device *lio_get_device(u32 octeon_id) in lio_get_device()
1319 return octeon_device[octeon_id]; in lio_get_device()
1322 u64 lio_pci_readq(struct octeon_device *oct, u64 addr) in lio_pci_readq()
1353 void lio_pci_writeq(struct octeon_device *oct, in lio_pci_writeq()
1373 int octeon_mem_access_ok(struct octeon_device *oct) in octeon_mem_access_ok()
1392 int octeon_wait_for_ddr_init(struct octeon_device *oct, u32 *timeout) in octeon_wait_for_ddr_init()
1419 struct octeon_device *octeon_dev = (struct octeon_device *)dev; in lio_get_device_id()
1423 if (octeon_device[i] == octeon_dev) in lio_get_device_id()
1432 struct octeon_device *oct = NULL; in lio_enable_irq()