Lines Matching refs:i915_active

1 /*	$NetBSD: i915_active.c,v 1.14 2022/03/16 23:32:52 riastradh Exp $	*/
10 __KERNEL_RCSID(0, "$NetBSD: i915_active.c,v 1.14 2022/03/16 23:32:52 riastradh Exp $");
19 #include "i915_active.h"
27 * To be more economical with memory, we reap all the i915_active trees as
38 struct i915_active *ref;
85 struct i915_active *ref = addr;
91 .name = "i915_active",
95 static void debug_active_init(struct i915_active *ref)
100 static void debug_active_activate(struct i915_active *ref)
107 static void debug_active_deactivate(struct i915_active *ref)
114 static void debug_active_fini(struct i915_active *ref)
119 static void debug_active_assert(struct i915_active *ref)
126 static inline void debug_active_init(struct i915_active *ref) { }
127 static inline void debug_active_activate(struct i915_active *ref) { }
128 static inline void debug_active_deactivate(struct i915_active *ref) { }
129 static inline void debug_active_fini(struct i915_active *ref) { }
130 static inline void debug_active_assert(struct i915_active *ref) { }
175 __active_retire(struct i915_active *ref)
218 struct i915_active *ref = container_of(wrk, typeof(*ref), work);
228 active_retire(struct i915_active *ref)
268 active_retire(container_of(cb, struct i915_active, excl.cb));
272 active_instance(struct i915_active *ref, struct intel_timeline *tl)
353 void __i915_active_init(struct i915_active *ref,
354 int (*active)(struct i915_active *ref),
355 void (*retire)(struct i915_active *ref),
380 __mutex_init(&ref->mutex, "i915_active", mkey);
384 lockdep_init_map(&ref->work.lockdep_map, "i915_active.work", wkey, 0);
388 static bool ____active_del_barrier(struct i915_active *ref,
431 __active_del_barrier(struct i915_active *ref, struct active_node *node)
436 int i915_active_ref(struct i915_active *ref,
474 void i915_active_set_exclusive(struct i915_active *ref, struct dma_fence *f)
483 bool i915_active_acquire_if_busy(struct i915_active *ref)
489 int i915_active_acquire(struct i915_active *ref)
516 void i915_active_release(struct i915_active *ref)
534 int i915_active_wait(struct i915_active *ref)
569 int i915_request_await_active(struct i915_request *rq, struct i915_active *ref)
590 void i915_active_fini(struct i915_active *ref)
605 static struct active_node *reuse_idle_barrier(struct i915_active *ref, u64 idx)
617 * i915_active, due to overlapping active phases there is likely a
706 int i915_active_acquire_preallocate_barrier(struct i915_active *ref,
789 void i915_active_acquire_barrier(struct i915_active *ref)
798 * i915_active rbtree, but only as proto-nodes. They will be
860 * that the parent i915_active will be released when this request
993 #include "selftests/i915_active.c"