Lines Matching refs:reg
179 static uint32_t *hdr_addr(const uint32_t *hdr, int reg) in hdr_addr() argument
194 addr = (uint32_t)hdr + reg + (bar_probing ? -0x10 : 0x20); in hdr_addr()
201 unsigned int devfn, int reg, int len, uint32_t *value) in pci_olpc_read() argument
209 return pci_direct_conf1.read(seg, bus, devfn, reg, len, value); in pci_olpc_read()
215 if (reg >= 0x70) in pci_olpc_read()
220 addr = hdr_addr(is_lx ? lxnb_hdr : gxnb_hdr, reg); in pci_olpc_read()
223 addr = hdr_addr(is_lx ? lxfb_hdr : gxfb_hdr, reg); in pci_olpc_read()
226 addr = is_lx ? hdr_addr(aes_hdr, reg) : &ff_loc; in pci_olpc_read()
229 addr = hdr_addr(isa_hdr, reg); in pci_olpc_read()
232 addr = hdr_addr(ac97_hdr, reg); in pci_olpc_read()
235 addr = hdr_addr(ohci_hdr, reg); in pci_olpc_read()
238 addr = hdr_addr(ehci_hdr, reg); in pci_olpc_read()
263 unsigned int devfn, int reg, int len, uint32_t value) in pci_olpc_write() argument
269 return pci_direct_conf1.write(seg, bus, devfn, reg, len, value); in pci_olpc_write()
281 if ((reg >= 0x10) && (reg < 0x2c)) { in pci_olpc_write()
290 if ((reg != PCI_ROM_ADDRESS) && (reg != PCI_COMMAND_MASTER) && in pci_olpc_write()
291 (reg != PCI_LATENCY_TIMER) && in pci_olpc_write()
292 (reg != PCI_CACHE_LINE_SIZE) && (reg != 0x44)) in pci_olpc_write()
294 " %x reg %x value %x\n", devfn, reg, value); in pci_olpc_write()