Lines Matching refs:phys_addr
16 unsigned long phys_addr, unsigned long flags) in remap_area_pte() argument
31 set_pte(pte, mk_pte_phys(phys_addr, __pgprot(_PAGE_PRESENT | _PAGE_RW | in remap_area_pte()
34 phys_addr += PAGE_SIZE; in remap_area_pte()
40 unsigned long phys_addr, unsigned long flags) in remap_area_pmd() argument
48 phys_addr -= address; in remap_area_pmd()
55 remap_area_pte(pte, address, end - address, address + phys_addr, flags); in remap_area_pmd()
62 static int remap_area_pages(unsigned long address, unsigned long phys_addr, in remap_area_pages() argument
69 phys_addr -= address; in remap_area_pages()
82 phys_addr + address, flags)) in remap_area_pages()
106 void * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) in __ioremap() argument
113 last_addr = phys_addr + size - 1; in __ioremap()
114 if (!size || last_addr < phys_addr) in __ioremap()
120 if (phys_addr >= 0xA0000 && last_addr < 0x100000) in __ioremap()
121 return phys_to_virt(phys_addr); in __ioremap()
126 if (phys_addr < virt_to_phys(high_memory)) { in __ioremap()
129 t_addr = __va(phys_addr); in __ioremap()
143 offset = phys_addr & ~PAGE_MASK; in __ioremap()
144 phys_addr &= PAGE_MASK; in __ioremap()
145 size = PAGE_ALIGN(last_addr + 1) - phys_addr; in __ioremap()
154 if (remap_area_pages(VMALLOC_VMADDR(addr), phys_addr, size, flags)) { in __ioremap()