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 | _PAGE_RW | in remap_area_pte()
35 phys_addr += PAGE_SIZE; in remap_area_pte()
41 unsigned long phys_addr, unsigned long flags) in remap_area_pmd() argument
49 phys_addr -= address; in remap_area_pmd()
56 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()
109 void * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) in __ioremap() argument
113 unsigned long end = phys_addr + size - 1; in __ioremap()
115 if ((phys_addr >= 0x00080000 && end < 0x000fffff) in __ioremap()
116 || (phys_addr >= 0x00500000 && end < 0x03bfffff)) { in __ioremap()
117 phys_addr |= 0xfc000000; in __ioremap()
120 return (void *)phys_addr; in __ioremap()
128 last_addr = phys_addr + size - 1; in __ioremap()
129 if (!size || last_addr < phys_addr) in __ioremap()
135 if (phys_addr < virt_to_phys(high_memory)) { in __ioremap()
139 t_addr = __va(phys_addr); in __ioremap()
150 offset = phys_addr & ~PAGE_MASK; in __ioremap()
151 phys_addr &= PAGE_MASK; in __ioremap()
152 size = PAGE_ALIGN(last_addr) - phys_addr; in __ioremap()
161 if (remap_area_pages(VMALLOC_VMADDR(addr), phys_addr, size, flags)) { in __ioremap()