/openbmc/qemu/tests/qtest/ |
H A D | q35-test.c | 84 QPCIBus *pcibus; in test_smram_lock() local 91 pcibus = qpci_new_pc(qts, NULL); in test_smram_lock() 92 g_assert(pcibus != NULL); in test_smram_lock() 94 pcidev = qpci_device_find(pcibus, 0); in test_smram_lock() 122 qpci_free_pc(pcibus); in test_smram_lock() 130 QPCIBus *pcibus; in test_tseg_size() local 146 pcibus = qpci_new_pc(qts, NULL); in test_tseg_size() 147 g_assert(pcibus != NULL); in test_tseg_size() 148 pcidev = qpci_device_find(pcibus, 0); in test_tseg_size() 185 qpci_free_pc(pcibus); in test_tseg_size() [all …]
|
H A D | usb-hcd-ehci-test.c | 17 static QPCIBus *pcibus; variable 55 pcibus = qpci_new_pc(global_qtest, NULL); in test_init() 56 g_assert(pcibus != NULL); in test_init() 58 qusb_pci_init_one(pcibus, &uhci1, QPCI_DEVFN(0x1d, 0), 4); in test_init() 59 qusb_pci_init_one(pcibus, &uhci2, QPCI_DEVFN(0x1d, 1), 4); in test_init() 60 qusb_pci_init_one(pcibus, &uhci3, QPCI_DEVFN(0x1d, 2), 4); in test_init() 61 qusb_pci_init_one(pcibus, &ehci1, QPCI_DEVFN(0x1d, 7), 0); in test_init() 70 qpci_free_pc(pcibus); in test_deinit() 75 g_assert(pcibus != NULL); in pci_uhci_port_1() 89 g_assert(pcibus != NULL); in pci_ehci_port_1() [all …]
|
H A D | pvpanic-pci-test.c | 27 QPCIBus *pcibus; in test_panic_nopause() local 32 pcibus = qpci_new_pc(qts, NULL); in test_panic_nopause() 33 dev = qpci_device_find(pcibus, QPCI_DEVFN(0x4, 0x0)); in test_panic_nopause() 51 qpci_free_pc(pcibus); in test_panic_nopause() 60 QPCIBus *pcibus; in test_panic() local 65 pcibus = qpci_new_pc(qts, NULL); in test_panic() 66 dev = qpci_device_find(pcibus, QPCI_DEVFN(0x4, 0x0)); in test_panic() 84 qpci_free_pc(pcibus); in test_panic() 93 QPCIBus *pcibus; in test_pvshutdown() local 98 pcibus = qpci_new_pc(qts, NULL); in test_pvshutdown() [all …]
|
H A D | erst-test.c | 24 static QPCIDevice *get_erst_device(QPCIBus *pcibus) in get_erst_device() argument 29 qpci_device_foreach(pcibus, in get_erst_device() 106 s->dev = get_erst_device(s->qs->pcibus); in setup_vm_cmd()
|
H A D | rtl8139-test.c | 24 static QPCIBus *pcibus; variable 39 pcibus = qpci_new_pc(global_qtest, NULL); in get_device() 40 qpci_device_foreach(pcibus, 0x10ec, 0x8139, save_fn, &dev); in get_device()
|
H A D | ide-test.c | 122 static QPCIBus *pcibus = NULL; variable 146 if (pcibus) { in ide_test_quit() 147 qpci_free_pc(pcibus); in ide_test_quit() 148 pcibus = NULL; in ide_test_quit() 160 if (!pcibus) { in get_pci_device() 161 pcibus = qpci_new_pc(qts, NULL); in get_pci_device() 165 dev = qpci_device_find(pcibus, QPCI_DEVFN(IDE_PCI_DEV, IDE_PCI_FUNC)); in get_pci_device()
|
H A D | usb-hcd-uhci-test.c | 25 qusb_pci_init_one(qs->pcibus, &uhci, QPCI_DEVFN(0x1d, 0), 4); in test_port()
|
H A D | ivshmem-test.c | 31 static QPCIDevice *get_device(QPCIBus *pcibus) in get_device() argument 36 qpci_device_foreach(pcibus, 0x1af4, 0x1110, save_fn, &dev); in get_device() 119 s->dev = get_device(s->qs->pcibus); in setup_vm_cmd()
|
H A D | virtio-net-failover.c | 38 static QPCIBus *pcibus; variable 49 pcibus = qpci_new_pc(qts, &guest_malloc); in machine_start() 50 g_assert(qpci_secondary_buses_init(pcibus) == numbus); in machine_start() 53 dev = qpci_device_find(pcibus, QPCI_DEVFN(bus, 0)); in machine_start() 67 qpci_free_pc(pcibus); in machine_stop() 276 dev = virtio_pci_new(pcibus, &addr); in start_virtio_net_internal()
|
/openbmc/qemu/hw/ppc/ |
H A D | ppc440_bamboo.c | 136 PCIBus *pcibus; in bamboo_init() local 192 pcibus = (PCIBus *)qdev_get_child_bus(dev, "pci.0"); in bamboo_init() 193 if (!pcibus) { in bamboo_init() 215 if (pcibus) { in bamboo_init() 220 pci_init_nic_devices(pcibus, mc->default_nic); in bamboo_init()
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | libqos.c | 26 qs->pcibus = ops->qpci_new(qs->qts, &qs->alloc); in qtest_vboot() 55 if (qs->pcibus && qs->ops->qpci_free) { in qtest_common_shutdown() 56 qs->ops->qpci_free(qs->pcibus); in qtest_common_shutdown() 57 qs->pcibus = NULL; in qtest_common_shutdown()
|
H A D | usb.c | 19 void qusb_pci_init_one(QPCIBus *pcibus, struct qhc *hc, uint32_t devfn, int bar) in qusb_pci_init_one() argument 21 hc->dev = qpci_device_find(pcibus, devfn); in qusb_pci_init_one()
|
H A D | usb.h | 11 void qusb_pci_init_one(QPCIBus *pcibus, struct qhc *hc,
|
H A D | libqos.h | 20 QPCIBus *pcibus; member
|
H A D | ahci.c | 130 QPCIBus *pcibus; in get_ahci_device() local 132 pcibus = qpci_new_pc(qts, NULL); in get_ahci_device() 135 ahci = qpci_device_find(pcibus, QPCI_DEVFN(0x1F, 0x02)); in get_ahci_device() 156 QPCIBus *pcibus = dev ? dev->bus : NULL; in free_ahci_device() local 160 qpci_free_pc(pcibus); in free_ahci_device()
|
/openbmc/qemu/hw/i386/ |
H A D | pc_q35.c | 227 pcms->pcibus = PCI_BUS(qdev_get_child_bus(DEVICE(phb), "pcie.0")); in pc_q35_init() 241 pci_realize_and_unref(lpc, pcms->pcibus, &error_fatal); in pc_q35_init() 288 pdev = pci_create_simple_multifunction(pcms->pcibus, in pc_q35_init() 302 ehci_create_ich9_with_companions(pcms->pcibus, 0x1d); in pc_q35_init() 309 smb = pci_create_simple_multifunction(pcms->pcibus, in pc_q35_init() 319 pc_vga_init(isa_bus, pcms->pcibus); in pc_q35_init() 320 pc_nic_init(pcmc, isa_bus, pcms->pcibus); in pc_q35_init()
|
H A D | pc_piix.c | 213 pcms->pcibus = PCI_BUS(qdev_get_child_bus(DEVICE(phb), "pci.0")); in pc_init1() 214 pci_bus_map_irqs(pcms->pcibus, in pc_init1() 262 pci_realize_and_unref(pci_dev, pcms->pcibus, &error_fatal); in pc_init1() 274 pci_bus_irqs(pcms->pcibus, xen_intx_set_irq, pci_dev, in pc_init1() 311 pc_vga_init(isa_bus, pcmc->pci_enabled ? pcms->pcibus : NULL); in pc_init1() 317 pc_nic_init(pcmc, isa_bus, pcms->pcibus); in pc_init1() 438 xen_igd_reserve_slot(pcms->pcibus); in pc_xen_hvm_init() 439 pci_create_simple(pcms->pcibus, -1, "xen-platform"); in pc_xen_hvm_init()
|
H A D | x86-iommu.c | 104 if (!pcms || !pcms->pcibus) { in x86_iommu_realize()
|
H A D | pc.c | 621 cxl_hook_up_pxb_registers(pcms->pcibus, &pcms->cxl_devices_state, in pc_machine_done() 631 fw_cfg_add_extra_pci_roots(pcms->pcibus, x86ms->fw_cfg); in pc_machine_done() 1204 if (pcms->pcibus) { in pc_basic_device_init() 1205 pci_create_simple(pcms->pcibus, -1, "xen-platform"); in pc_basic_device_init()
|
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | aiutils.h | 152 struct pci_dev *pcibus; /* handle to pci bus */ member
|
H A D | aiutils.c | 476 sii->pcibus = pbus->host_pci; in ai_doattach() 702 pci_read_config_dword(sii->pcibus, PCI_VENDOR_ID, &w); in ai_deviceremoved()
|
/openbmc/linux/drivers/scsi/megaraid/ |
H A D | megaraid_ioctl.h | 216 uint8_t pcibus; member
|
/openbmc/qemu/tests/qtest/fuzz/ |
H A D | generic_fuzz.c | 655 QPCIBus *pcibus = qpci_new_pc(s, NULL); in generic_fuzz() local 656 g_ptr_array_foreach(fuzzable_pci_devices, pci_enum, pcibus); in generic_fuzz() 657 qpci_free_pc(pcibus); in generic_fuzz()
|
/openbmc/qemu/hw/pci-host/ |
H A D | designware.c | 225 PCIBus *pcibus = pci_get_bus(PCI_DEVICE(root)); in designware_pcie_root_data_access() local 226 PCIDevice *pcidev = pci_find_device(pcibus, busnum, devfn); in designware_pcie_root_data_access()
|
/openbmc/qemu/include/hw/i386/ |
H A D | pc.h | 34 PCIBus *pcibus; member
|