Lines Matching refs:where
20 static u32 emulate_ioc3_cfg(int where, int size) in emulate_ioc3_cfg() argument
22 if (size == 1 && where == 0x3d) in emulate_ioc3_cfg()
24 else if (size == 2 && where == 0x3c) in emulate_ioc3_cfg()
26 else if (size == 4 && where == 0x3c) in emulate_ioc3_cfg()
44 int where, int size, u32 * value) in pci_conf0_read_config() argument
65 addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[where ^ (4 - size)]; in pci_conf0_read_config()
82 if ((where >= 0x14 && where < 0x40) || (where >= 0x48)) { in pci_conf0_read_config()
83 *value = emulate_ioc3_cfg(where, size); in pci_conf0_read_config()
91 addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; in pci_conf0_read_config()
96 shift = ((where & 3) << 3); in pci_conf0_read_config()
104 int where, int size, u32 * value) in pci_conf1_read_config() argument
128 addr = &bridge->b_type1_cfg.c[(fn << 8) | (where ^ (4 - size))]; in pci_conf1_read_config()
145 if ((where >= 0x14 && where < 0x40) || (where >= 0x48)) { in pci_conf1_read_config()
146 *value = emulate_ioc3_cfg(where, size); in pci_conf1_read_config()
155 addr = &bridge->b_type1_cfg.c[(fn << 8) | where]; in pci_conf1_read_config()
160 shift = ((where & 3) << 3); in pci_conf1_read_config()
168 int where, int size, u32 * value) in pci_read_config() argument
171 return pci_conf1_read_config(bus, devfn, where, size, value); in pci_read_config()
173 return pci_conf0_read_config(bus, devfn, where, size, value); in pci_read_config()
177 int where, int size, u32 value) in pci_conf0_write_config() argument
198 addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[where ^ (4 - size)]; in pci_conf0_write_config()
219 if ((where >= 0x14 && where < 0x40) || (where >= 0x48)) in pci_conf0_write_config()
226 addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; in pci_conf0_write_config()
231 shift = ((where & 3) << 3); in pci_conf0_write_config()
243 int where, int size, u32 value) in pci_conf1_write_config() argument
266 addr = &bridge->b_type1_cfg.c[(fn << 8) | (where ^ (4 - size))]; in pci_conf1_write_config()
287 if ((where >= 0x14 && where < 0x40) || (where >= 0x48)) in pci_conf1_write_config()
294 addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; in pci_conf1_write_config()
299 shift = ((where & 3) << 3); in pci_conf1_write_config()
311 int where, int size, u32 value) in pci_write_config() argument
314 return pci_conf1_write_config(bus, devfn, where, size, value); in pci_write_config()
316 return pci_conf0_write_config(bus, devfn, where, size, value); in pci_write_config()