Lines Matching refs:devfn
26 static int check_args(struct pci_bus *bus, u32 devfn, u32 * bus_num) in check_args() argument
36 if (PCI_SLOT(devfn) >= 10) in check_args()
40 if ((*bus_num >= 64) || (PCI_SLOT(devfn) >= 16)) in check_args()
47 unsigned int devfn, int where) in set_pci_configuration_address() argument
56 config_win0 = (1 << (22 + PCI_SLOT(devfn))) | (5 << 9); in set_pci_configuration_address()
61 config_win0 = (bus_num << 26) | (PCI_SLOT(devfn) << 22) | in set_pci_configuration_address()
69 static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_read() argument
79 if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND) in pci_config_read()
84 if (set_pci_configuration_address(bus_num, devfn, where) < 0) in pci_config_read()
88 *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + in pci_config_read()
114 static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_write() argument
123 if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND) in pci_config_write()
128 if (set_pci_configuration_address(bus_num, devfn, where) < 0) in pci_config_write()
133 *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + in pci_config_write()
154 *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + in pci_config_write()