Lines Matching defs:where

48 				unsigned char where, u32 *data)
54 PCI_CFG_SET(bus->number, slot, func, where);
73 int where, u8 *val)
78 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data);
79 *val = (data >> ((where & 3) << 3)) & 0xff;
84 int where, u16 *val)
89 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data);
90 *val = (data >> ((where & 3) << 3)) & 0xffff;
95 int where, u32 *val)
108 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, val);
114 if (where == PCI_VENDOR_ID) {
129 write_config_byte(struct pci_bus *bus, unsigned int devfn, int where,
134 if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data))
137 data = (data & ~(0xff << ((where & 3) << 3))) |
138 (val << ((where & 3) << 3));
140 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data))
148 write_config_word(struct pci_bus *bus, unsigned int devfn, int where,
153 if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data))
156 data = (data & ~(0xffff << ((where & 3) << 3))) |
157 (val << ((where & 3) << 3));
159 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data))
168 write_config_dword(struct pci_bus *bus, unsigned int devfn, int where,
171 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &val))
178 int where, int size, u32 *val)
182 return read_config_byte(bus, devfn, where, (u8 *) val);
184 return read_config_word(bus, devfn, where, (u16 *) val);
186 return read_config_dword(bus, devfn, where, val);
191 int where, int size, u32 val)
195 return write_config_byte(bus, devfn, where, (u8) val);
197 return write_config_word(bus, devfn, where, (u16) val);
199 return write_config_dword(bus, devfn, where, val);