Home | History | Annotate | Download | only in i915

Lines Matching refs:active

46  * can then perform any action, such as delayed freeing of an active
54 * @active - the active tracker
59 * i915_active_fence_init() prepares the embedded @active struct for use as
60 * an activity tracker, that is for tracking the last known active fence
65 __i915_active_fence_init(struct i915_active_fence *active,
69 RCU_INIT_POINTER(active->fence, fence);
70 active->cb.func = fn ?: i915_active_noop;
77 __i915_active_fence_set(struct i915_active_fence *active,
82 * @active - the active tracker
86 * that @rq is busy, the @active reports busy. When that @rq is signaled
87 * (or else retired) the @active tracker is updated to report idle.
90 i915_active_fence_set(struct i915_active_fence *active,
93 * i915_active_fence_get - return a reference to the active fence
94 * @active - the active tracker
96 * i915_active_fence_get() returns a reference to the active fence,
97 * or NULL if the active tracker is idle. The reference is obtained under RCU,
103 i915_active_fence_get(struct i915_active_fence *active)
108 fence = dma_fence_get_rcu_safe(&active->fence);
115 * i915_active_fence_isset - report whether the active tracker is assigned
116 * @active - the active tracker
118 * i915_active_fence_isset() returns true if the active tracker is currently
123 i915_active_fence_isset(const struct i915_active_fence *active)
125 return rcu_access_pointer(active->fence);
155 int (*active)(struct i915_active *ref),
161 #define i915_active_init(ref, active, retire) do { \
165 __i915_active_init(ref, active, retire, &__mkey, &__wkey); \