Lines Matching refs:where

55 #define CONFIG_CMD(bus, devfn, where) \  argument
56 (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3))
83 int where, u32 *_value) in pci_ampci_read_config_byte() argument
88 value = BRIDGEREGB(where); in pci_ampci_read_config_byte()
89 __pcbdebug("=> %02hx", &BRIDGEREGL(where), value); in pci_ampci_read_config_byte()
91 CONFIG_ADDRESS = CONFIG_CMD(bus, devfn, where); in pci_ampci_read_config_byte()
93 value = CONFIG_DATAB(where); in pci_ampci_read_config_byte()
95 __pcidebug("=> %02hx", bus, devfn, where, value); in pci_ampci_read_config_byte()
103 int where, u32 *_value) in pci_ampci_read_config_word() argument
108 value = BRIDGEREGW(where); in pci_ampci_read_config_word()
109 __pcbdebug("=> %04hx", &BRIDGEREGL(where), value); in pci_ampci_read_config_word()
111 CONFIG_ADDRESS = CONFIG_CMD(bus, devfn, where); in pci_ampci_read_config_word()
113 value = CONFIG_DATAW(where); in pci_ampci_read_config_word()
115 __pcidebug("=> %04hx", bus, devfn, where, value); in pci_ampci_read_config_word()
123 int where, u32 *_value) in pci_ampci_read_config_dword() argument
128 value = BRIDGEREGL(where); in pci_ampci_read_config_dword()
129 __pcbdebug("=> %08x", &BRIDGEREGL(where), value); in pci_ampci_read_config_dword()
131 CONFIG_ADDRESS = CONFIG_CMD(bus, devfn, where); in pci_ampci_read_config_dword()
133 value = CONFIG_DATAL(where); in pci_ampci_read_config_dword()
135 __pcidebug("=> %08x", bus, devfn, where, value); in pci_ampci_read_config_dword()
143 int where, u8 value) in pci_ampci_write_config_byte() argument
148 __pcbdebug("<= %02x", &BRIDGEREGB(where), value); in pci_ampci_write_config_byte()
149 BRIDGEREGB(where) = value; in pci_ampci_write_config_byte()
154 __pcidebug("<= %02x", bus, devfn, where, value); in pci_ampci_write_config_byte()
155 CONFIG_ADDRESS = CONFIG_CMD(bus, devfn, where); in pci_ampci_write_config_byte()
157 CONFIG_DATAB(where) = value; in pci_ampci_write_config_byte()
163 int where, u16 value) in pci_ampci_write_config_word() argument
168 __pcbdebug("<= %04hx", &BRIDGEREGW(where), value); in pci_ampci_write_config_word()
169 BRIDGEREGW(where) = value; in pci_ampci_write_config_word()
172 __pcidebug("<= %04hx", bus, devfn, where, value); in pci_ampci_write_config_word()
173 CONFIG_ADDRESS = CONFIG_CMD(bus, devfn, where); in pci_ampci_write_config_word()
175 CONFIG_DATAW(where) = value; in pci_ampci_write_config_word()
181 int where, u32 value) in pci_ampci_write_config_dword() argument
186 __pcbdebug("<= %08x", &BRIDGEREGL(where), value); in pci_ampci_write_config_dword()
187 BRIDGEREGL(where) = value; in pci_ampci_write_config_dword()
190 __pcidebug("<= %08x", bus, devfn, where, value); in pci_ampci_write_config_dword()
191 CONFIG_ADDRESS = CONFIG_CMD(bus, devfn, where); in pci_ampci_write_config_dword()
193 CONFIG_DATAL(where) = value; in pci_ampci_write_config_dword()
199 int where, int size, u32 *val) in pci_ampci_read_config() argument
203 return pci_ampci_read_config_byte(bus, devfn, where, val); in pci_ampci_read_config()
205 return pci_ampci_read_config_word(bus, devfn, where, val); in pci_ampci_read_config()
207 return pci_ampci_read_config_dword(bus, devfn, where, val); in pci_ampci_read_config()
215 int where, int size, u32 val) in pci_ampci_write_config() argument
219 return pci_ampci_write_config_byte(bus, devfn, where, val); in pci_ampci_write_config()
221 return pci_ampci_write_config_word(bus, devfn, where, val); in pci_ampci_write_config()
223 return pci_ampci_write_config_dword(bus, devfn, where, val); in pci_ampci_write_config()