Home | History | Annotate | Download | only in i915

Lines Matching defs:wakeref

43 	intel_wakeref_t wakeref;
73 * intel_wakeref_get: Acquire the wakeref
74 * @wf: the wakeref
76 * Acquire a hold on the wakeref. The first user to do so, will acquire
77 * the runtime pm wakeref and then call the @fn underneath the wakeref
80 * Note that @fn is allowed to fail, in which case the runtime-pm wakeref
83 * Returns: 0 if the wakeref was acquired successfully, or a negative error
97 * __intel_wakeref_get: Acquire the wakeref, again
98 * @wf: the wakeref
100 * Increment the wakeref counter, only valid if it is already held by
113 * intel_wakeref_get_if_in_use: Acquire the wakeref
114 * @wf: the wakeref
116 * Acquire a hold on the wakeref, but only if the wakeref is already
119 * Returns: true if the wakeref was acquired, false otherwise.
128 * intel_wakeref_put_flags: Release the wakeref
129 * @wf: the wakeref
132 * Release our hold on the wakeref. When there are no more users,
133 * the runtime pm wakeref will be released after the @fn callback is called
134 * underneath the wakeref mutex.
136 * Note that @fn is allowed to fail, in which case the runtime-pm wakeref
139 * Returns: 0 if the wakeref was released successfully, or a negative error
165 * intel_wakeref_lock: Lock the wakeref (mutex)
166 * @wf: the wakeref
168 * Locks the wakeref to prevent it being acquired or released. New users
169 * can still adjust the counter, but the wakeref itself (and callback)
180 * intel_wakeref_unlock: Unlock the wakeref
181 * @wf: the wakeref
194 * @wf: the wakeref
208 * intel_wakeref_is_active: Query whether the wakeref is currently held
209 * @wf: the wakeref
211 * Returns: true if the wakeref is currently held.
216 return READ_ONCE(wf->wakeref);
221 * @wf: the wakeref
232 * intel_wakeref_wait_for_idle: Wait until the wakeref is idle
233 * @wf: the wakeref
235 * Wait for the earlier asynchronous release of the wakeref. Note
237 * when you have control over the wakeref and trust no one else is acquiring
247 intel_wakeref_t wakeref;
254 * @wf: the wakeref
257 * The runtime-pm core uses a suspend delay after the last wakeref