Lines Matching refs:PCIBus
33 struct PCIBus { struct
45 PCIBus *next; argument
58 static PCIBus *first_bus; argument
62 PCIBus *bus = (PCIBus *)opaque; in pcibus_save()
72 PCIBus *bus = (PCIBus *)opaque; in pcibus_load()
91 PCIBus *pci_register_bus(DeviceState *parent, const char *name, in pci_register_bus()
95 PCIBus *bus; in pci_register_bus()
98 bus = FROM_QBUS(PCIBus, qbus_create(BUS_TYPE_PCI, in pci_register_bus()
99 sizeof(PCIBus) + (nirq * sizeof(int)), in pci_register_bus()
112 static PCIBus *pci_register_secondary_bus(PCIDevice *dev, pci_map_irq_fn map_irq) in pci_register_secondary_bus()
114 PCIBus *bus; in pci_register_secondary_bus()
115 bus = g_malloc0(sizeof(PCIBus)); in pci_register_secondary_bus()
123 int pci_bus_num(PCIBus *s) in pci_bus_num()
243 static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, in do_pci_register_device()
273 PCIDevice *pci_register_device(PCIBus *bus, const char *name, in pci_register_device()
575 PCIBus *s = opaque; in pci_data_write()
601 PCIBus *s = opaque; in pci_data_read()
649 PCIBus *bus; in pci_set_irq()
774 PCIBus *bus = first_bus; in pci_for_each_device()
819 PCIDevice *pci_nic_init(PCIBus *bus, NICInfo *nd, int devfn, in pci_nic_init()
843 PCIBus *bus;
863 PCIBus *pci_find_bus(int bus_num) in pci_find_bus()
865 PCIBus *bus = first_bus; in pci_find_bus()
875 PCIBus *bus = pci_find_bus(bus_num); in pci_find_device()
883 PCIBus *pci_bridge_init(PCIBus *bus, int devfn, uint16_t vid, uint16_t did, in pci_bridge_init()
918 PCIBus *bus; in pci_qdev_init()
921 bus = FROM_QBUS(PCIBus, qdev_get_parent_bus(qdev)); in pci_qdev_init()
943 PCIDevice *pci_create_simple(PCIBus *bus, int devfn, const char *name) in pci_create_simple()