Lines Matching defs:where
63 int where)
69 pci_cfg_addr(bus->number, devfn, where & ~3));
75 int where, u32 data)
80 pci_cfg_addr(bus->number, devfn, where & ~3));
85 int where, int size, u32 *val)
89 if ((size == 2) && (where & 1))
91 else if ((size == 4) && (where & 3))
94 data = pci_cfg_read_32bit(bus, devfn, where);
97 *val = (data >> ((where & 3) << 3)) & 0xff;
99 *val = (data >> ((where & 3) << 3)) & 0xffff;
108 int where, int size, u32 val)
112 if ((size == 2) && (where & 1))
114 else if ((size == 4) && (where & 3))
117 data = pci_cfg_read_32bit(bus, devfn, where);
120 data = (data & ~(0xff << ((where & 3) << 3))) |
121 (val << ((where & 3) << 3));
123 data = (data & ~(0xffff << ((where & 3) << 3))) |
124 (val << ((where & 3) << 3));
128 pci_cfg_write_32bit(bus, devfn, where, data);