Lines Matching refs:vma
36 flash_mmap(struct file *file, struct vm_area_struct *vma) in flash_mmap() argument
46 if ((vma->vm_flags & VM_READ) && in flash_mmap()
47 (vma->vm_flags & VM_WRITE)) { in flash_mmap()
51 if (vma->vm_flags & VM_READ) { in flash_mmap()
54 } else if (vma->vm_flags & VM_WRITE) { in flash_mmap()
64 if ((vma->vm_pgoff << PAGE_SHIFT) > size) in flash_mmap()
66 addr = vma->vm_pgoff + (addr >> PAGE_SHIFT); in flash_mmap()
68 if (vma->vm_end - (vma->vm_start + (vma->vm_pgoff << PAGE_SHIFT)) > size) in flash_mmap()
69 size = vma->vm_end - (vma->vm_start + (vma->vm_pgoff << PAGE_SHIFT)); in flash_mmap()
71 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); in flash_mmap()
73 if (io_remap_pfn_range(vma, vma->vm_start, addr, size, vma->vm_page_prot)) in flash_mmap()