Lines Matching refs:where

173 …ne CONFIG_CMD(bus, device_fn, where) (0x80000000 | (((unsigned int)bus) << 16) | (((unsigned int)d…  argument
176 int where, u32 *value) in pcic_read_config_dword() argument
188 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr); in pcic_read_config_dword()
199 *value = readl(pcic->pcic_config_space_data + (where&4)); in pcic_read_config_dword()
213 int where, int size, u32 *val) in pcic_read_config() argument
220 pcic_read_config_dword(bus->number, devfn, where&~3, &v); in pcic_read_config()
221 *val = 0xff & (v >> (8*(where & 3))); in pcic_read_config()
224 if (where&1) return -EINVAL; in pcic_read_config()
225 pcic_read_config_dword(bus->number, devfn, where&~3, &v); in pcic_read_config()
226 *val = 0xffff & (v >> (8*(where & 3))); in pcic_read_config()
229 if (where&3) return -EINVAL; in pcic_read_config()
230 pcic_read_config_dword(bus->number, devfn, where&~3, val); in pcic_read_config()
237 int where, u32 value) in pcic_write_config_dword() argument
245 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr); in pcic_write_config_dword()
246 writel(value, pcic->pcic_config_space_data + (where&4)); in pcic_write_config_dword()
252 int where, int size, u32 val) in pcic_write_config() argument
259 pcic_read_config_dword(bus->number, devfn, where&~3, &v); in pcic_write_config()
260 v = (v & ~(0xff << (8*(where&3)))) | in pcic_write_config()
261 ((0xff&val) << (8*(where&3))); in pcic_write_config()
262 return pcic_write_config_dword(bus->number, devfn, where&~3, v); in pcic_write_config()
264 if (where&1) return -EINVAL; in pcic_write_config()
265 pcic_read_config_dword(bus->number, devfn, where&~3, &v); in pcic_write_config()
266 v = (v & ~(0xffff << (8*(where&3)))) | in pcic_write_config()
267 ((0xffff&val) << (8*(where&3))); in pcic_write_config()
268 return pcic_write_config_dword(bus->number, devfn, where&~3, v); in pcic_write_config()
270 if (where&3) return -EINVAL; in pcic_write_config()
271 return pcic_write_config_dword(bus->number, devfn, where, val); in pcic_write_config()