Lines Matching refs:ppgtt
150 struct i915_hw_ppgtt *ppgtt; in igt_ppgtt_alloc() local
159 ppgtt = __hw_ppgtt_create(dev_priv); in igt_ppgtt_alloc()
160 if (IS_ERR(ppgtt)) in igt_ppgtt_alloc()
161 return PTR_ERR(ppgtt); in igt_ppgtt_alloc()
163 if (!ppgtt->vm.allocate_va_range) in igt_ppgtt_alloc()
174 limit = min(ppgtt->vm.total, limit); in igt_ppgtt_alloc()
178 err = ppgtt->vm.allocate_va_range(&ppgtt->vm, 0, size); in igt_ppgtt_alloc()
190 ppgtt->vm.clear_range(&ppgtt->vm, 0, size); in igt_ppgtt_alloc()
195 err = ppgtt->vm.allocate_va_range(&ppgtt->vm, in igt_ppgtt_alloc()
211 i915_ppgtt_put(ppgtt); in igt_ppgtt_alloc()
1000 struct i915_hw_ppgtt *ppgtt; in exercise_ppgtt() local
1012 ppgtt = i915_ppgtt_create(dev_priv, file->driver_priv); in exercise_ppgtt()
1013 if (IS_ERR(ppgtt)) { in exercise_ppgtt()
1014 err = PTR_ERR(ppgtt); in exercise_ppgtt()
1017 GEM_BUG_ON(offset_in_page(ppgtt->vm.total)); in exercise_ppgtt()
1018 GEM_BUG_ON(ppgtt->vm.closed); in exercise_ppgtt()
1020 err = func(dev_priv, &ppgtt->vm, 0, ppgtt->vm.total, end_time); in exercise_ppgtt()
1022 i915_ppgtt_close(&ppgtt->vm); in exercise_ppgtt()
1023 i915_ppgtt_put(ppgtt); in exercise_ppgtt()
1249 struct i915_hw_ppgtt *ppgtt; in exercise_mock() local
1257 ppgtt = ctx->ppgtt; in exercise_mock()
1258 GEM_BUG_ON(!ppgtt); in exercise_mock()
1260 err = func(i915, &ppgtt->vm, 0, min(ppgtt->vm.total, limit), end_time); in exercise_mock()