Lines Matching refs:bus_num
43 static int check_args(struct pci_bus *bus, u32 devfn, u32 * bus_num)
47 *bus_num = bus->number;
48 db_assert(bus_num != 0);
50 *bus_num = 0;
52 if (*bus_num == 0) {
58 if ((*bus_num >= 64) || (PCI_SLOT(devfn) >= 16))
64 static inline int set_pci_configuration_address(unsigned char bus_num,
70 if (bus_num == 0)
79 config_win0 = (bus_num << 26) | (PCI_SLOT(devfn) << 22) |
90 u32 bus_num;
97 if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND)
102 if (set_pci_configuration_address(bus_num, devfn, where) < 0)
135 u32 bus_num;
141 if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND)
146 if (set_pci_configuration_address(bus_num, devfn, where) < 0)