Lines Matching +full:autosuspend +full:- +full:delay
2 * SPDX-License-Identifier: MIT
72 * Note that @fn is allowed to fail, in which case the runtime-pm wakeref
81 if (unlikely(!atomic_inc_not_zero(&wf->count))) in intel_wakeref_get()
99 return atomic_inc_not_zero(&wf->count); in intel_wakeref_get_if_active()
112 * Note that @fn is allowed to fail, in which case the runtime-pm wakeref
121 INTEL_WAKEREF_BUG_ON(atomic_read(&wf->count) <= 0); in intel_wakeref_put()
122 if (unlikely(!atomic_add_unless(&wf->count, -1, 1))) in intel_wakeref_put()
136 __acquires(wf->mutex) in intel_wakeref_lock()
138 mutex_lock(&wf->mutex); in intel_wakeref_lock()
149 __releases(wf->mutex) in intel_wakeref_unlock()
151 mutex_unlock(&wf->mutex); in intel_wakeref_unlock()
163 return READ_ONCE(wf->wakeref); in intel_wakeref_is_active()
173 INTEL_WAKEREF_BUG_ON(atomic_read(&wf->count)); in __intel_wakeref_defer_park()
174 atomic_set_release(&wf->count, 1); in __intel_wakeref_defer_park()
199 * intel_wakeref_auto: Delay the runtime-pm autosuspend
203 * The runtime-pm core uses a suspend delay after the last wakeref
205 * delay is configurable via sysfs with little regard to the device
206 * characteristics. Instead, we want to tune the autosuspend based on our
210 * Pass @timeout = 0 to cancel a previous autosuspend by executing the