Lines Matching full:where
23 unsigned int devfn, int where) in set_pci_configuration_address() argument
29 if (PCI_SLOT(devfn) < 11 || where > 0xff) in set_pci_configuration_address()
33 (where & 0xfc), PCICONFAREG); in set_pci_configuration_address()
38 if (where > 0xff) in set_pci_configuration_address()
42 (where & 0xfc) | 1U, PCICONFAREG); in set_pci_configuration_address()
48 static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_read() argument
54 if (set_pci_configuration_address(bus->number, devfn, where) < 0) in pci_config_read()
61 *val = (data >> ((where & 3) << 3)) & 0xffU; in pci_config_read()
64 *val = (data >> ((where & 2) << 3)) & 0xffffU; in pci_config_read()
76 static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_write() argument
82 if (set_pci_configuration_address(bus->number, devfn, where) < 0) in pci_config_write()
89 shift = (where & 3) << 3; in pci_config_write()
94 shift = (where & 2) << 3; in pci_config_write()