Lines Matching refs:where
81 unsigned char where, u32 * data)
92 config = PCI_CONFIG_BASE | (where & ~0x3);
102 access_type, bus, dev_fn, where, *data, config);
115 static int read_config_byte(struct pci_dev *dev, int where, u8 * val)
120 ret = config_access(PCI_ACCESS_READ, dev, where, &data);
126 static int read_config_word(struct pci_dev *dev, int where, u16 * val)
131 ret = config_access(PCI_ACCESS_READ, dev, where, &data);
136 static int read_config_dword(struct pci_dev *dev, int where, u32 * val)
140 ret = config_access(PCI_ACCESS_READ, dev, where, val);
145 static int write_config_byte(struct pci_dev *dev, int where, u8 val)
149 if (config_access(PCI_ACCESS_READ, dev, where, &data))
152 data = (data & ~(0xff << ((where & 3) << 3))) |
153 (val << ((where & 3) << 3));
155 if (config_access(PCI_ACCESS_WRITE, dev, where, &data))
161 static int write_config_word(struct pci_dev *dev, int where, u16 val)
165 if (where & 1)
168 if (config_access(PCI_ACCESS_READ, dev, where, &data))
171 data = (data & ~(0xffff << ((where & 3) << 3))) |
172 (val << ((where & 3) << 3));
174 if (config_access(PCI_ACCESS_WRITE, dev, where, &data))
181 static int write_config_dword(struct pci_dev *dev, int where, u32 val)
183 if (where & 3)
186 if (config_access(PCI_ACCESS_WRITE, dev, where, &val))