Lines Matching defs:devfn
124 #define MACRISC_CFA0(devfn, off) \
129 #define MACRISC_CFA1(bus, devfn, off) \
131 |(((unsigned int)(devfn)) << 8) \
173 static void __iomem *chaos_map_bus(struct pci_bus *bus, unsigned int devfn,
181 np = of_pci_find_child_device(bus->dev.of_node, devfn);
194 return macrisc_cfg_map_bus(bus, devfn, offset);
230 struct pci_bus *bus, unsigned int devfn)
242 else if (devfn == 0)
247 if (PCI_DN(dn) && PCI_DN(dn)->devfn == devfn)
263 #define U3_HT_CFA0(devfn, off) \
264 ((((unsigned int)devfn) << 8) | offset)
265 #define U3_HT_CFA1(bus, devfn, off) \
266 (U3_HT_CFA0(devfn, off) \
271 u8 devfn, u8 offset, int *swap)
275 if (devfn != 0)
276 return hose->cfg_data + U3_HT_CFA0(devfn, offset);
280 return hose->cfg_data + U3_HT_CFA1(bus, devfn, offset);
283 static int u3_ht_read_config(struct pci_bus *bus, unsigned int devfn,
295 addr = u3_ht_cfg_access(hose, bus->number, devfn, offset, &swap);
299 switch (u3_ht_skip_device(hose, bus, devfn)) {
334 static int u3_ht_write_config(struct pci_bus *bus, unsigned int devfn,
346 addr = u3_ht_cfg_access(hose, bus->number, devfn, offset, &swap);
350 switch (u3_ht_skip_device(hose, bus, devfn)) {
383 #define U4_PCIE_CFA0(devfn, off) \
389 #define U4_PCIE_CFA1(bus, devfn, off) \
391 |(((unsigned int)(devfn)) << 8) \
495 u8 bus, devfn;
503 if (pci_device_from_OF_node(p2pbridge, &bus, &devfn) < 0) {
515 if (early_read_config_word(hose, bus, devfn,
522 early_write_config_word(hose, bus, devfn, PCI_BRIDGE_CONTROL, val);
530 unsigned char bus, devfn;
539 if (pci_device_from_OF_node(np, &bus, &devfn) == 0) {
547 early_read_config_word(hose, bus, devfn, PCI_COMMAND, &cmd);
550 early_write_config_word(hose, bus, devfn, PCI_COMMAND, cmd);
570 u8 bus, devfn;
585 devfn = (prop[0] >> 8) & 0xff;
587 if (PCI_FUNC(devfn) != 0)
592 early_read_config_dword(hose, bus, devfn, 0xe4, &data);
597 early_write_config_dword(hose, bus, devfn, 0xe4, data);
1152 if (PCI_FUNC(dev->devfn) > 0) {