Lines Matching refs:where
25 #define CONFIG_CMD(bus, devfn, where) \ argument
26 (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3))
29 puv3_read_config(struct pci_bus *bus, unsigned int devfn, int where, in puv3_read_config() argument
32 writel(CONFIG_CMD(bus, devfn, where), PCICFG_ADDR); in puv3_read_config()
35 *value = (readl(PCICFG_DATA) >> ((where & 3) * 8)) & 0xFF; in puv3_read_config()
38 *value = (readl(PCICFG_DATA) >> ((where & 2) * 8)) & 0xFFFF; in puv3_read_config()
48 puv3_write_config(struct pci_bus *bus, unsigned int devfn, int where, in puv3_write_config() argument
51 writel(CONFIG_CMD(bus, devfn, where), PCICFG_ADDR); in puv3_write_config()
54 writel((readl(PCICFG_DATA) & ~FMASK(8, (where&3)*8)) in puv3_write_config()
55 | FIELD(value, 8, (where&3)*8), PCICFG_DATA); in puv3_write_config()
58 writel((readl(PCICFG_DATA) & ~FMASK(16, (where&2)*8)) in puv3_write_config()
59 | FIELD(value, 16, (where&2)*8), PCICFG_DATA); in puv3_write_config()