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()
130 t_addr = __va(phys_addr); in __ioremap()
141 offset = phys_addr & ~PAGE_MASK; in __ioremap()
142 phys_addr &= PAGE_MASK; in __ioremap()
143 size = PAGE_ALIGN(last_addr+1) - phys_addr; in __ioremap()
152 if (remap_area_pages(VMALLOC_VMADDR(addr), phys_addr, size, flags)) { in __ioremap()
165 void __init *bt_ioremap(unsigned long phys_addr, unsigned long size) in bt_ioremap() argument
172 last_addr = phys_addr + size - 1; in bt_ioremap()
173 if (!size || last_addr < phys_addr) in bt_ioremap()
179 if (phys_addr >= 0xA0000 && last_addr < 0x100000) in bt_ioremap()
180 return phys_to_virt(phys_addr); in bt_ioremap()
185 offset = phys_addr & ~PAGE_MASK; in bt_ioremap()
186 phys_addr &= PAGE_MASK; in bt_ioremap()
187 size = PAGE_ALIGN(last_addr) - phys_addr; in bt_ioremap()
201 set_fixmap(idx, phys_addr); in bt_ioremap()
202 phys_addr += PAGE_SIZE; in bt_ioremap()