Lines Matching refs:vm_id
49 uint32_t vm_id = 0; in gem_has_vm() local
51 __gem_vm_create(i915, &vm_id); in gem_has_vm()
52 if (vm_id) in gem_has_vm()
53 gem_vm_destroy(i915, vm_id); in gem_has_vm()
55 return vm_id; in gem_has_vm()
70 int __gem_vm_create(int i915, uint32_t *vm_id) in __gem_vm_create() argument
76 *vm_id = ctl.vm_id; in __gem_vm_create()
97 uint32_t vm_id; in gem_vm_create() local
99 igt_assert_eq(__gem_vm_create(i915, &vm_id), 0); in gem_vm_create()
100 igt_assert(vm_id != 0); in gem_vm_create()
102 return vm_id; in gem_vm_create()
105 int __gem_vm_destroy(int i915, uint32_t vm_id) in __gem_vm_destroy() argument
107 struct drm_i915_gem_vm_control ctl = { .vm_id = vm_id }; in __gem_vm_destroy()
127 void gem_vm_destroy(int i915, uint32_t vm_id) in gem_vm_destroy() argument
129 igt_assert_eq(__gem_vm_destroy(i915, vm_id), 0); in gem_vm_destroy()