Lines Matching refs:where
36 unsigned int devfn, int where) in set_pci_configuration_address() argument
42 if (PCI_SLOT(devfn) < 11 || where > 0xff) in set_pci_configuration_address()
46 (where & 0xfc), PCICONFAREG); in set_pci_configuration_address()
51 if (where > 0xff) in set_pci_configuration_address()
55 (where & 0xfc) | 1U, PCICONFAREG); in set_pci_configuration_address()
61 static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_read() argument
67 if (set_pci_configuration_address(bus->number, devfn, where) < 0) in pci_config_read()
74 *val = (data >> ((where & 3) << 3)) & 0xffU; in pci_config_read()
77 *val = (data >> ((where & 2) << 3)) & 0xffffU; in pci_config_read()
89 static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_write() argument
95 if (set_pci_configuration_address(bus->number, devfn, where) < 0) in pci_config_write()
102 shift = (where & 3) << 3; in pci_config_write()
107 shift = (where & 2) << 3; in pci_config_write()