/openbmc/qemu/hw/acpi/ |
H A D | pci-bridge.c | 25 PCIBus *sec_bus = pci_bridge_get_sec_bus(br); in build_pci_bridge_aml() local 27 build_append_pci_bus_devices(scope, sec_bus); in build_pci_bridge_aml() 33 if (object_property_find(OBJECT(sec_bus), ACPI_PCIHP_PROP_BSEL)) { in build_pci_bridge_aml() 34 build_append_pcihp_slots(scope, sec_bus); in build_pci_bridge_aml()
|
/openbmc/qemu/hw/pci/ |
H A D | pci_bridge.c | 74 return &br->sec_bus; in pci_bridge_get_sec_bus() 278 bus_cold_reset(BUS(&s->sec_bus)); in pci_bridge_write_config() 346 PCIBus *sec_bus = &br->sec_bus; in pci_bridge_initfn() local 377 qbus_init(sec_bus, sizeof(br->sec_bus), typename, DEVICE(dev), in pci_bridge_initfn() 379 sec_bus->parent_dev = dev; in pci_bridge_initfn() 380 sec_bus->map_irq = br->map_irq ? br->map_irq : pci_swizzle_map_irq_fn; in pci_bridge_initfn() 381 sec_bus->address_space_mem = &br->address_space_mem; in pci_bridge_initfn() 385 sec_bus->address_space_io = &br->address_space_io; in pci_bridge_initfn() 390 QLIST_INIT(&sec_bus->child); in pci_bridge_initfn() 391 QLIST_INSERT_HEAD(&parent->child, sec_bus, sibling); in pci_bridge_initfn() [all …]
|
H A D | shpc.c | 245 if (shpc->sec_bus->devices[PCI_DEVFN(SHPC_IDX_TO_PCI(i), 0)]) { in shpc_reset() 280 PCIDevice *affected_dev = shpc->sec_bus->devices[devfn]; in shpc_free_devices_in_slot() 338 DEVICE(shpc->sec_bus->devices[PCI_DEVFN(pci_slot, 0)]); in shpc_slot_command() 647 int shpc_init(PCIDevice *d, PCIBus *sec_bus, MemoryRegion *bar, in shpc_init() argument 653 shpc->sec_bus = sec_bus; in shpc_init() 713 qbus_set_hotplug_handler(BUS(sec_bus), OBJECT(d)); in shpc_init()
|
H A D | pcie.c | 462 PCIBus *sec_bus = pci_bridge_get_sec_bus(PCI_BRIDGE(hotplug_dev)); in pcie_cap_update_power() local 472 pci_for_each_device(sec_bus, pci_bus_num(sec_bus), in pcie_cap_update_power() 591 PCIBus *sec_bus = pci_bridge_get_sec_bus(PCI_BRIDGE(dev)); in pcie_cap_slot_do_unplug() local 595 pci_for_each_device_under_bus(sec_bus, pcie_unplug_device, NULL); in pcie_cap_slot_do_unplug() 811 PCIBus *sec_bus = pci_bridge_get_sec_bus(PCI_BRIDGE(dev)); in pcie_cap_slot_find_child() local 814 pci_for_each_device(sec_bus, pci_bus_num(sec_bus), find_child_fn, &child); in pcie_cap_slot_find_child()
|
/openbmc/qemu/include/hw/pci/ |
H A D | shpc.h | 33 PCIBus *sec_bus; member 41 int shpc_init(PCIDevice *dev, PCIBus *sec_bus, MemoryRegion *bar,
|
H A D | pci_bridge.h | 64 PCIBus sec_bus; member
|
/openbmc/linux/arch/x86/hyperv/ |
H A D | irqdomain.c | 157 u8 sec_bus, sub_bus; in hv_build_pci_dev_id() local 161 pci_read_config_byte(data.bridge, PCI_SECONDARY_BUS, &sec_bus); in hv_build_pci_dev_id() 162 dev_id.pci.shadow_bus_range.secondary_bus = sec_bus; in hv_build_pci_dev_id()
|
/openbmc/qemu/hw/s390x/ |
H A D | s390-pci-bus.c | 1057 pci_setup_iommu(&pb->sec_bus, &s390_iommu_ops, s); in s390_pcihost_plug() 1059 qbus_set_hotplug_handler(BUS(&pb->sec_bus), OBJECT(s)); in s390_pcihost_plug() 1251 PCIBus *sec_bus = NULL; in s390_pci_enumerate_bridge() local 1263 sec_bus = pci_bridge_get_sec_bus(PCI_BRIDGE(pdev)); in s390_pci_enumerate_bridge() 1264 if (!sec_bus) { in s390_pci_enumerate_bridge() 1269 pci_for_each_device_under_bus(sec_bus, s390_pci_enumerate_bridge, s); in s390_pci_enumerate_bridge()
|
/openbmc/qemu/hw/pci-bridge/ |
H A D | pcie_pci_bridge.c | 45 rc = shpc_init(d, &br->sec_bus, &pcie_br->shpc_bar, 0, errp); in OBJECT_DECLARE_SIMPLE_TYPE()
|
H A D | pci_bridge_dev.c | 69 err = shpc_init(dev, &br->sec_bus, &bridge_dev->bar, 0, errp); in pci_bridge_dev_realize()
|
H A D | cxl_upstream.c | 200 PCIBus *bus = &PCI_BRIDGE(us)->sec_bus; in build_cdat_table()
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_pci.c | 1449 PCIBus *sec_bus = pci_bridge_get_sec_bus(PCI_BRIDGE(dev)); in spapr_dt_pci_device() local 1451 return spapr_dt_pci_bus(sphb, sec_bus, fdt, offset); in spapr_dt_pci_device() 2200 PCIBus *sec_bus = NULL; in spapr_phb_pci_enumerate_bridge() local 2212 sec_bus = pci_bridge_get_sec_bus(PCI_BRIDGE(pdev)); in spapr_phb_pci_enumerate_bridge() 2213 if (!sec_bus) { in spapr_phb_pci_enumerate_bridge() 2217 pci_for_each_device_under_bus(sec_bus, spapr_phb_pci_enumerate_bridge, in spapr_phb_pci_enumerate_bridge()
|
/openbmc/qemu/hw/cxl/ |
H A D | cxl-host.c | 229 d = pcie_find_port_by_pn(&PCI_BRIDGE(d)->sec_bus, target); in cxl_cfmws_find_device()
|
H A D | cxl-mailbox-utils.c | 192 tunnel_target = pcie_find_port_by_pn(&PCI_BRIDGE(usp)->sec_bus, in cmd_tunnel_management_cmd() 440 PCIBus *bus = &PCI_BRIDGE(cci->d)->sec_bus; in cmd_identify_switch_device() 525 PCIBus *bus = &PCI_BRIDGE(cci->d)->sec_bus; in cmd_get_physical_port_state()
|
/openbmc/linux/drivers/pci/ |
H A D | pci-sysfs.c | 242 u8 sec_bus; in secondary_bus_number_show() local 245 err = pci_read_config_byte(pci_dev, PCI_SECONDARY_BUS, &sec_bus); in secondary_bus_number_show() 249 return sysfs_emit(buf, "%u\n", sec_bus); in secondary_bus_number_show()
|
/openbmc/qemu/hw/i386/ |
H A D | acpi-build.c | 2175 PCIBus *sec_bus = pci_bridge_get_sec_bus(PCI_BRIDGE(dev)); in insert_ivhd() local 2176 uint8_t sec = pci_bus_num(sec_bus); in insert_ivhd() 2179 if (pci_bus_is_express(sec_bus)) { in insert_ivhd() 2202 pci_for_each_device(sec_bus, sec, insert_ivhd, table_data); in insert_ivhd()
|
/openbmc/qemu/hw/mips/ |
H A D | boston.c | 773 pdev = pci_create_simple_multifunction(&PCI_BRIDGE(&pcie2->root)->sec_bus, in boston_mach_init()
|