Lines Matching refs:where

20 static int postprocess_read(u32 data, int where, unsigned int size)  in postprocess_read()  argument
27 ret = (data >> ((where & 3) << 3)) & 0xff; in postprocess_read()
30 ret = (data >> ((where & 3) << 3)) & 0xffff; in postprocess_read()
39 static int preprocess_write(u32 orig_data, u32 val, int where, in preprocess_write() argument
47 ret = (orig_data & ~(0xff << ((where & 3) << 3))) | in preprocess_write()
48 (val << ((where & 3) << 3)); in preprocess_write()
51 ret = (orig_data & ~(0xffff << ((where & 3) << 3))) | in preprocess_write()
52 (val << ((where & 3) << 3)); in preprocess_write()
65 unsigned int devfn, int where) in bcm63xx_setup_cfg_access() argument
72 reg = where >> 2; in bcm63xx_setup_cfg_access()
101 unsigned int devfn, int where, int size, in bcm63xx_do_cfg_read() argument
109 if (bcm63xx_setup_cfg_access(type, busn, devfn, where)) in bcm63xx_do_cfg_read()
116 *val = postprocess_read(data, where, size); in bcm63xx_do_cfg_read()
122 unsigned int devfn, int where, int size, in bcm63xx_do_cfg_write() argument
130 if (bcm63xx_setup_cfg_access(type, busn, devfn, where)) in bcm63xx_do_cfg_write()
135 data = preprocess_write(data, val, where, size); in bcm63xx_do_cfg_write()
148 int where, int size, u32 *val) in bcm63xx_pci_read() argument
158 where, size, val); in bcm63xx_pci_read()
162 int where, int size, u32 val) in bcm63xx_pci_write() argument
172 where, size, val); in bcm63xx_pci_write()
208 static int fake_cb_bridge_read(int where, int size, u32 *val) in fake_cb_bridge_read() argument
214 reg = where >> 2; in fake_cb_bridge_read()
284 *val = postprocess_read(data, where, size); in fake_cb_bridge_read()
291 static int fake_cb_bridge_write(int where, int size, u32 val) in fake_cb_bridge_write() argument
297 ret = fake_cb_bridge_read((where & ~0x3), 4, &data); in fake_cb_bridge_write()
301 data = preprocess_write(data, val, where, size); in fake_cb_bridge_write()
303 reg = where >> 2; in fake_cb_bridge_write()
363 int where, int size, u32 *val) in bcm63xx_cb_read() argument
369 return fake_cb_bridge_read(where, size, val); in bcm63xx_cb_read()
381 where, size, val); in bcm63xx_cb_read()
387 int where, int size, u32 val) in bcm63xx_cb_write() argument
391 return fake_cb_bridge_write(where, size, val); in bcm63xx_cb_write()
399 where, size, val); in bcm63xx_cb_write()
484 int where, int size, u32 *val) in bcm63xx_pcie_read() argument
487 u32 reg = where & ~3; in bcm63xx_pcie_read()
497 *val = postprocess_read(data, where, size); in bcm63xx_pcie_read()
504 int where, int size, u32 val) in bcm63xx_pcie_write() argument
507 u32 reg = where & ~3; in bcm63xx_pcie_write()
518 data = preprocess_write(data, val, where, size); in bcm63xx_pcie_write()