Lines Matching refs:phys_addr
23 unsigned long size, unsigned long phys_addr, in remap_area_pte() argument
37 pfn = PFN_DOWN(phys_addr); in remap_area_pte()
51 unsigned long size, unsigned long phys_addr, in remap_area_pmd() argument
60 phys_addr -= address; in remap_area_pmd()
68 remap_area_pte(pte, address, end - address, address + phys_addr, in remap_area_pmd()
76 static int remap_area_pages(unsigned long address, unsigned long phys_addr, in remap_area_pages() argument
83 phys_addr -= address; in remap_area_pages()
104 phys_addr + address, flags)) in remap_area_pages()
119 void __iomem *ioremap(unsigned long phys_addr, unsigned long size) in ioremap() argument
127 last_addr = phys_addr + size - 1; in ioremap()
129 if (!size || last_addr < phys_addr) in ioremap()
133 if (phys_addr > PHYS_OFFSET && phys_addr < virt_to_phys(high_memory)) { in ioremap()
137 t_addr = __va(phys_addr); in ioremap()
149 if (IS_MAPPABLE_UNCACHEABLE(phys_addr) && in ioremap()
151 return (void __iomem *)(CONFIG_NIOS2_IO_REGION_BASE + phys_addr); in ioremap()
154 offset = phys_addr & ~PAGE_MASK; in ioremap()
155 phys_addr &= PAGE_MASK; in ioremap()
156 size = PAGE_ALIGN(last_addr + 1) - phys_addr; in ioremap()
163 if (remap_area_pages((unsigned long) addr, phys_addr, size, 0)) { in ioremap()