Lines Matching refs:phys_addr
18 phys_t size, phys_t phys_addr, unsigned long flags) in remap_area_pte() argument
35 set_pte(pte, mk_pte_phys(phys_addr, pgprot)); in remap_area_pte()
37 phys_addr += PAGE_SIZE; in remap_area_pte()
43 phys_t size, phys_t phys_addr, unsigned long flags) in remap_area_pmd() argument
51 phys_addr -= address; in remap_area_pmd()
58 remap_area_pte(pte, address, end - address, address + phys_addr, flags); in remap_area_pmd()
65 static int remap_area_pages(unsigned long address, phys_t phys_addr, in remap_area_pages() argument
72 phys_addr -= address; in remap_area_pages()
85 phys_addr + address, flags)) in remap_area_pages()
100 static phys_t def_fixup_bigphys_addr(phys_t phys_addr, phys_t size) in def_fixup_bigphys_addr() argument
102 return phys_addr; in def_fixup_bigphys_addr()
105 phys_t (*fixup_bigphys_addr)(phys_t phys_addr, phys_t size) = def_fixup_bigphys_addr;
123 void * __ioremap(phys_t phys_addr, phys_t size, unsigned long flags) in __ioremap() argument
130 phys_addr = fixup_bigphys_addr(phys_addr, size); in __ioremap()
133 last_addr = phys_addr + size - 1; in __ioremap()
134 if (!size || last_addr < phys_addr) in __ioremap()
141 if (IS_LOW512(phys_addr) && IS_LOW512(last_addr) && in __ioremap()
143 return (void *) KSEG1ADDR(phys_addr); in __ioremap()
148 if (phys_addr < virt_to_phys(high_memory)) { in __ioremap()
152 t_addr = __va(phys_addr); in __ioremap()
163 offset = phys_addr & ~PAGE_MASK; in __ioremap()
164 phys_addr &= PAGE_MASK; in __ioremap()
165 size = PAGE_ALIGN(last_addr + 1) - phys_addr; in __ioremap()
174 if (remap_area_pages(VMALLOC_VMADDR(addr), phys_addr, size, flags)) { in __ioremap()