Lines Matching defs:ref

152 void __i915_active_init(struct i915_active *ref,
153 int (*active)(struct i915_active *ref),
154 void (*retire)(struct i915_active *ref),
160 #define i915_active_init(ref, active, retire, flags) do { \
164 __i915_active_init(ref, active, retire, flags, &__mkey, &__wkey); \
167 int i915_active_add_request(struct i915_active *ref, struct i915_request *rq);
170 i915_active_set_exclusive(struct i915_active *ref, struct dma_fence *f);
172 int __i915_active_wait(struct i915_active *ref, int state);
173 static inline int i915_active_wait(struct i915_active *ref)
175 return __i915_active_wait(ref, TASK_INTERRUPTIBLE);
179 struct i915_active *ref,
182 struct i915_active *ref,
188 int i915_active_acquire(struct i915_active *ref);
189 int i915_active_acquire_for_context(struct i915_active *ref, u64 idx);
190 bool i915_active_acquire_if_busy(struct i915_active *ref);
192 void i915_active_release(struct i915_active *ref);
194 static inline void __i915_active_acquire(struct i915_active *ref)
196 GEM_BUG_ON(!atomic_read(&ref->count));
197 atomic_inc(&ref->count);
201 i915_active_is_idle(const struct i915_active *ref)
203 return !atomic_read(&ref->count);
206 void i915_active_fini(struct i915_active *ref);
208 int i915_active_acquire_preallocate_barrier(struct i915_active *ref,
210 void i915_active_acquire_barrier(struct i915_active *ref);
213 void i915_active_print(struct i915_active *ref, struct drm_printer *m);
214 void i915_active_unlock_wait(struct i915_active *ref);
217 struct i915_active *i915_active_get(struct i915_active *ref);
218 void i915_active_put(struct i915_active *ref);