Lines Matching refs:vmf
47 struct vm_fault *vmf) in ttm_bo_vm_fault_idle() argument
66 if (fault_flag_allow_retry_first(vmf->flags)) { in ttm_bo_vm_fault_idle()
68 if (vmf->flags & FAULT_FLAG_RETRY_NOWAIT) in ttm_bo_vm_fault_idle()
72 mmap_read_unlock(vmf->vma->vm_mm); in ttm_bo_vm_fault_idle()
130 struct vm_fault *vmf) in ttm_bo_vm_reserve() argument
144 if (fault_flag_allow_retry_first(vmf->flags)) { in ttm_bo_vm_reserve()
145 if (!(vmf->flags & FAULT_FLAG_RETRY_NOWAIT)) { in ttm_bo_vm_reserve()
147 mmap_read_unlock(vmf->vma->vm_mm); in ttm_bo_vm_reserve()
194 vm_fault_t ttm_bo_vm_fault_reserved(struct vm_fault *vmf, in ttm_bo_vm_fault_reserved() argument
198 struct vm_area_struct *vma = vmf->vma; in ttm_bo_vm_fault_reserved()
209 unsigned long address = vmf->address; in ttm_bo_vm_fault_reserved()
215 ret = ttm_bo_vm_fault_idle(bo, vmf); in ttm_bo_vm_fault_reserved()
297 vm_fault_t ttm_bo_vm_dummy_page(struct vm_fault *vmf, pgprot_t prot) in ttm_bo_vm_dummy_page() argument
299 struct vm_area_struct *vma = vmf->vma; in ttm_bo_vm_dummy_page()
327 vm_fault_t ttm_bo_vm_fault(struct vm_fault *vmf) in ttm_bo_vm_fault() argument
329 struct vm_area_struct *vma = vmf->vma; in ttm_bo_vm_fault()
336 ret = ttm_bo_vm_reserve(bo, vmf); in ttm_bo_vm_fault()
342 ret = ttm_bo_vm_fault_reserved(vmf, prot, TTM_BO_VM_NUM_PREFAULT); in ttm_bo_vm_fault()
345 ret = ttm_bo_vm_dummy_page(vmf, prot); in ttm_bo_vm_fault()
347 if (ret == VM_FAULT_RETRY && !(vmf->flags & FAULT_FLAG_RETRY_NOWAIT)) in ttm_bo_vm_fault()