Lines Matching refs:bus

49 static void acpiphp_sanitize_bus(struct pci_bus *bus);
192 struct pci_bus *bus; in acpiphp_post_dock_fixup() local
198 bus = context->func.slot->bus; in acpiphp_post_dock_fixup()
199 if (!bus->self) in acpiphp_post_dock_fixup()
205 pci_read_config_dword(bus->self, PCI_PRIMARY_BUS, &buses); in acpiphp_post_dock_fixup()
207 if (((buses >> 8) & 0xff) != bus->busn_res.start) { in acpiphp_post_dock_fixup()
209 | ((unsigned int)(bus->primary) << 0) in acpiphp_post_dock_fixup()
210 | ((unsigned int)(bus->busn_res.start) << 8) in acpiphp_post_dock_fixup()
211 | ((unsigned int)(bus->busn_res.end) << 16); in acpiphp_post_dock_fixup()
212 pci_write_config_dword(bus->self, PCI_PRIMARY_BUS, buses); in acpiphp_post_dock_fixup()
289 slot->bus = bridge->pci_bus; in acpiphp_add_context()
370 static unsigned char acpiphp_max_busnr(struct pci_bus *bus) in acpiphp_max_busnr() argument
383 max = bus->busn_res.start; in acpiphp_max_busnr()
385 list_for_each_entry(tmp, &bus->children, node) { in acpiphp_max_busnr()
439 return pci_scan_slot(slot->bus, PCI_DEVFN(slot->device, 0)); in acpiphp_rescan_slot()
444 struct pci_bus *bus = bridge->subordinate; in acpiphp_native_scan_bridge() local
448 if (!bus) in acpiphp_native_scan_bridge()
451 max = bus->busn_res.start; in acpiphp_native_scan_bridge()
453 for_each_pci_bridge(dev, bus) { in acpiphp_native_scan_bridge()
455 max = pci_scan_bridge(bus, dev, max, 0); in acpiphp_native_scan_bridge()
459 for_each_pci_bridge(dev, bus) { in acpiphp_native_scan_bridge()
463 max = pci_scan_bridge(bus, dev, max, 1); in acpiphp_native_scan_bridge()
483 struct pci_bus *bus = slot->bus; in enable_slot() local
486 if (bridge && bus->self && hotplug_is_native(bus->self)) { in enable_slot()
494 for_each_pci_bridge(dev, bus) { in enable_slot()
503 max = acpiphp_max_busnr(bus); in enable_slot()
505 for_each_pci_bridge(dev, bus) { in enable_slot()
509 max = pci_scan_bridge(bus, dev, max, pass); in enable_slot()
513 if (pci_is_root_bus(bus)) in enable_slot()
518 if (pci_is_root_bus(bus)) in enable_slot()
519 __pci_bus_assign_resources(bus, &add_list, NULL); in enable_slot()
521 pci_assign_unassigned_bridge_resources(bus->self); in enable_slot()
524 acpiphp_sanitize_bus(bus); in enable_slot()
525 pcie_bus_configure_settings(bus); in enable_slot()
528 list_for_each_entry(dev, &bus->devices, bus_list) { in enable_slot()
534 pci_bus_add_devices(bus); in enable_slot()
538 dev = pci_get_slot(bus, PCI_DEVFN(slot->device, in enable_slot()
556 struct pci_bus *bus = slot->bus; in disable_slot() local
566 list_for_each_entry_safe_reverse(dev, prev, &bus->devices, bus_list) in disable_slot()
578 struct pci_bus *bus = slot->bus; in slot_no_hotplug() local
581 list_for_each_entry(dev, &bus->devices, bus_list) { in slot_no_hotplug()
615 if (pci_bus_read_dev_vendor_id(slot->bus, in get_slot_status()
630 if (pci_bus_read_dev_vendor_id(slot->bus, in get_slot_status()
657 struct pci_bus *bus = dev->subordinate; in trim_stale_devices() local
679 } else if (bus) { in trim_stale_devices()
684 list_for_each_entry_safe_reverse(child, tmp, &bus->devices, bus_list) in trim_stale_devices()
710 struct pci_bus *bus = slot->bus; in acpiphp_check_bridge() local
718 &bus->devices, bus_list) in acpiphp_check_bridge()
737 static void acpiphp_sanitize_bus(struct pci_bus *bus) in acpiphp_sanitize_bus() argument
743 list_for_each_entry_safe_reverse(dev, tmp, &bus->devices, bus_list) { in acpiphp_sanitize_bus()
858 void acpiphp_enumerate_slots(struct pci_bus *bus) in acpiphp_enumerate_slots() argument
868 adev = ACPI_COMPANION(bus->bridge); in acpiphp_enumerate_slots()
879 bridge->pci_dev = pci_dev_get(bus->self); in acpiphp_enumerate_slots()
880 bridge->pci_bus = bus; in acpiphp_enumerate_slots()
887 get_device(&bus->dev); in acpiphp_enumerate_slots()
936 put_device(&bus->dev); in acpiphp_enumerate_slots()
962 void acpiphp_remove_slots(struct pci_bus *bus) in acpiphp_remove_slots() argument
971 if (bridge->pci_bus == bus) { in acpiphp_remove_slots()