Lines Matching defs:offset

97 				       u8 bus, u8 dev_fn, u8 offset)
104 caddr = u3_agp_cfa0(dev_fn, offset);
106 caddr = u3_agp_cfa1(bus, dev_fn, offset);
113 offset &= 0x07;
114 return hose->cfg_data + offset;
118 int offset, int len, u32 *val)
127 addr = u3_agp_cfg_access(hose, bus->number, devfn, offset);
131 * Note: the caller has already checked that offset is
149 int offset, int len, u32 val)
158 addr = u3_agp_cfg_access(hose, bus->number, devfn, offset);
162 * Note: the caller has already checked that offset is
196 u8 bus, u8 devfn, u8 offset)
201 return hose->cfg_data + u3_ht_cfa0(devfn, offset);
203 return hose->cfg_data + u3_ht_cfa1(bus, devfn, offset);
206 static int u3_ht_root_read_config(struct pci_controller *hose, u8 offset,
212 addr += ((offset & ~3) << 2) + (4 - len - (offset & 3));
229 static int u3_ht_root_write_config(struct pci_controller *hose, u8 offset,
234 addr = hose->cfg_addr + ((offset & ~3) << 2) + (4 - len - (offset & 3));
236 if (offset >= PCI_BASE_ADDRESS_0 && offset < PCI_CAPABILITY_LIST)
255 int offset, int len, u32 *val)
265 return u3_ht_root_read_config(hose, offset, len, val);
267 if (offset > 0xff)
270 addr = u3_ht_cfg_access(hose, bus->number, devfn, offset);
275 * Note: the caller has already checked that offset is
293 int offset, int len, u32 val)
303 return u3_ht_root_write_config(hose, offset, len, val);
305 if (offset > 0xff)
308 addr = u3_ht_cfg_access(hose, bus->number, devfn, offset);
312 * Note: the caller has already checked that offset is
353 u8 bus, u8 dev_fn, int offset)
358 caddr = u4_pcie_cfa0(dev_fn, offset);
360 caddr = u4_pcie_cfa1(bus, dev_fn, offset);
367 offset &= 0x03;
368 return hose->cfg_data + offset;
372 int offset, int len, u32 *val)
380 if (offset >= 0x1000)
382 addr = u4_pcie_cfg_access(hose, bus->number, devfn, offset);
386 * Note: the caller has already checked that offset is
403 int offset, int len, u32 val)
411 if (offset >= 0x1000)
413 addr = u4_pcie_cfg_access(hose, bus->number, devfn, offset);
417 * Note: the caller has already checked that offset is