Lines Matching defs:where
68 struct pci_bus *bus, unsigned int devfn, unsigned int where, u32 *data)
85 (where & ~0x3);
115 static int amazon_pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val)
119 if (amazon_pci_config_access(PCI_ACCESS_READ, bus, devfn, where, &data))
123 *val = (data >> ((where & 3) << 3)) & 0xff;
125 *val = (data >> ((where & 3) << 3)) & 0xffff;
133 static int amazon_pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val)
141 if (amazon_pci_config_access(PCI_ACCESS_READ, bus, devfn, where, &data))
145 data = (data & ~(0xff << ((where & 3) << 3))) |
146 (val << ((where & 3) << 3));
148 data = (data & ~(0xffff << ((where & 3) << 3))) |
149 (val << ((where & 3) << 3));
152 if (amazon_pci_config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data))