Lines Matching refs:where

174 …ne CONFIG_CMD(bus, device_fn, where) (0x80000000 | (((unsigned int)bus) << 16) | (((unsigned int)d…  argument
177 int where, u32 *value) in pcic_read_config_dword() argument
189 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr); in pcic_read_config_dword()
200 *value = readl(pcic->pcic_config_space_data + (where&4)); in pcic_read_config_dword()
214 int where, int size, u32 *val) in pcic_read_config() argument
221 pcic_read_config_dword(bus->number, devfn, where&~3, &v); in pcic_read_config()
222 *val = 0xff & (v >> (8*(where & 3))); in pcic_read_config()
225 if (where&1) return -EINVAL; in pcic_read_config()
226 pcic_read_config_dword(bus->number, devfn, where&~3, &v); in pcic_read_config()
227 *val = 0xffff & (v >> (8*(where & 3))); in pcic_read_config()
230 if (where&3) return -EINVAL; in pcic_read_config()
231 pcic_read_config_dword(bus->number, devfn, where&~3, val); in pcic_read_config()
238 int where, u32 value) in pcic_write_config_dword() argument
246 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr); in pcic_write_config_dword()
247 writel(value, pcic->pcic_config_space_data + (where&4)); in pcic_write_config_dword()
253 int where, int size, u32 val) in pcic_write_config() argument
260 pcic_read_config_dword(bus->number, devfn, where&~3, &v); in pcic_write_config()
261 v = (v & ~(0xff << (8*(where&3)))) | in pcic_write_config()
262 ((0xff&val) << (8*(where&3))); in pcic_write_config()
263 return pcic_write_config_dword(bus->number, devfn, where&~3, v); in pcic_write_config()
265 if (where&1) return -EINVAL; in pcic_write_config()
266 pcic_read_config_dword(bus->number, devfn, where&~3, &v); in pcic_write_config()
267 v = (v & ~(0xffff << (8*(where&3)))) | in pcic_write_config()
268 ((0xffff&val) << (8*(where&3))); in pcic_write_config()
269 return pcic_write_config_dword(bus->number, devfn, where&~3, v); in pcic_write_config()
271 if (where&3) return -EINVAL; in pcic_write_config()
272 return pcic_write_config_dword(bus->number, devfn, where, val); in pcic_write_config()