Lines Matching defs:where
59 #define CONFIG_CMD(bus, dev, where) \
60 (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3))
98 static int pci_frv_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size,
104 _value = __get_PciBridgeDataL(where & ~3);
107 __set_PciCfgAddr(CONFIG_CMD(bus, devfn, where));
108 _value = __get_PciCfgDataL(where & ~3);
113 _value = _value >> ((where & 3) * 8);
117 _value = _value >> ((where & 2) * 8);
131 static int pci_frv_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size,
137 __set_PciBridgeDataB(where, value);
140 __set_PciCfgAddr(CONFIG_CMD(bus, devfn, where));
141 __set_PciCfgDataB(where, value);
147 __set_PciBridgeDataW(where, value);
150 __set_PciCfgAddr(CONFIG_CMD(bus, devfn, where));
151 __set_PciCfgDataW(where, value);
157 __set_PciBridgeDataL(where, value);
160 __set_PciCfgAddr(CONFIG_CMD(bus, devfn, where));
161 __set_PciCfgDataL(where, value);