Lines Matching refs:where
84 unsigned char where, u32 * data)
125 ((1<<device)<<11) | (function << 8) | (where & ~0x3);
136 access_type, bus, device, where, *data, config);
154 static int read_config_byte(struct pci_dev *dev, int where, u8 * val)
159 ret = config_access(PCI_ACCESS_READ, dev, where, &data);
160 if (where & 1) data >>= 8;
161 if (where & 2) data >>= 16;
167 static int read_config_word(struct pci_dev *dev, int where, u16 * val)
172 ret = config_access(PCI_ACCESS_READ, dev, where, &data);
173 if (where & 2) data >>= 16;
178 static int read_config_dword(struct pci_dev *dev, int where, u32 * val)
182 ret = config_access(PCI_ACCESS_READ, dev, where, val);
187 static int write_config_byte(struct pci_dev *dev, int where, u8 val)
191 if (config_access(PCI_ACCESS_READ, dev, where, &data))
194 data = (data & ~(0xff << ((where & 3) << 3))) |
195 (val << ((where & 3) << 3));
197 if (config_access(PCI_ACCESS_WRITE, dev, where, &data))
203 static int write_config_word(struct pci_dev *dev, int where, u16 val)
207 if (where & 1)
210 if (config_access(PCI_ACCESS_READ, dev, where, &data))
213 data = (data & ~(0xffff << ((where & 3) << 3))) |
214 (val << ((where & 3) << 3));
216 if (config_access(PCI_ACCESS_WRITE, dev, where, &data))
223 static int write_config_dword(struct pci_dev *dev, int where, u32 val)
225 if (where & 3)
228 if (config_access(PCI_ACCESS_WRITE, dev, where, &val))