Lines Matching refs:phys_addr
17 unsigned long size, unsigned long 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 unsigned long size, unsigned long 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 int remap_area_pages(unsigned long address, unsigned long phys_addr, in remap_area_pages() argument
72 phys_addr -= address; in remap_area_pages()
85 phys_addr + address, flags)) in remap_area_pages()
109 void * p3_ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) in p3_ioremap() argument
116 last_addr = phys_addr + size - 1; in p3_ioremap()
117 if (!size || last_addr < phys_addr) in p3_ioremap()
123 if (phys_addr >= 0xA0000 && last_addr < 0x100000) in p3_ioremap()
124 return phys_to_virt(phys_addr); in p3_ioremap()
129 if (phys_addr < virt_to_phys(high_memory)) in p3_ioremap()
135 offset = phys_addr & ~PAGE_MASK; in p3_ioremap()
136 phys_addr &= PAGE_MASK; in p3_ioremap()
137 size = PAGE_ALIGN(last_addr) - phys_addr; in p3_ioremap()
146 if (remap_area_pages(VMALLOC_VMADDR(addr), phys_addr, size, flags)) { in p3_ioremap()