Lines Matching refs:active
96 __i915_active_acquire(&ce->active); in intel_context_active_acquire()
103 err = i915_active_acquire_preallocate_barrier(&ce->active, in intel_context_active_acquire()
106 i915_active_release(&ce->active); in intel_context_active_acquire()
114 i915_active_acquire_barrier(&ce->active); in intel_context_active_release()
115 i915_active_release(&ce->active); in intel_context_active_release()
127 err = i915_active_acquire(&vma->active); in __context_pin_state()
148 i915_active_release(&vma->active); in __context_unpin_state()
161 err = i915_active_acquire(&ring->vma->active); in __ring_active()
174 i915_active_release(&ring->vma->active); in __ring_retire()
252 err = i915_active_acquire(&ce->active); in __intel_context_do_pin_ww()
294 i915_active_release(&ce->active); in __intel_context_do_pin_ww()
350 static void __intel_context_retire(struct i915_active *active) in __intel_context_retire() argument
352 struct intel_context *ce = container_of(active, typeof(*ce), active); in __intel_context_retire()
363 static int __intel_context_active(struct i915_active *active) in __intel_context_active() argument
365 struct intel_context *ce = container_of(active, typeof(*ce), active); in __intel_context_active()
370 GEM_WARN_ON(!i915_active_acquire_if_busy(&ce->ring->vma->active)); in __intel_context_active()
376 GEM_WARN_ON(!i915_active_acquire_if_busy(&ce->state->active)); in __intel_context_active()
434 i915_active_init(&ce->active, in intel_context_init()
452 i915_active_fini(&ce->active); in intel_context_fini()
505 GEM_BUG_ON(i915_active_is_idle(&ce->active)); in intel_context_prepare_remote_request()
506 return i915_active_add_request(&ce->active, rq); in intel_context_prepare_remote_request()
550 struct i915_request *rq, *active = NULL; in intel_context_get_active_request() local
569 active = rq; in intel_context_get_active_request()
571 if (active) in intel_context_get_active_request()
572 active = i915_request_get_rcu(active); in intel_context_get_active_request()
575 return active; in intel_context_get_active_request()
599 u64 total, active; in intel_context_get_total_runtime_ns() local
608 active = READ_ONCE(ce->stats.active); in intel_context_get_total_runtime_ns()
609 if (active) in intel_context_get_total_runtime_ns()
610 active = intel_context_clock() - active; in intel_context_get_total_runtime_ns()
612 return total + active; in intel_context_get_total_runtime_ns()