Lines Matching refs:addr
86 unsigned long addr; in mk_conf_addr() local
96 addr = (bus << 16) | (device_fn << 8) | where; in mk_conf_addr()
97 addr |= IRONGATE_CONF; in mk_conf_addr()
99 *pci_addr = addr; in mk_conf_addr()
100 DBG_CFG(("mk_conf_addr: returning pci_addr 0x%lx\n", addr)); in mk_conf_addr()
107 unsigned long addr; in irongate_read_config_byte() local
110 if (mk_conf_addr(dev, where, &addr, &type1)) in irongate_read_config_byte()
113 *value = __kernel_ldbu(*(vucp)addr); in irongate_read_config_byte()
120 unsigned long addr; in irongate_read_config_word() local
123 if (mk_conf_addr(dev, where, &addr, &type1)) in irongate_read_config_word()
126 *value = __kernel_ldwu(*(vusp)addr); in irongate_read_config_word()
133 unsigned long addr; in irongate_read_config_dword() local
136 if (mk_conf_addr(dev, where, &addr, &type1)) in irongate_read_config_dword()
139 *value = *(vuip)addr; in irongate_read_config_dword()
146 unsigned long addr; in irongate_write_config_byte() local
149 if (mk_conf_addr(dev, where, &addr, &type1)) in irongate_write_config_byte()
152 __kernel_stb(value, *(vucp)addr); in irongate_write_config_byte()
154 __kernel_ldbu(*(vucp)addr); in irongate_write_config_byte()
161 unsigned long addr; in irongate_write_config_word() local
164 if (mk_conf_addr(dev, where, &addr, &type1)) in irongate_write_config_word()
167 __kernel_stw(value, *(vusp)addr); in irongate_write_config_word()
169 __kernel_ldwu(*(vusp)addr); in irongate_write_config_word()
176 unsigned long addr; in irongate_write_config_dword() local
179 if (mk_conf_addr(dev, where, &addr, &type1)) in irongate_write_config_dword()
182 *(vuip)addr = value; in irongate_write_config_dword()
184 *(vuip)addr; in irongate_write_config_dword()
341 #define GET_PAGE_DIR_OFF(addr) (addr >> 22) argument
342 #define GET_PAGE_DIR_IDX(addr) (GET_PAGE_DIR_OFF(addr)) argument
344 #define GET_GATT_OFF(addr) ((addr & 0x003ff000) >> 12) argument
345 #define GET_GATT(addr) (gatt_pages[GET_PAGE_DIR_IDX(addr)]) argument
348 irongate_ioremap(unsigned long addr, unsigned long size) in irongate_ioremap() argument
357 return addr + IRONGATE_MEM; in irongate_ioremap()
369 if (addr >= gart_bus_addr && addr + size - 1 < in irongate_ioremap()
376 return addr + IRONGATE_MEM; in irongate_ioremap()
387 if (addr & ~PAGE_MASK) { in irongate_ioremap()
389 addr); in irongate_ioremap()
390 return addr + IRONGATE_MEM; in irongate_ioremap()
392 last = addr + size - 1; in irongate_ioremap()
393 size = PAGE_ALIGN(last) - addr; in irongate_ioremap()
396 printk("irongate_ioremap(0x%lx, 0x%lx)\n", addr, size); in irongate_ioremap()
402 for(baddr = addr; baddr <= last; baddr += PAGE_SIZE) in irongate_ioremap()
417 for(baddr = addr, vaddr = (unsigned long)area->addr; in irongate_ioremap()
427 vfree(area->addr); in irongate_ioremap()
434 vaddr = (unsigned long)area->addr + (addr & ~PAGE_MASK); in irongate_ioremap()
437 addr, size, vaddr); in irongate_ioremap()
443 irongate_iounmap(unsigned long addr) in irongate_iounmap() argument
445 if (((long)addr >> 41) == -2) in irongate_iounmap()
447 if (addr) return vfree((void *)(PAGE_MASK & addr)); in irongate_iounmap()