Lines Matching refs:new_addr

118 		unsigned long new_addr, bool need_rmap_locks)  in move_ptes()  argument
152 new_pte = pte_offset_map(new_pmd, new_addr); in move_ptes()
160 new_pte++, new_addr += PAGE_SIZE) { in move_ptes()
178 pte = move_pte(pte, new_vma->vm_page_prot, old_addr, new_addr); in move_ptes()
180 set_pte_at(mm, new_addr, new_pte, pte); in move_ptes()
196 unsigned long new_addr, unsigned long len, in move_page_tables() argument
211 for (; old_addr < old_end; old_addr += extent, new_addr += extent) { in move_page_tables()
221 new_pmd = alloc_new_pmd(vma->vm_mm, vma, new_addr); in move_page_tables()
230 moved = move_huge_pmd(vma, old_addr, new_addr, in move_page_tables()
241 if (pte_alloc(new_vma->vm_mm, new_pmd, new_addr)) in move_page_tables()
243 next = (new_addr + PMD_SIZE) & PMD_MASK; in move_page_tables()
244 if (extent > next - new_addr) in move_page_tables()
245 extent = next - new_addr; in move_page_tables()
247 new_pmd, new_addr, need_rmap_locks); in move_page_tables()
257 unsigned long new_len, unsigned long new_addr, in move_vma() argument
292 new_vma = copy_vma(&vma, new_addr, new_len, new_pgoff, in move_vma()
297 moved_len = move_page_tables(vma, old_addr, new_vma, new_addr, old_len, in move_vma()
311 move_page_tables(new_vma, new_addr, vma, old_addr, moved_len, in move_vma()
315 old_addr = new_addr; in move_vma()
316 new_addr = err; in move_vma()
320 new_addr, new_addr + new_len); in move_vma()
367 return new_addr; in move_vma()
436 unsigned long new_addr, unsigned long new_len, bool *locked, in mremap_to() argument
447 if (offset_in_page(new_addr)) in mremap_to()
450 if (new_len > TASK_SIZE || new_addr > TASK_SIZE - new_len) in mremap_to()
454 if (addr + old_len > new_addr && new_addr + new_len > addr) in mremap_to()
457 ret = do_munmap(mm, new_addr, new_len, uf_unmap_early); in mremap_to()
478 ret = get_unmapped_area(vma->vm_file, new_addr, new_len, vma->vm_pgoff + in mremap_to()
484 ret = move_vma(vma, addr, old_len, new_len, new_addr, locked, uf, in mremap_to()
517 unsigned long, new_addr) in SYSCALL_DEFINE5() argument
552 ret = mremap_to(addr, old_len, new_addr, new_len, in SYSCALL_DEFINE5()
596 new_addr = addr; in SYSCALL_DEFINE5()
613 new_addr = get_unmapped_area(vma->vm_file, 0, new_len, in SYSCALL_DEFINE5()
617 if (offset_in_page(new_addr)) { in SYSCALL_DEFINE5()
618 ret = new_addr; in SYSCALL_DEFINE5()
622 ret = move_vma(vma, addr, old_len, new_len, new_addr, in SYSCALL_DEFINE5()
632 mm_populate(new_addr + old_len, new_len - old_len); in SYSCALL_DEFINE5()
634 mremap_userfaultfd_complete(&uf, addr, new_addr, old_len); in SYSCALL_DEFINE5()