Lines Matching refs:phys_addr
17 unsigned long phys_addr, unsigned long flags) in remap_area_pte() argument
32 set_pte(pte, mk_pte_phys(phys_addr, __pgprot(_PAGE_PRESENT | __READABLE | in remap_area_pte()
36 phys_addr += PAGE_SIZE; in remap_area_pte()
42 unsigned long phys_addr, unsigned long flags) in remap_area_pmd() argument
50 phys_addr -= address; in remap_area_pmd()
57 remap_area_pte(pte, address, end - address, address + phys_addr, flags); in remap_area_pmd()
64 static int remap_area_pages(unsigned long address, unsigned long phys_addr, in remap_area_pages() argument
71 phys_addr -= address; in remap_area_pages()
84 phys_addr + address, flags)) in remap_area_pages()
108 void * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) in __ioremap() argument
115 last_addr = phys_addr + size - 1; in __ioremap()
116 if (!size || last_addr < phys_addr) in __ioremap()
125 if (phys_addr >= 0xA0000 && last_addr < 0x100000) in __ioremap()
126 return phys_to_virt(phys_addr); in __ioremap()
131 if (phys_addr < virt_to_phys(high_memory)) { in __ioremap()
135 t_addr = __va(phys_addr); in __ioremap()
147 offset = phys_addr & ~PAGE_MASK; in __ioremap()
148 phys_addr &= PAGE_MASK; in __ioremap()
149 size = PAGE_ALIGN(last_addr+1) - phys_addr; in __ioremap()
158 if (remap_area_pages(VMALLOC_VMADDR(addr), phys_addr, size, flags)) { in __ioremap()