• Home
  • Raw
  • Download

Lines Matching refs:vma

187 int __weak remap_oldmem_pfn_range(struct vm_area_struct *vma,  in remap_oldmem_pfn_range()  argument
192 return remap_pfn_range(vma, from, pfn, size, prot); in remap_oldmem_pfn_range()
255 static int vmcoredd_mmap_dumps(struct vm_area_struct *vma, unsigned long dst, in vmcoredd_mmap_dumps() argument
269 if (remap_vmalloc_range_partial(vma, dst, buf, tsz)) { in vmcoredd_mmap_dumps()
414 struct address_space *mapping = vmf->vma->vm_file->f_mapping; in mmap_vmcore_fault()
486 static int remap_oldmem_pfn_checked(struct vm_area_struct *vma, in remap_oldmem_pfn_checked() argument
508 if (remap_oldmem_pfn_range(vma, from + len, in remap_oldmem_pfn_checked()
515 if (remap_oldmem_pfn_range(vma, from + len, in remap_oldmem_pfn_checked()
526 if (remap_oldmem_pfn_range(vma, from + len, pos_start, in remap_oldmem_pfn_checked()
532 do_munmap(vma->vm_mm, from, len, NULL); in remap_oldmem_pfn_checked()
536 static int vmcore_remap_oldmem_pfn(struct vm_area_struct *vma, in vmcore_remap_oldmem_pfn() argument
545 return remap_oldmem_pfn_checked(vma, from, pfn, size, prot); in vmcore_remap_oldmem_pfn()
547 return remap_oldmem_pfn_range(vma, from, pfn, size, prot); in vmcore_remap_oldmem_pfn()
550 static int mmap_vmcore(struct file *file, struct vm_area_struct *vma) in mmap_vmcore() argument
552 size_t size = vma->vm_end - vma->vm_start; in mmap_vmcore()
556 start = (u64)vma->vm_pgoff << PAGE_SHIFT; in mmap_vmcore()
562 if (vma->vm_flags & (VM_WRITE | VM_EXEC)) in mmap_vmcore()
565 vma->vm_flags &= ~(VM_MAYWRITE | VM_MAYEXEC); in mmap_vmcore()
566 vma->vm_flags |= VM_MIXEDMAP; in mmap_vmcore()
567 vma->vm_ops = &vmcore_mmap_ops; in mmap_vmcore()
576 if (remap_pfn_range(vma, vma->vm_start, pfn, tsz, in mmap_vmcore()
577 vma->vm_page_prot)) in mmap_vmcore()
609 if (vmcoredd_mmap_dumps(vma, vma->vm_start + len, in mmap_vmcore()
626 if (remap_vmalloc_range_partial(vma, vma->vm_start + len, in mmap_vmcore()
645 if (vmcore_remap_oldmem_pfn(vma, vma->vm_start + len, in mmap_vmcore()
647 vma->vm_page_prot)) in mmap_vmcore()
660 do_munmap(vma->vm_mm, vma->vm_start, len, NULL); in mmap_vmcore()
664 static int mmap_vmcore(struct file *file, struct vm_area_struct *vma) in mmap_vmcore() argument