| /openbmc/qemu/hw/ppc/ |
| H A D | pegasos2.c | |
| H A D | prep.c | 304 i82378_dev = DEVICE(pci_new(PCI_DEVFN(11, 0), "i82378")); in ibm_40p_init() 354 dev = DEVICE(pci_create_simple(pci_bus, PCI_DEVFN(1, 0), "lsi53c810")); in ibm_40p_init() 358 /* XXX: s3-trio at PCI_DEVFN(2, 0) */ in ibm_40p_init() 361 /* First PCNET device at PCI_DEVFN(3, 0) */ in ibm_40p_init()
|
| H A D | spapr_pci.c | 1545 bus->devices[PCI_DEVFN(slotnr, 0)] && in spapr_pci_pre_plug() 1549 slotnr, bus->devices[PCI_DEVFN(slotnr, 0)]->name); in spapr_pci_pre_plug() 1598 func_drc = drc_from_devfn(phb, chassis, PCI_DEVFN(slotnr, i)); in spapr_pci_plug() 1677 func_drc = drc_from_devfn(phb, chassis, PCI_DEVFN(slotnr, i)); in spapr_pci_unplug_request() 1700 func_drc = drc_from_devfn(phb, chassis, PCI_DEVFN(slotnr, i)); in spapr_pci_unplug_request() 1889 PCI_DEVFN(0, 0), PCI_NUM_PINS, in spapr_phb_realize()
|
| H A D | mac_oldworld.c | 232 macio = OBJECT(pci_new(PCI_DEVFN(16, 0), TYPE_OLDWORLD_MACIO)); in ppc_heathrow_init()
|
| /openbmc/qemu/hw/pci-host/ |
| H A D | uninorth.c | 71 retval |= PCI_DEVFN(slot, func) << 8; in unin_get_config_reg() 127 PCI_DEVFN(11, 0), 4, TYPE_PCI_BUS); in pci_unin_main_realize() 129 pci_create_simple(h->bus, PCI_DEVFN(11, 0), "uni-north-pci"); in pci_unin_main_realize() 177 PCI_DEVFN(11, 0), 4, TYPE_PCI_BUS); in pci_u3_agp_realize() 179 pci_create_simple(h->bus, PCI_DEVFN(11, 0), "u3-agp"); in pci_u3_agp_realize() 221 PCI_DEVFN(11, 0), 4, TYPE_PCI_BUS); in pci_unin_agp_realize() 223 pci_create_simple(h->bus, PCI_DEVFN(11, 0), "uni-north-agp"); in pci_unin_agp_realize() 254 PCI_DEVFN(14, 0), 4, TYPE_PCI_BUS); in pci_unin_internal_realize() 256 pci_create_simple(h->bus, PCI_DEVFN(14, 0), "uni-north-internal-pci"); in pci_unin_internal_realize()
|
| H A D | articia.c | 187 &s->io, PCI_DEVFN(8, 0), 4, TYPE_PCI_BUS); in articia_realize() 188 pdev = pci_create_simple_multifunction(h->bus, PCI_DEVFN(0, 0), in articia_realize() 191 pci_create_simple(h->bus, PCI_DEVFN(0, 1), TYPE_ARTICIA_PCI_BRIDGE); in articia_realize()
|
| H A D | sh_pci.c | 133 PCI_DEVFN(0, 0), PCI_NUM_PINS, in sh_pcic_host_realize() 145 s->dev = pci_create_simple(phb->bus, PCI_DEVFN(0, 0), "sh_pci_host"); in sh_pcic_host_realize()
|
| H A D | sabre.c | 394 pci_dev = pci_new_multifunction(PCI_DEVFN(1, 0), TYPE_SIMBA_PCI_BRIDGE); in sabre_realize() 399 pci_dev = pci_new_multifunction(PCI_DEVFN(1, 1), TYPE_SIMBA_PCI_BRIDGE); in sabre_realize()
|
| H A D | bonito.c | 200 ((PCI_BUILD_BDF(busno, PCI_DEVFN(devno , funno)) << 8) + (regno)) 637 PCI_DEVFN(5, 0), 32, TYPE_PCI_BUS); in bonito_host_realize() 750 d = pci_new(PCI_DEVFN(0, 0), TYPE_PCI_BONITO); in bonito_init()
|
| H A D | gpex.c | 214 qdev_prop_set_int32(DEVICE(root), "addr", PCI_DEVFN(0, 0)); in gpex_host_initfn()
|
| H A D | xilinx-pcie.c | 155 qdev_prop_set_int32(DEVICE(root), "addr", PCI_DEVFN(0, 0)); in xilinx_pcie_host_init()
|
| H A D | pnv_phb.c | 170 PCIDevice *root = pci_new(PCI_DEVFN(0, 0), TYPE_PNV_PHB_ROOT_PORT); in pnv_phb_realize()
|
| H A D | versatile.c | 410 PCI_DEVFN(11, 0), TYPE_PCI_BUS); in pci_vpb_realize()
|
| H A D | raven.c | 253 pci_create_simple(h->bus, PCI_DEVFN(0, 0), TYPE_RAVEN_PCI_DEVICE); in raven_pcihost_realizefn()
|
| /openbmc/qemu/hw/vfio/ |
| H A D | igd.c | 269 host_bridge = pci_find_device(bus, 0, PCI_DEVFN(0, 0)); in vfio_pci_igd_host_init() 293 if (pdev->devfn != PCI_DEVFN(0x1f, 0)) { in vfio_pci_igd_lpc_bridge_realize() 336 0, PCI_DEVFN(0x1f, 0)); in type_init() 339 PCI_DEVFN(0x1f, 0), "vfio-pci-igd-lpc-bridge"); in type_init() 373 0, PCI_DEVFN(0x1f, 0)); in vfio_pci_igd_setup_lpc_bridge() 552 0, PCI_DEVFN(0x2, 0)))) { in vfio_pci_igd_config_quirk()
|
| /openbmc/qemu/hw/alpha/ |
| H A D | dp264.c | 92 clipper_pci_map_irq, PCI_DEVFN(1, 0)); in clipper_init() 115 i82378_dev = DEVICE(pci_create_simple(pci_bus, PCI_DEVFN(7, 0), "i82378")); in clipper_init()
|
| /openbmc/qemu/hw/i386/ |
| H A D | pc_q35.c | 116 ehci = pci_new_multifunction(PCI_DEVFN(slot, 7), name); in ehci_create_ich9_with_companions() 121 uhci = pci_new_multifunction(PCI_DEVFN(slot, comp[i].func), in ehci_create_ich9_with_companions() 237 lpc = pci_new_multifunction(PCI_DEVFN(ICH9_LPC_DEV, ICH9_LPC_FUNC), in pc_q35_init() 293 PCI_DEVFN(ICH9_SATA1_DEV, in pc_q35_init() 314 PCI_DEVFN(ICH9_SMB_DEV, in pc_q35_init()
|
| H A D | amd_iommu.h | 262 #define AMDVI_IOAPIC_SB_DEVID PCI_BUILD_BDF(0, PCI_DEVFN(0x14, 0))
|
| H A D | acpi-build.c | 1656 #define IOAPIC_SB_DEVID (uint64_t)PCI_BUILD_BDF(0, PCI_DEVFN(0x14, 0)) 1694 entry = PCI_BUILD_BDF(sec, PCI_DEVFN(0, 0)) << 8 | 0x3; in insert_ivhd() 1697 entry = PCI_BUILD_BDF(sub, PCI_DEVFN(31, 7)) << 8 | 0x4; in insert_ivhd() 1713 dev_id_a = PCI_BUILD_BDF(sec, PCI_DEVFN(0, 0)); in insert_ivhd() 1727 entry = PCI_BUILD_BDF(sub, PCI_DEVFN(31, 7)) << 8 | 0x4; in insert_ivhd()
|
| /openbmc/qemu/hw/pci/ |
| H A D | shpc.c | 245 if (shpc->sec_bus->devices[PCI_DEVFN(SHPC_IDX_TO_PCI(i), 0)]) { in shpc_reset() 277 for (devfn = PCI_DEVFN(pci_slot, 0); in shpc_free_devices_in_slot() 278 devfn <= PCI_DEVFN(pci_slot, PCI_FUNC_MAX - 1); in shpc_free_devices_in_slot() 338 DEVICE(shpc->sec_bus->devices[PCI_DEVFN(pci_slot, 0)]); in shpc_slot_command()
|
| /openbmc/qemu/hw/sparc64/ |
| H A D | sun4u.c | 606 ebus = pci_new_multifunction(PCI_DEVFN(1, 0), TYPE_EBUS); in sun4uv_init() 625 pci_create_simple(pci_busA, PCI_DEVFN(2, 0), "VGA"); in sun4uv_init() 639 pci_dev = pci_new_multifunction(PCI_DEVFN(1, 1), mc->default_nic); in sun4uv_init() 655 pci_dev = pci_new(PCI_DEVFN(3, 0), "cmd646-ide"); in sun4uv_init()
|
| /openbmc/qemu/hw/mips/ |
| H A D | fuloong2e.c | 289 pci_dev = pci_new_multifunction(PCI_DEVFN(FULOONG2E_VIA_SLOT, 0), in mips_fuloong2e_init()
|
| /openbmc/qemu/hw/xen/ |
| H A D | xen_pt.h | 97 (1UL << PCI_SLOT(PCI_DEVFN(XEN_PCI_IGD_DEV, XEN_PCI_IGD_FN)))
|
| H A D | xen_pt_graphics.c | 401 bridge_dev = pci_create_simple(bus, PCI_DEVFN(0x1f, 0), in type_init()
|
| /openbmc/qemu/include/hw/pci/ |
| H A D | pci.h | 15 #define PCI_DEVFN(slot, func) ((((slot) & 0x1f) << 3) | ((func) & 0x07)) macro 28 (PCI_BUILD_BDF(bus, PCI_DEVFN(dev, func))))
|