Lines Matching refs:ppgtt

148 	struct i915_ppgtt *ppgtt;  in igt_ppgtt_alloc()  local
158 ppgtt = i915_ppgtt_create(&dev_priv->gt, 0); in igt_ppgtt_alloc()
159 if (IS_ERR(ppgtt)) in igt_ppgtt_alloc()
160 return PTR_ERR(ppgtt); in igt_ppgtt_alloc()
162 if (!ppgtt->vm.allocate_va_range) in igt_ppgtt_alloc()
173 limit = min(ppgtt->vm.total, limit); in igt_ppgtt_alloc()
177 err = i915_vm_lock_objects(&ppgtt->vm, &ww); in igt_ppgtt_alloc()
185 err = i915_vm_alloc_pt_stash(&ppgtt->vm, &stash, size); in igt_ppgtt_alloc()
189 err = i915_vm_map_pt_stash(&ppgtt->vm, &stash); in igt_ppgtt_alloc()
191 i915_vm_free_pt_stash(&ppgtt->vm, &stash); in igt_ppgtt_alloc()
195 ppgtt->vm.allocate_va_range(&ppgtt->vm, &stash, 0, size); in igt_ppgtt_alloc()
198 ppgtt->vm.clear_range(&ppgtt->vm, 0, size); in igt_ppgtt_alloc()
200 i915_vm_free_pt_stash(&ppgtt->vm, &stash); in igt_ppgtt_alloc()
207 err = i915_vm_alloc_pt_stash(&ppgtt->vm, &stash, size - last); in igt_ppgtt_alloc()
211 err = i915_vm_map_pt_stash(&ppgtt->vm, &stash); in igt_ppgtt_alloc()
213 i915_vm_free_pt_stash(&ppgtt->vm, &stash); in igt_ppgtt_alloc()
217 ppgtt->vm.allocate_va_range(&ppgtt->vm, &stash, in igt_ppgtt_alloc()
221 i915_vm_free_pt_stash(&ppgtt->vm, &stash); in igt_ppgtt_alloc()
232 i915_vm_put(&ppgtt->vm); in igt_ppgtt_alloc()
1044 struct i915_ppgtt *ppgtt; in exercise_ppgtt() local
1056 ppgtt = i915_ppgtt_create(&dev_priv->gt, 0); in exercise_ppgtt()
1057 if (IS_ERR(ppgtt)) { in exercise_ppgtt()
1058 err = PTR_ERR(ppgtt); in exercise_ppgtt()
1061 GEM_BUG_ON(offset_in_page(ppgtt->vm.total)); in exercise_ppgtt()
1062 GEM_BUG_ON(!atomic_read(&ppgtt->vm.open)); in exercise_ppgtt()
1064 err = func(&ppgtt->vm, 0, ppgtt->vm.total, end_time); in exercise_ppgtt()
1066 i915_vm_put(&ppgtt->vm); in exercise_ppgtt()