Lines Matching defs:devfn

123 #define MACRISC_CFA0(devfn, off)	\
128 #define MACRISC_CFA1(bus, devfn, off) \
130 |(((unsigned int)(devfn)) << 8) \
172 static void __iomem *chaos_map_bus(struct pci_bus *bus, unsigned int devfn,
180 np = of_pci_find_child_device(bus->dev.of_node, devfn);
193 return macrisc_cfg_map_bus(bus, devfn, offset);
229 struct pci_bus *bus, unsigned int devfn)
241 else if (devfn == 0)
246 if (PCI_DN(dn) && PCI_DN(dn)->devfn == devfn)
262 #define U3_HT_CFA0(devfn, off) \
263 ((((unsigned int)devfn) << 8) | offset)
264 #define U3_HT_CFA1(bus, devfn, off) \
265 (U3_HT_CFA0(devfn, off) \
270 u8 devfn, u8 offset, int *swap)
274 if (devfn != 0)
275 return hose->cfg_data + U3_HT_CFA0(devfn, offset);
279 return hose->cfg_data + U3_HT_CFA1(bus, devfn, offset);
282 static int u3_ht_read_config(struct pci_bus *bus, unsigned int devfn,
294 addr = u3_ht_cfg_access(hose, bus->number, devfn, offset, &swap);
298 switch (u3_ht_skip_device(hose, bus, devfn)) {
333 static int u3_ht_write_config(struct pci_bus *bus, unsigned int devfn,
345 addr = u3_ht_cfg_access(hose, bus->number, devfn, offset, &swap);
349 switch (u3_ht_skip_device(hose, bus, devfn)) {
382 #define U4_PCIE_CFA0(devfn, off) \
388 #define U4_PCIE_CFA1(bus, devfn, off) \
390 |(((unsigned int)(devfn)) << 8) \
494 u8 bus, devfn;
502 if (pci_device_from_OF_node(p2pbridge, &bus, &devfn) < 0) {
514 if (early_read_config_word(hose, bus, devfn,
521 early_write_config_word(hose, bus, devfn, PCI_BRIDGE_CONTROL, val);
529 unsigned char bus, devfn;
538 if (pci_device_from_OF_node(np, &bus, &devfn) == 0) {
546 early_read_config_word(hose, bus, devfn, PCI_COMMAND, &cmd);
549 early_write_config_word(hose, bus, devfn, PCI_COMMAND, cmd);
569 u8 bus, devfn;
584 devfn = (prop[0] >> 8) & 0xff;
586 if (PCI_FUNC(devfn) != 0)
591 early_read_config_dword(hose, bus, devfn, 0xe4, &data);
596 early_write_config_dword(hose, bus, devfn, 0xe4, data);
1147 if (PCI_FUNC(dev->devfn) > 0) {