Lines Matching refs:max
464 static void pci_fixup_parent_subordinate_busnr(struct pci_bus *child, int max)
473 while (parent->parent && parent->subordinate < max) {
474 parent->subordinate = max;
475 pci_write_config_byte(parent->self, PCI_SUBORDINATE_BUS, max);
492 int pci_scan_bridge(struct pci_bus *bus, struct pci_dev * dev, int max, int pass)
540 if (cmax > max)
541 max = cmax;
542 if (child->subordinate > max)
543 max = child->subordinate;
567 if (pci_find_bus(pci_domain_nr(bus), max+1))
569 child = pci_add_new_bus(bus, dev, ++max);
597 pci_fixup_parent_subordinate_busnr(child, max);
599 max = pci_scan_child_bus(child);
602 * the real value of max.
604 pci_fixup_parent_subordinate_busnr(child, max);
614 max+i+1))
618 (parent->subordinate > max) &&
619 (parent->subordinate <= max+i)) {
634 max += i;
635 pci_fixup_parent_subordinate_busnr(child, max);
640 child->subordinate = max;
641 pci_write_config_byte(dev, PCI_SUBORDINATE_BUS, max);
667 return max;
1012 unsigned int devfn, pass, max = bus->secondary;
1031 max = pci_scan_bridge(bus, dev, max, pass);
1041 pr_debug("PCI: Bus scan for %04x:%02x returning with max=%02x\n",
1042 pci_domain_nr(bus), bus->number, max);
1043 return max;
1048 unsigned int max;
1050 max = pci_scan_child_bus(bus);
1057 return max;