Lines Matching refs:i915
47 bool gem_has_vm(int i915) in gem_has_vm() argument
51 __gem_vm_create(i915, &vm_id); in gem_has_vm()
53 gem_vm_destroy(i915, vm_id); in gem_has_vm()
65 void gem_require_vm(int i915) in gem_require_vm() argument
67 igt_require(gem_has_vm(i915)); in gem_require_vm()
70 int __gem_vm_create(int i915, uint32_t *vm_id) in __gem_vm_create() argument
75 if (igt_ioctl(i915, DRM_IOCTL_I915_GEM_VM_CREATE, &ctl) == 0) { in __gem_vm_create()
95 uint32_t gem_vm_create(int i915) in gem_vm_create() argument
99 igt_assert_eq(__gem_vm_create(i915, &vm_id), 0); in gem_vm_create()
105 int __gem_vm_destroy(int i915, uint32_t vm_id) in __gem_vm_destroy() argument
110 if (igt_ioctl(i915, DRM_IOCTL_I915_GEM_VM_DESTROY, &ctl)) { 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()