Home
last modified time | relevance | path

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

/netbsd-src/sys/external/bsd/drm2/dist/drm/i915/
H A Dintel_runtime_pm.h53 atomic_t wakeref_count; member
80 BITS_PER_TYPE(struct_member(struct intel_runtime_pm, wakeref_count))
86 intel_rpm_raw_wakeref_count(int wakeref_count) in intel_rpm_raw_wakeref_count() argument
88 return wakeref_count & INTEL_RPM_RAW_WAKEREF_MASK; in intel_rpm_raw_wakeref_count()
92 intel_rpm_wakelock_count(int wakeref_count) in intel_rpm_wakelock_count() argument
94 return wakeref_count >> INTEL_RPM_WAKELOCK_SHIFT; in intel_rpm_wakelock_count()
105 __assert_rpm_raw_wakeref_held(struct intel_runtime_pm *rpm, int wakeref_count) in __assert_rpm_raw_wakeref_held() argument
108 WARN_ONCE(!intel_rpm_raw_wakeref_count(wakeref_count), in __assert_rpm_raw_wakeref_held()
113 __assert_rpm_wakelock_held(struct intel_runtime_pm *rpm, int wakeref_count) in __assert_rpm_wakelock_held() argument
115 __assert_rpm_raw_wakeref_held(rpm, wakeref_count); in __assert_rpm_wakelock_held()
[all …]
H A Dintel_runtime_pm.c151 rpm->debug.count, atomic_read(&rpm->wakeref_count))) { in untrack_intel_runtime_pm_wakeref()
251 if (!atomic_dec_and_lock_irqsave(&rpm->wakeref_count, in __intel_wakeref_dec_and_check_tracking()
336 atomic_dec(&rpm->wakeref_count); in __intel_wakeref_dec_and_check_tracking()
350 atomic_add(1 + INTEL_RPM_WAKELOCK_BIAS, &rpm->wakeref_count); in intel_runtime_pm_acquire()
353 atomic_inc(&rpm->wakeref_count); in intel_runtime_pm_acquire()
363 atomic_sub(INTEL_RPM_WAKELOCK_BIAS, &rpm->wakeref_count); in intel_runtime_pm_release()
613 int count = atomic_read(&rpm->wakeref_count); in intel_runtime_pm_driver_release()
H A Di915_gpu_error.c1726 error->wakelock = atomic_read(&i915->runtime_pm.wakeref_count); in capture_gen()
H A Di915_drv.c2690 WARN_ON_ONCE(atomic_read(&rpm->wakeref_count)); in intel_runtime_resume()
H A Dintel_pm.c7333 atomic_set(&dev_priv->runtime_pm.wakeref_count, 0); in intel_pm_setup()