Lines Matching refs:devfn
40 static int check_args(struct pci_bus *bus, u32 devfn, u32 * bus_num) in check_args() argument
51 if (PCI_SLOT(devfn) >= 10) in check_args()
55 if ((*bus_num >= 64) || (PCI_SLOT(devfn) >= 16)) in check_args()
62 unsigned int devfn, int where) in set_pci_configuration_address() argument
71 config_win0 = (1 << (22 + PCI_SLOT(devfn))) | (5 << 9); in set_pci_configuration_address()
76 config_win0 = (bus_num << 26) | (PCI_SLOT(devfn) << 22) | in set_pci_configuration_address()
84 static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_read() argument
94 if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND) in pci_config_read()
99 if (set_pci_configuration_address(bus_num, devfn, where) < 0) in pci_config_read()
103 *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + in pci_config_read()
129 static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_write() argument
138 if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND) in pci_config_write()
143 if (set_pci_configuration_address(bus_num, devfn, where) < 0) in pci_config_write()
148 *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + in pci_config_write()
169 *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + in pci_config_write()