Home
last modified time | relevance | path

Searched refs:new_vma (Results 1 – 18 of 18) sorted by relevance

/linux-6.15/arch/powerpc/kernel/
H A Dvdso.c45 static int vdso_mremap(const struct vm_special_mapping *sm, struct vm_area_struct *new_vma, in vdso_mremap() argument
48 unsigned long new_size = new_vma->vm_end - new_vma->vm_start; in vdso_mremap()
53 current->mm->context.vdso = (void __user *)new_vma->vm_start; in vdso_mremap()
58 static int vdso32_mremap(const struct vm_special_mapping *sm, struct vm_area_struct *new_vma) in vdso32_mremap() argument
60 return vdso_mremap(sm, new_vma, &vdso32_end - &vdso32_start); in vdso32_mremap()
63 static int vdso64_mremap(const struct vm_special_mapping *sm, struct vm_area_struct *new_vma) in vdso64_mremap() argument
65 return vdso_mremap(sm, new_vma, &vdso64_end - &vdso64_start); in vdso64_mremap()
/linux-6.15/arch/x86/entry/vdso/
H A Dvma.c66 struct vm_area_struct *new_vma) in vdso_fix_landing() argument
77 regs->ip = new_vma->vm_start + vdso_land; in vdso_fix_landing()
83 struct vm_area_struct *new_vma) in vdso_mremap() argument
87 vdso_fix_landing(image, new_vma); in vdso_mremap()
88 current->mm->context.vdso = (void __user *)new_vma->vm_start; in vdso_mremap()
/linux-6.15/mm/
H A Dvma.c1787 if (new_vma && new_vma->vm_start < addr + len) in copy_vma()
1795 if (new_vma) { in copy_vma()
1814 *vmap = vma = new_vma; in copy_vma()
1819 if (!new_vma) in copy_vma()
1826 if (new_vma->vm_file) in copy_vma()
1828 if (new_vma->vm_ops && new_vma->vm_ops->open) in copy_vma()
1829 new_vma->vm_ops->open(new_vma); in copy_vma()
1834 return new_vma; in copy_vma()
1838 vma_close(new_vma); in copy_vma()
1840 if (new_vma->vm_file) in copy_vma()
[all …]
H A Dmremap.c1151 struct vm_area_struct *new_vma; in copy_vma_and_data() local
1157 if (!new_vma) { in copy_vma_and_data()
1164 pmc.new = new_vma; in copy_vma_and_data()
1170 err = vma->vm_ops->mremap(new_vma); in copy_vma_and_data()
1184 vrm->vma = new_vma; in copy_vma_and_data()
1197 *new_vma_ptr = new_vma; in copy_vma_and_data()
1208 struct vm_area_struct *new_vma) in dontunmap_complete() argument
1234 struct vm_area_struct *new_vma; in move_vma() local
1250 err = copy_vma_and_data(vrm, &new_vma); in move_vma()
1256 if (err && !new_vma) in move_vma()
[all …]
H A Dmmap.c1427 static int special_mapping_mremap(struct vm_area_struct *new_vma) in special_mapping_mremap() argument
1429 struct vm_special_mapping *sm = new_vma->vm_private_data; in special_mapping_mremap()
1431 if (WARN_ON_ONCE(current->mm != new_vma->vm_mm)) in special_mapping_mremap()
1435 return sm->mremap(sm, new_vma); in special_mapping_mremap()
1827 struct vm_area_struct *new_vma, in mmap_read_lock_maybe_expand() argument
1830 if (!write || addr >= new_vma->vm_start) { in mmap_read_lock_maybe_expand()
1835 if (!(new_vma->vm_flags & VM_GROWSDOWN)) in mmap_read_lock_maybe_expand()
1839 if (expand_downwards(new_vma, addr)) { in mmap_read_lock_maybe_expand()
H A Dhugetlb.c5788 struct vm_area_struct *new_vma, in move_hugetlb_page_tables() argument
5833 dst_pte = huge_pte_alloc(mm, new_vma, new_addr, sz); in move_hugetlb_page_tables()
/linux-6.15/arch/arm64/kernel/
H A Dvdso.c61 struct vm_area_struct *new_vma) in vdso_mremap() argument
63 current->mm->context.vdso = (void *)new_vma->vm_start; in vdso_mremap()
160 struct vm_area_struct *new_vma) in aarch32_sigpage_mremap() argument
162 current->mm->context.sigpage = (void *)new_vma->vm_start; in aarch32_sigpage_mremap()
/linux-6.15/arch/loongarch/kernel/
H A Dvdso.c28 static int vdso_mremap(const struct vm_special_mapping *sm, struct vm_area_struct *new_vma) in vdso_mremap() argument
30 current->mm->context.vdso = (void *)(new_vma->vm_start); in vdso_mremap()
/linux-6.15/arch/riscv/kernel/
H A Dvdso.c37 struct vm_area_struct *new_vma) in vdso_mremap() argument
39 current->mm->context.vdso = (void *)new_vma->vm_start; in vdso_mremap()
/linux-6.15/arch/arm/kernel/
H A Dvdso.c38 struct vm_area_struct *new_vma) in vdso_mremap() argument
40 current->mm->context.vdso = new_vma->vm_start; in vdso_mremap()
H A Dprocess.c383 struct vm_area_struct *new_vma) in sigpage_mremap() argument
385 current->mm->context.sigpage = new_vma->vm_start; in sigpage_mremap()
/linux-6.15/include/linux/
H A Dmm_inline.h408 struct vm_area_struct *new_vma) in dup_anon_vma_name() argument
413 new_vma->anon_name = anon_vma_name_reuse(anon_name); in dup_anon_vma_name()
439 struct vm_area_struct *new_vma) {} in dup_anon_vma_name() argument
H A Dhugetlb.h125 struct vm_area_struct *new_vma,
336 struct vm_area_struct *new_vma, in move_hugetlb_page_tables() argument
H A Dmm_types.h1495 struct vm_area_struct *new_vma);
/linux-6.15/drivers/gpu/drm/i915/
H A Di915_gem.c949 new_vma: in i915_gem_object_ggtt_pin_ww()
977 goto new_vma; in i915_gem_object_ggtt_pin_ww()
/linux-6.15/drivers/gpu/drm/xe/
H A Dxe_vm.c2287 static struct xe_vma *new_vma(struct xe_vm *vm, struct drm_gpuva_op_map *op, in new_vma() function
2469 vma = new_vma(vm, &op->base.map, op->map.pat_index, in vm_bind_ioctl_ops_parse()
2514 vma = new_vma(vm, op->base.remap.prev, in vm_bind_ioctl_ops_parse()
2544 vma = new_vma(vm, op->base.remap.next, in vm_bind_ioctl_ops_parse()
/linux-6.15/kernel/events/
H A Duprobes.c1670 static int xol_mremap(const struct vm_special_mapping *sm, struct vm_area_struct *new_vma) in xol_mremap() argument
/linux-6.15/drivers/gpu/drm/panthor/
H A Dpanthor_mmu.c216 struct panthor_vma *new_vma; member