Lines Matching refs:phys_addr
32 unsigned long phys_addr, unsigned long flags) in remap_area_pte() argument
42 __FUNCTION__,pte,address,size,phys_addr)); in remap_area_pte()
47 set_pte(pte, mk_pte_phys(phys_addr, __pgprot(_PAGE_PRESENT | in remap_area_pte()
51 phys_addr += PAGE_SIZE; in remap_area_pte()
57 unsigned long phys_addr, unsigned long flags) in remap_area_pmd() argument
68 pmd, address, phys_addr, end)); in remap_area_pmd()
70 phys_addr -= address; in remap_area_pmd()
74 __FUNCTION__, pmd, address, phys_addr, end)); in remap_area_pmd()
80 remap_area_pte(pte, address, end - address, address + phys_addr, flags); in remap_area_pmd()
85 …EMAP(("remap_area_pmd address is 0x%08x phys_addr is 0x%08x end 0x%08x\n", address,phys_addr,end)); in remap_area_pmd()
92 static int remap_area_pages(unsigned long address, unsigned long phys_addr, in remap_area_pages() argument
99 phys_addr -= address; in remap_area_pages()
110 phys_addr + address, flags)) { in remap_area_pages()
135 void * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) in __ioremap() argument
142 last_addr = phys_addr + size - 1; in __ioremap()
143 if (!size || last_addr < phys_addr) in __ioremap()
149 offset = phys_addr & ~PAGE_MASK; in __ioremap()
150 phys_addr &= PAGE_MASK; in __ioremap()
151 size = PAGE_ALIGN(last_addr) - phys_addr; in __ioremap()
163 if (remap_area_pages(VMALLOC_VMADDR(addr), phys_addr, size, flags)) { in __ioremap()