Lines Matching refs:devfn
39 static int check_args(struct pci_bus *bus, u32 devfn, u32 * bus_num) in check_args() argument
49 if (PCI_SLOT(devfn) >= 10) in check_args()
53 if ((*bus_num >= 64) || (PCI_SLOT(devfn) >= 16)) in check_args()
60 unsigned int devfn, int where) in set_pci_configuration_address() argument
69 config_win0 = (1 << (22 + PCI_SLOT(devfn))) | (5 << 9); in set_pci_configuration_address()
74 config_win0 = (bus_num << 26) | (PCI_SLOT(devfn) << 22) | in set_pci_configuration_address()
82 static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_read() argument
92 if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND) in pci_config_read()
97 if (set_pci_configuration_address(bus_num, devfn, where) < 0) in pci_config_read()
101 *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + in pci_config_read()
127 static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_write() argument
136 if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND) in pci_config_write()
141 if (set_pci_configuration_address(bus_num, devfn, where) < 0) in pci_config_write()
146 *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + in pci_config_write()
167 *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + in pci_config_write()