Lines Matching defs:octeon_device

25 #include "octeon_device.h"
542 static struct octeon_device *octeon_device[MAX_OCTEON_DEVICES];
547 /* locks device array (i.e. octeon_device[]) */
563 memset(octeon_device, 0, (sizeof(void *) * MAX_OCTEON_DEVICES));
569 static void *__retrieve_octeon_config_info(struct octeon_device *oct,
597 static int __verify_octeon_config_info(struct octeon_device *oct, void *conf)
613 void *oct_get_config_info(struct octeon_device *oct, u16 card_type)
646 void octeon_free_device_mem(struct octeon_device *oct)
663 octeon_device[i] = NULL;
668 static struct octeon_device *octeon_allocate_device_mem(u32 pci_id,
671 struct octeon_device *oct;
697 octdevsize = sizeof(struct octeon_device);
711 oct = (struct octeon_device *)buf;
720 struct octeon_device *octeon_allocate_device(u32 pci_id,
724 struct octeon_device *oct = NULL;
729 if (!octeon_device[oct_idx])
736 octeon_device[oct_idx] = oct;
763 int octeon_register_device(struct octeon_device *oct,
781 if (!octeon_device[idx]) {
792 if ((octeon_device[idx]->loc.bus == bus) &&
793 (octeon_device[idx]->loc.dev == dev)) {
795 octeon_device[idx]->adapter_refcount;
797 octeon_device[idx]->adapter_fw_state;
817 int octeon_deregister_device(struct octeon_device *oct)
832 octeon_allocate_ioq_vector(struct octeon_device *oct, u32 num_ioqs)
865 octeon_free_ioq_vector(struct octeon_device *oct)
872 int octeon_setup_instr_queues(struct octeon_device *oct)
917 int octeon_setup_output_queues(struct octeon_device *oct)
954 int octeon_set_io_queues_off(struct octeon_device *oct)
1004 void octeon_set_droq_pkt_op(struct octeon_device *oct,
1023 int octeon_init_dispatch_list(struct octeon_device *oct)
1043 void octeon_delete_dispatch_list(struct octeon_device *oct)
1076 octeon_get_dispatch(struct octeon_device *octeon_dev, u16 opcode,
1134 octeon_register_dispatch_fn(struct octeon_device *oct,
1202 struct octeon_device *oct = (struct octeon_device *)buf;
1282 int octeon_get_tx_qsize(struct octeon_device *oct, u32 q_no)
1293 int octeon_get_rx_qsize(struct octeon_device *oct, u32 q_no)
1303 struct octeon_config *octeon_get_conf(struct octeon_device *oct)
1333 struct octeon_device *lio_get_device(u32 octeon_id)
1338 return octeon_device[octeon_id];
1342 u64 lio_pci_readq(struct octeon_device *oct, u64 addr)
1374 void lio_pci_writeq(struct octeon_device *oct,
1395 int octeon_mem_access_ok(struct octeon_device *oct)
1415 int octeon_wait_for_ddr_init(struct octeon_device *oct, u32 *timeout)
1443 struct octeon_device *octeon_dev = (struct octeon_device *)dev;
1447 if (octeon_device[i] == octeon_dev)
1456 struct octeon_device *oct = NULL;