Lines Matching full:active

80 	__i915_active_acquire(&ce->active);  in intel_context_active_acquire()
87 err = i915_active_acquire_preallocate_barrier(&ce->active, in intel_context_active_acquire()
90 i915_active_release(&ce->active); in intel_context_active_acquire()
98 i915_active_acquire_barrier(&ce->active); in intel_context_active_release()
99 i915_active_release(&ce->active); in intel_context_active_release()
111 err = i915_active_acquire(&vma->active); in __context_pin_state()
132 i915_active_release(&vma->active); in __context_unpin_state()
145 err = i915_active_acquire(&ring->vma->active); in __ring_active()
158 i915_active_release(&ring->vma->active); in __ring_retire()
167 CE_TRACE(ce, "active\n"); in intel_context_pre_pin()
236 err = i915_active_acquire(&ce->active); in __intel_context_do_pin_ww()
278 i915_active_release(&ce->active); in __intel_context_do_pin_ww()
323 * Once released, we may asynchronously drop the active reference. in __intel_context_do_unpin()
334 static void __intel_context_retire(struct i915_active *active) in __intel_context_retire() argument
336 struct intel_context *ce = container_of(active, typeof(*ce), active); in __intel_context_retire()
347 static int __intel_context_active(struct i915_active *active) in __intel_context_active() argument
349 struct intel_context *ce = container_of(active, typeof(*ce), active); in __intel_context_active()
354 GEM_WARN_ON(!i915_active_acquire_if_busy(&ce->ring->vma->active)); in __intel_context_active()
360 GEM_WARN_ON(!i915_active_acquire_if_busy(&ce->state->active)); in __intel_context_active()
418 i915_active_init(&ce->active, in intel_context_init()
436 i915_active_fini(&ce->active); in intel_context_fini()
487 * words transfer the pinned ce object to tracked active request. in intel_context_prepare_remote_request()
489 GEM_BUG_ON(i915_active_is_idle(&ce->active)); in intel_context_prepare_remote_request()
490 return i915_active_add_request(&ce->active, rq); in intel_context_prepare_remote_request()
534 struct i915_request *rq, *active = NULL; in intel_context_find_active_request() local
540 * We search the parent list to find an active request on the submitted in intel_context_find_active_request()
553 active = rq; in intel_context_find_active_request()
557 return active; in intel_context_find_active_request()
581 u64 total, active; in intel_context_get_total_runtime_ns() local
587 active = READ_ONCE(ce->stats.active); in intel_context_get_total_runtime_ns()
588 if (active) in intel_context_get_total_runtime_ns()
589 active = intel_context_clock() - active; in intel_context_get_total_runtime_ns()
591 return total + active; in intel_context_get_total_runtime_ns()