Lines Matching refs:vma
60 struct vm_area_struct *vma, struct vm_fault *vmf) in vdso_fault() argument
62 const struct vdso_image *image = vma->vm_mm->context.vdso_image; in vdso_fault()
101 static struct page *find_timens_vvar_page(struct vm_area_struct *vma) in find_timens_vvar_page() argument
103 if (likely(vma->vm_mm == current->mm)) in find_timens_vvar_page()
129 struct vm_area_struct *vma; in vdso_join_timens() local
133 for (vma = mm->mmap; vma; vma = vma->vm_next) { in vdso_join_timens()
134 unsigned long size = vma->vm_end - vma->vm_start; in vdso_join_timens()
136 if (vma_is_special_mapping(vma, &vvar_mapping)) in vdso_join_timens()
137 zap_page_range(vma, vma->vm_start, size); in vdso_join_timens()
144 static inline struct page *find_timens_vvar_page(struct vm_area_struct *vma) in find_timens_vvar_page() argument
151 struct vm_area_struct *vma, struct vm_fault *vmf) in vvar_fault() argument
153 const struct vdso_image *image = vma->vm_mm->context.vdso_image; in vvar_fault()
174 struct page *timens_page = find_timens_vvar_page(vma); in vvar_fault()
196 err = vmf_insert_pfn(vma, addr, pfn); in vvar_fault()
203 return vmf_insert_pfn(vma, vmf->address, pfn); in vvar_fault()
208 return vmf_insert_pfn_prot(vma, vmf->address, in vvar_fault()
210 pgprot_decrypted(vma->vm_page_prot)); in vvar_fault()
216 return vmf_insert_pfn(vma, vmf->address, in vvar_fault()
219 struct page *timens_page = find_timens_vvar_page(vma); in vvar_fault()
225 return vmf_insert_pfn(vma, vmf->address, pfn); in vvar_fault()
249 struct vm_area_struct *vma; in map_vdso() local
268 vma = _install_special_mapping(mm, in map_vdso()
275 if (IS_ERR(vma)) { in map_vdso()
276 ret = PTR_ERR(vma); in map_vdso()
280 vma = _install_special_mapping(mm, in map_vdso()
287 if (IS_ERR(vma)) { in map_vdso()
288 ret = PTR_ERR(vma); in map_vdso()
356 struct vm_area_struct *vma; in map_vdso_once() local
366 for (vma = mm->mmap; vma; vma = vma->vm_next) { in map_vdso_once()
367 if (vma_is_special_mapping(vma, &vdso_mapping) || in map_vdso_once()
368 vma_is_special_mapping(vma, &vvar_mapping)) { in map_vdso_once()