Lines Matching defs:devfn
34 #define PA_PXP_CFA(bus, devfn, off) (((bus) << 20) | ((devfn) << 12) | (off))
36 static inline int pa_pxp_offset_valid(u8 bus, u8 devfn, int offset)
42 if (bus == 0 && devfn == 0)
49 u8 bus, u8 devfn, int offset)
51 return hose->cfg_data + PA_PXP_CFA(bus, devfn, offset);
54 static int pa_pxp_read_config(struct pci_bus *bus, unsigned int devfn,
64 if (!pa_pxp_offset_valid(bus->number, devfn, offset))
67 addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset);
88 static int pa_pxp_write_config(struct pci_bus *bus, unsigned int devfn,
98 if (!pa_pxp_offset_valid(bus->number, devfn, offset))
101 addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset);