Home
last modified time | relevance | path

Searched refs:wakeref_count (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/gpu/drm/i915/
H A Dintel_runtime_pm.h42 atomic_t wakeref_count; member
83 BITS_PER_TYPE(typeof_member(struct intel_runtime_pm, wakeref_count))
89 intel_rpm_raw_wakeref_count(int wakeref_count) in intel_rpm_raw_wakeref_count() argument
91 return wakeref_count & INTEL_RPM_RAW_WAKEREF_MASK; in intel_rpm_raw_wakeref_count()
95 intel_rpm_wakelock_count(int wakeref_count) in intel_rpm_wakelock_count() argument
97 return wakeref_count >> INTEL_RPM_WAKELOCK_SHIFT; in intel_rpm_wakelock_count()
108 __assert_rpm_raw_wakeref_held(struct intel_runtime_pm *rpm, int wakeref_count) in __assert_rpm_raw_wakeref_held() argument
111 WARN_ONCE(!intel_rpm_raw_wakeref_count(wakeref_count), in __assert_rpm_raw_wakeref_held()
116 __assert_rpm_wakelock_held(struct intel_runtime_pm *rpm, int wakeref_count) in __assert_rpm_wakelock_held() argument
118 __assert_rpm_raw_wakeref_held(rpm, wakeref_count); in __assert_rpm_wakelock_held()
[all …]
H A Dintel_runtime_pm.c93 if (!atomic_dec_and_lock_irqsave(&rpm->wakeref_count, in __intel_wakeref_dec_and_check_tracking()
128 atomic_dec(&rpm->wakeref_count); in __intel_wakeref_dec_and_check_tracking()
142 atomic_add(1 + INTEL_RPM_WAKELOCK_BIAS, &rpm->wakeref_count); in intel_runtime_pm_acquire()
145 atomic_inc(&rpm->wakeref_count); in intel_runtime_pm_acquire()
155 atomic_sub(INTEL_RPM_WAKELOCK_BIAS, &rpm->wakeref_count); in intel_runtime_pm_release()
439 int count = atomic_read(&rpm->wakeref_count); in intel_runtime_pm_driver_release()
463 atomic_set(&rpm->wakeref_count, 0); in intel_runtime_pm_init_early()
H A Di915_driver.c1570 drm_WARN_ON_ONCE(&dev_priv->drm, atomic_read(&rpm->wakeref_count)); in intel_runtime_resume()
H A Di915_gpu_error.c1988 error->wakelock = atomic_read(&i915->runtime_pm.wakeref_count); in capture_gen()