Lines Matching full:where

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