Lines Matching refs:phys_addr
20 static void __iomem *__ioremap_caller(phys_addr_t phys_addr, size_t size, in __ioremap_caller() argument
24 unsigned long offset = phys_addr & ~PAGE_MASK; in __ioremap_caller()
33 phys_addr &= PAGE_MASK; in __ioremap_caller()
39 last_addr = phys_addr + size - 1; in __ioremap_caller()
40 if (!size || last_addr < phys_addr || (last_addr & ~PHYS_MASK)) in __ioremap_caller()
46 if (WARN_ON(pfn_is_map_memory(__phys_to_pfn(phys_addr)))) in __ioremap_caller()
53 area->phys_addr = phys_addr; in __ioremap_caller()
55 err = ioremap_page_range(addr, addr + size, phys_addr, prot); in __ioremap_caller()
64 void __iomem *__ioremap(phys_addr_t phys_addr, size_t size, pgprot_t prot) in __ioremap() argument
66 return __ioremap_caller(phys_addr, size, prot, in __ioremap()
84 void __iomem *ioremap_cache(phys_addr_t phys_addr, size_t size) in ioremap_cache() argument
87 if (pfn_is_map_memory(__phys_to_pfn(phys_addr))) in ioremap_cache()
88 return (void __iomem *)__phys_to_virt(phys_addr); in ioremap_cache()
90 return __ioremap_caller(phys_addr, size, __pgprot(PROT_NORMAL), in ioremap_cache()