Lines Matching refs:where
78 unsigned char where, u32 * data)
110 config = cfg_addr | (function << 8) | (where & ~0x3);
122 access_type, bus, device, where, *data, config);
142 static int read_config_byte(struct pci_dev *dev, int where, u8 * val)
147 ret = config_access(PCI_ACCESS_READ, dev, where, &data);
148 if (where & 1) data >>= 8;
149 if (where & 2) data >>= 16;
155 static int read_config_word(struct pci_dev *dev, int where, u16 * val)
160 ret = config_access(PCI_ACCESS_READ, dev, where, &data);
161 if (where & 2) data >>= 16;
166 static int read_config_dword(struct pci_dev *dev, int where, u32 * val)
170 ret = config_access(PCI_ACCESS_READ, dev, where, val);
175 static int write_config_byte(struct pci_dev *dev, int where, u8 val)
179 if (config_access(PCI_ACCESS_READ, dev, where, &data))
182 data = (data & ~(0xff << ((where & 3) << 3))) |
183 (val << ((where & 3) << 3));
185 if (config_access(PCI_ACCESS_WRITE, dev, where, &data))
191 static int write_config_word(struct pci_dev *dev, int where, u16 val)
195 if (where & 1)
198 if (config_access(PCI_ACCESS_READ, dev, where, &data))
201 data = (data & ~(0xffff << ((where & 3) << 3))) |
202 (val << ((where & 3) << 3));
204 if (config_access(PCI_ACCESS_WRITE, dev, where, &data))
211 static int write_config_dword(struct pci_dev *dev, int where, u32 val)
213 if (where & 3)
216 if (config_access(PCI_ACCESS_WRITE, dev, where, &val))