Lines Matching refs:size
46 size_t size, unsigned int mtype) in find_static_vm_paddr() argument
59 paddr + size - 1 > vm->phys_addr + vm->size - 1) in find_static_vm_paddr()
80 if (vm->addr <= vaddr && vm->addr + vm->size > vaddr) in find_static_vm_vaddr()
139 static void unmap_area_sections(unsigned long virt, unsigned long size) in unmap_area_sections() argument
141 unsigned long addr = virt, end = virt + (size & ~(SZ_1M - 1)); in unmap_area_sections()
187 size_t size, const struct mem_type *type) in remap_area_sections() argument
189 unsigned long addr = virt, end = virt + size; in remap_area_sections()
198 unmap_area_sections(virt, size); in remap_area_sections()
219 size_t size, const struct mem_type *type) in remap_area_supersections() argument
221 unsigned long addr = virt, end = virt + size; in remap_area_supersections()
230 unmap_area_sections(virt, size); in remap_area_supersections()
259 unsigned long offset, size_t size, unsigned int mtype, void *caller) in __arm_ioremap_pfn_caller() argument
282 size = PAGE_ALIGN(offset + size); in __arm_ioremap_pfn_caller()
287 if (size && !(sizeof(phys_addr_t) == 4 && pfn >= 0x100000)) { in __arm_ioremap_pfn_caller()
290 svm = find_static_vm_paddr(paddr, size, mtype); in __arm_ioremap_pfn_caller()
304 area = get_vm_area_caller(size, VM_IOREMAP, caller); in __arm_ioremap_pfn_caller()
314 !((paddr | size | addr) & ~SUPERSECTION_MASK)) { in __arm_ioremap_pfn_caller()
316 err = remap_area_supersections(addr, pfn, size, type); in __arm_ioremap_pfn_caller()
317 } else if (!((paddr | size | addr) & ~PMD_MASK)) { in __arm_ioremap_pfn_caller()
319 err = remap_area_sections(addr, pfn, size, type); in __arm_ioremap_pfn_caller()
322 err = ioremap_page_range(addr, addr + size, paddr, in __arm_ioremap_pfn_caller()
330 flush_cache_vmap(addr, addr + size); in __arm_ioremap_pfn_caller()
334 void __iomem *__arm_ioremap_caller(phys_addr_t phys_addr, size_t size, in __arm_ioremap_caller() argument
344 last_addr = phys_addr + size - 1; in __arm_ioremap_caller()
345 if (!size || last_addr < phys_addr) in __arm_ioremap_caller()
348 return __arm_ioremap_pfn_caller(pfn, offset, size, mtype, in __arm_ioremap_caller()
362 __arm_ioremap_pfn(unsigned long pfn, unsigned long offset, size_t size, in __arm_ioremap_pfn() argument
365 return __arm_ioremap_pfn_caller(pfn, offset, size, mtype, in __arm_ioremap_pfn()
375 __arm_ioremap(phys_addr_t phys_addr, size_t size, unsigned int mtype) in __arm_ioremap() argument
377 return arch_ioremap_caller(phys_addr, size, mtype, in __arm_ioremap()
390 __arm_ioremap_exec(phys_addr_t phys_addr, size_t size, bool cached) in __arm_ioremap_exec() argument
399 return __arm_ioremap_caller(phys_addr, size, mtype, in __arm_ioremap_exec()
425 unmap_area_sections((unsigned long)vm->addr, vm->size); in __iounmap()