Lines Matching refs:PCIBus
32 struct PCIBus { struct
44 PCIBus *next; argument
57 static PCIBus *first_bus; argument
61 PCIBus *bus = (PCIBus *)opaque; in pcibus_save()
71 PCIBus *bus = (PCIBus *)opaque; in pcibus_load()
90 PCIBus *pci_register_bus(DeviceState *parent, const char *name, in pci_register_bus()
94 PCIBus *bus; in pci_register_bus()
97 bus = FROM_QBUS(PCIBus, qbus_create(BUS_TYPE_PCI, in pci_register_bus()
98 sizeof(PCIBus) + (nirq * sizeof(int)), in pci_register_bus()
111 static PCIBus *pci_register_secondary_bus(PCIDevice *dev, pci_map_irq_fn map_irq) in pci_register_secondary_bus()
113 PCIBus *bus; in pci_register_secondary_bus()
114 bus = qemu_mallocz(sizeof(PCIBus)); in pci_register_secondary_bus()
122 int pci_bus_num(PCIBus *s) in pci_bus_num()
242 static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, in do_pci_register_device()
272 PCIDevice *pci_register_device(PCIBus *bus, const char *name, in pci_register_device()
576 PCIBus *s = opaque; in pci_data_write()
602 PCIBus *s = opaque; in pci_data_read()
650 PCIBus *bus; in pci_set_irq()
767 PCIBus *bus = first_bus; in pci_for_each_device()
812 PCIDevice *pci_nic_init(PCIBus *bus, NICInfo *nd, int devfn, in pci_nic_init()
836 PCIBus *bus;
856 PCIBus *pci_find_bus(int bus_num) in pci_find_bus()
858 PCIBus *bus = first_bus; in pci_find_bus()
868 PCIBus *bus = pci_find_bus(bus_num); in pci_find_device()
876 PCIBus *pci_bridge_init(PCIBus *bus, int devfn, uint16_t vid, uint16_t did, in pci_bridge_init()
911 PCIBus *bus; in pci_qdev_init()
914 bus = FROM_QBUS(PCIBus, qdev_get_parent_bus(qdev)); in pci_qdev_init()
936 PCIDevice *pci_create_simple(PCIBus *bus, int devfn, const char *name) in pci_create_simple()