Lines Matching defs:ref
53 if (kref_read(&vma->vm->ref))
98 static inline struct i915_vma *active_to_vma(struct i915_active *ref)
100 return container_of(ref, typeof(struct i915_vma), active);
103 static int __i915_vma_active(struct i915_active *ref)
105 return i915_vma_tryget(active_to_vma(ref)) ? 0 : -ENOENT;
108 static void __i915_vma_retire(struct i915_active *ref)
110 i915_vma_put(active_to_vma(ref));
298 GEM_BUG_ON(!kref_read(&vm->ref));
2019 kref_read(&vma->vm->ref);
2020 vma_res->skip_pte_rewrite = !kref_read(&vma->vm->ref) ||