Lines Matching refs:max
257 static int cb_scan_bridge(struct pci_bus *bus, struct pci_dev * dev, int max, int irq) in cb_scan_bridge() argument
275 child = pci_add_new_bus(bus, dev, ++max); in cb_scan_bridge()
286 max = cb_scan_new_bus(child, irq); in cb_scan_bridge()
293 max += 3; in cb_scan_bridge()
298 child->subordinate = max; in cb_scan_bridge()
299 pci_write_config_byte(dev, PCI_SUBORDINATE_BUS, max); in cb_scan_bridge()
302 return max; in cb_scan_bridge()
307 unsigned int devfn, max; in cb_scan_new_bus() local
315 max = bus->secondary; in cb_scan_new_bus()
357 max = cb_scan_bridge(bus, dev, max, irq); in cb_scan_new_bus()
367 printk("Bus scan for %02x returning with max=%02x\n", bus->number, max); in cb_scan_new_bus()
368 return max; in cb_scan_new_bus()
469 int max = bus->secondary; in cb_alloc() local
505 max = cb_scan_bridge(bus, dev, max, irq); in cb_alloc()