Lines Matching refs:phys_addr
32 static void __iomem *__ioremap_caller(phys_addr_t phys_addr, size_t size, in __ioremap_caller() argument
36 unsigned long offset = phys_addr & ~PAGE_MASK; in __ioremap_caller()
45 phys_addr &= PAGE_MASK; in __ioremap_caller()
51 last_addr = phys_addr + size - 1; in __ioremap_caller()
52 if (!size || last_addr < phys_addr || (last_addr & ~PHYS_MASK)) in __ioremap_caller()
58 if (WARN_ON(pfn_valid(__phys_to_pfn(phys_addr)))) in __ioremap_caller()
65 area->phys_addr = phys_addr; in __ioremap_caller()
67 err = ioremap_page_range(addr, addr + size, phys_addr, prot); in __ioremap_caller()
76 void __iomem *__ioremap(phys_addr_t phys_addr, size_t size, pgprot_t prot) in __ioremap() argument
78 return __ioremap_caller(phys_addr, size, prot, in __ioremap()
96 void __iomem *ioremap_cache(phys_addr_t phys_addr, size_t size) in ioremap_cache() argument
99 if (pfn_valid(__phys_to_pfn(phys_addr))) in ioremap_cache()
100 return (void __iomem *)__phys_to_virt(phys_addr); in ioremap_cache()
102 return __ioremap_caller(phys_addr, size, __pgprot(PROT_NORMAL), in ioremap_cache()