Lines Matching refs:vma
2766 static int incorrect_mmap(struct file *file, struct vm_area_struct *vma)
2769 size = vma->vm_end - vma->vm_start;
2770 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
2772 if (remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, size, vma->vm_page_prot)) {
2776 vma->vm_flags &= ~VM_IO;
2788 static int correct_mmap(struct file *file, struct vm_area_struct *vma)
2791 size = vma->vm_end - vma->vm_start;
2793 if (!valid_mmap_phys_addr_range(vma->vm_pgoff, size)) {
2797 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
2798 if (remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, size, vma->vm_page_prot)) {
2802 vma->vm_flags &= ~VM_IO;