Lines Matching refs:vma

145 mspec_open(struct vm_area_struct *vma)  in mspec_open()  argument
149 vdata = vma->vm_private_data; in mspec_open()
160 mspec_close(struct vm_area_struct *vma) in mspec_close() argument
166 vdata = vma->vm_private_data; in mspec_close()
200 mspec_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in mspec_fault() argument
205 struct vma_data *vdata = vma->vm_private_data; in mspec_fault()
236 vm_insert_pfn(vma, (unsigned long)vmf->virtual_address, pfn); in mspec_fault()
255 mspec_mmap(struct file *file, struct vm_area_struct *vma, in mspec_mmap() argument
261 if (vma->vm_pgoff != 0) in mspec_mmap()
264 if ((vma->vm_flags & VM_SHARED) == 0) in mspec_mmap()
267 if ((vma->vm_flags & VM_WRITE) == 0) in mspec_mmap()
270 pages = vma_pages(vma); in mspec_mmap()
281 vdata->vm_start = vma->vm_start; in mspec_mmap()
282 vdata->vm_end = vma->vm_end; in mspec_mmap()
287 vma->vm_private_data = vdata; in mspec_mmap()
289 vma->vm_flags |= VM_IO | VM_PFNMAP | VM_DONTEXPAND | VM_DONTDUMP; in mspec_mmap()
291 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); in mspec_mmap()
292 vma->vm_ops = &mspec_vm_ops; in mspec_mmap()
298 fetchop_mmap(struct file *file, struct vm_area_struct *vma) in fetchop_mmap() argument
300 return mspec_mmap(file, vma, MSPEC_FETCHOP); in fetchop_mmap()
304 cached_mmap(struct file *file, struct vm_area_struct *vma) in cached_mmap() argument
306 return mspec_mmap(file, vma, MSPEC_CACHED); in cached_mmap()
310 uncached_mmap(struct file *file, struct vm_area_struct *vma) in uncached_mmap() argument
312 return mspec_mmap(file, vma, MSPEC_UNCACHED); in uncached_mmap()