Lines Matching full:buses
507 u32 buses; in pci_read_bridge_windows() local
512 pci_read_config_dword(bridge, PCI_PRIMARY_BUS, &buses); in pci_read_bridge_windows()
514 res.start = (buses >> 8) & 0xff; in pci_read_bridge_windows()
515 res.end = (buses >> 16) & 0xff; in pci_read_bridge_windows()
1317 * pci_scan_bridge_extend() - Scan buses behind a bridge
1320 * @max: Starting subordinate number of buses behind this bridge
1321 * @available_buses: Total number of buses available for this bridge and
1323 * been allocated the remaining buses will be
1334 * them, we proceed to assigning numbers to the remaining buses in
1337 * Return: New subordinate number covering all buses behind this bridge.
1345 u32 buses, i, j = 0; in pci_scan_bridge_extend() local
1359 pci_read_config_dword(dev, PCI_PRIMARY_BUS, &buses); in pci_scan_bridge_extend()
1360 primary = buses & 0xFF; in pci_scan_bridge_extend()
1361 secondary = (buses >> 8) & 0xFF; in pci_scan_bridge_extend()
1362 subordinate = (buses >> 16) & 0xFF; in pci_scan_bridge_extend()
1391 unsigned int cmax, buses; in pci_scan_bridge_extend() local
1416 buses = subordinate - secondary; in pci_scan_bridge_extend()
1417 cmax = pci_scan_child_bus_extend(child, buses); in pci_scan_bridge_extend()
1443 buses & ~0xffffff); in pci_scan_bridge_extend()
1474 buses = (buses & 0xff000000) in pci_scan_bridge_extend()
1484 buses &= ~0xff000000; in pci_scan_bridge_extend()
1485 buses |= CARDBUS_LATENCY_TIMER << 24; in pci_scan_bridge_extend()
1489 pci_write_config_dword(dev, PCI_PRIMARY_BUS, buses); in pci_scan_bridge_extend()
1568 * pci_scan_bridge() - Scan buses behind a bridge
1571 * @max: Starting subordinate number of buses behind this bridge
1581 * them, we proceed to assigning numbers to the remaining buses in
1584 * Return: New subordinate number covering all buses behind this bridge.
3018 * @available_buses: Total number of buses available (%0 does not try to
3021 * Scans devices below @bus including subordinate buses. Returns new
3041 /* Reserve buses for SR-IOV capability */ in pci_scan_child_bus_extend()
3058 * buses between hotplug bridges. in pci_scan_child_bus_extend()
3087 unsigned int buses = 0; in pci_scan_child_bus_extend() local
3092 * port) so it gets all available buses which it in pci_scan_child_bus_extend()
3096 buses = available_buses; in pci_scan_child_bus_extend()
3099 * Distribute the extra buses between hotplug in pci_scan_child_bus_extend()
3102 buses = available_buses / hotplug_bridges; in pci_scan_child_bus_extend()
3103 buses = min(buses, available_buses - used_buses + 1); in pci_scan_child_bus_extend()
3107 max = pci_scan_bridge_extend(bus, dev, cmax, buses, 1); in pci_scan_child_bus_extend()
3115 * number of buses but allow it to grow up to the maximum available in pci_scan_child_bus_extend()
3124 /* Do not allocate more buses than we have room left */ in pci_scan_child_bus_extend()
3138 * Return how far we've got finding sub-buses. in pci_scan_child_bus_extend()
3148 * Scans devices below @bus including subordinate buses. Returns new
3410 * Scan a PCI bus and child buses for new devices, add them,
3435 * Scan a PCI bus and child buses for new devices, add them,