Lines Matching refs:vma
61 struct vm_area_struct *vma) in update_vm_cache_attr() argument
67 vma->vm_page_prot = vm_get_page_prot(vma->vm_flags); in update_vm_cache_attr()
69 vma->vm_page_prot = in update_vm_cache_attr()
70 pgprot_writecombine(vm_get_page_prot(vma->vm_flags)); in update_vm_cache_attr()
72 vma->vm_page_prot = in update_vm_cache_attr()
73 pgprot_noncached(vm_get_page_prot(vma->vm_flags)); in update_vm_cache_attr()
87 int udl_drm_gem_mmap(struct file *filp, struct vm_area_struct *vma) in udl_drm_gem_mmap() argument
91 ret = drm_gem_mmap(filp, vma); in udl_drm_gem_mmap()
95 vma->vm_flags &= ~VM_PFNMAP; in udl_drm_gem_mmap()
96 vma->vm_flags |= VM_MIXEDMAP; in udl_drm_gem_mmap()
98 update_vm_cache_attr(to_udl_bo(vma->vm_private_data), vma); in udl_drm_gem_mmap()
103 int udl_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in udl_gem_fault() argument
105 struct udl_gem_object *obj = to_udl_bo(vma->vm_private_data); in udl_gem_fault()
110 page_offset = ((unsigned long)vmf->virtual_address - vma->vm_start) >> in udl_gem_fault()
117 ret = vm_insert_page(vma, (unsigned long)vmf->virtual_address, page); in udl_gem_fault()