• Home
  • Raw
  • Download

Lines Matching refs: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()
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()
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()
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_get_active_request() local
553 active = rq; in intel_context_get_active_request()
555 if (active) in intel_context_get_active_request()
556 active = i915_request_get_rcu(active); in intel_context_get_active_request()
559 return active; in intel_context_get_active_request()
583 u64 total, active; in intel_context_get_total_runtime_ns() local
589 active = READ_ONCE(ce->stats.active); in intel_context_get_total_runtime_ns()
590 if (active) in intel_context_get_total_runtime_ns()
591 active = intel_context_clock() - active; in intel_context_get_total_runtime_ns()
593 return total + active; in intel_context_get_total_runtime_ns()