Lines Matching refs:offset
36 static inline int pa_pxp_offset_valid(u8 bus, u8 devfn, int offset)
39 * well, so allow larger offset. It's really a two-function device but the
43 return offset < 8192;
45 return offset < 4096;
49 u8 bus, u8 devfn, int offset)
51 return hose->cfg_data + PA_PXP_CFA(bus, devfn, offset);
67 int offset, int len, u32 *val)
74 if (!is_root_port(bus->number, devfn) || !is_5945_reg(offset))
79 addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset & ~0x3);
80 byte = offset & 0x3;
110 int offset, int len, u32 *val)
119 if (!pa_pxp_offset_valid(bus->number, devfn, offset))
122 if (workaround_5945(bus, devfn, offset, len, val))
125 addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset);
128 * Note: the caller has already checked that offset is
147 int offset, int len, u32 val)
156 if (!pa_pxp_offset_valid(bus->number, devfn, offset))
159 addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset);
162 * Note: the caller has already checked that offset is
234 void __iomem *pasemi_pci_getcfgaddr(struct pci_dev *dev, int offset)
240 return (void __iomem *)pa_pxp_cfg_addr(hose, dev->bus->number, dev->devfn, offset);