Lines Matching refs:vma
2836 static int incorrect_mmap(struct file *file, struct vm_area_struct *vma)
2839 size = vma->vm_end - vma->vm_start;
2840 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
2842 if (remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, size, vma->vm_page_prot)) {
2846 vma->vm_flags &= ~VM_IO;
2858 static int correct_mmap(struct file *file, struct vm_area_struct *vma)
2861 size = vma->vm_end - vma->vm_start;
2863 if (!valid_mmap_phys_addr_range(vma->vm_pgoff, size)) {
2867 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
2868 if (remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, size, vma->vm_page_prot)) {
2872 vma->vm_flags &= ~VM_IO;