Lines Matching full:rpm
100 intel_runtime_pm_suspended(struct intel_runtime_pm *rpm) in intel_runtime_pm_suspended() argument
102 return pm_runtime_suspended(rpm->kdev); in intel_runtime_pm_suspended()
106 assert_rpm_device_not_suspended(struct intel_runtime_pm *rpm) in assert_rpm_device_not_suspended() argument
108 WARN_ONCE(intel_runtime_pm_suspended(rpm), in assert_rpm_device_not_suspended()
113 __assert_rpm_raw_wakeref_held(struct intel_runtime_pm *rpm, int wakeref_count) in __assert_rpm_raw_wakeref_held() argument
115 assert_rpm_device_not_suspended(rpm); in __assert_rpm_raw_wakeref_held()
117 "RPM raw-wakeref not held\n"); in __assert_rpm_raw_wakeref_held()
121 __assert_rpm_wakelock_held(struct intel_runtime_pm *rpm, int wakeref_count) in __assert_rpm_wakelock_held() argument
123 __assert_rpm_raw_wakeref_held(rpm, wakeref_count); in __assert_rpm_wakelock_held()
125 "RPM wakelock ref not held during HW access\n"); in __assert_rpm_wakelock_held()
129 assert_rpm_raw_wakeref_held(struct intel_runtime_pm *rpm) in assert_rpm_raw_wakeref_held() argument
131 __assert_rpm_raw_wakeref_held(rpm, atomic_read(&rpm->wakeref_count)); in assert_rpm_raw_wakeref_held()
135 assert_rpm_wakelock_held(struct intel_runtime_pm *rpm) in assert_rpm_wakelock_held() argument
137 __assert_rpm_wakelock_held(rpm, atomic_read(&rpm->wakeref_count)); in assert_rpm_wakelock_held()
141 * disable_rpm_wakeref_asserts - disable the RPM assert checks
142 * @rpm: the intel_runtime_pm structure
144 * This function disable asserts that check if we hold an RPM wakelock
149 * an active state we must hold an RPM wakelock reference acquired via one of
159 disable_rpm_wakeref_asserts(struct intel_runtime_pm *rpm) in disable_rpm_wakeref_asserts() argument
162 &rpm->wakeref_count); in disable_rpm_wakeref_asserts()
166 * enable_rpm_wakeref_asserts - re-enable the RPM assert checks
167 * @rpm: the intel_runtime_pm structure
169 * This function re-enables the RPM assert checks after disabling them with
177 enable_rpm_wakeref_asserts(struct intel_runtime_pm *rpm) in enable_rpm_wakeref_asserts() argument
180 &rpm->wakeref_count); in enable_rpm_wakeref_asserts()
183 void intel_runtime_pm_init_early(struct intel_runtime_pm *rpm);
184 void intel_runtime_pm_enable(struct intel_runtime_pm *rpm);
185 void intel_runtime_pm_disable(struct intel_runtime_pm *rpm);
186 void intel_runtime_pm_driver_release(struct intel_runtime_pm *rpm);
187 void intel_runtime_pm_driver_last_release(struct intel_runtime_pm *rpm);
189 intel_wakeref_t intel_runtime_pm_get(struct intel_runtime_pm *rpm);
190 intel_wakeref_t intel_runtime_pm_get_if_in_use(struct intel_runtime_pm *rpm);
191 intel_wakeref_t intel_runtime_pm_get_if_active(struct intel_runtime_pm *rpm);
192 intel_wakeref_t intel_runtime_pm_get_noresume(struct intel_runtime_pm *rpm);
193 intel_wakeref_t intel_runtime_pm_get_raw(struct intel_runtime_pm *rpm);
195 #define with_intel_runtime_pm(rpm, wf) \ argument
196 for ((wf) = intel_runtime_pm_get(rpm); (wf); \
197 intel_runtime_pm_put((rpm), (wf)), (wf) = NULL)
199 #define with_intel_runtime_pm_if_in_use(rpm, wf) \ argument
200 for ((wf) = intel_runtime_pm_get_if_in_use(rpm); (wf); \
201 intel_runtime_pm_put((rpm), (wf)), (wf) = NULL)
203 #define with_intel_runtime_pm_if_active(rpm, wf) \ argument
204 for ((wf) = intel_runtime_pm_get_if_active(rpm); (wf); \
205 intel_runtime_pm_put((rpm), (wf)), (wf) = NULL)
207 void intel_runtime_pm_put_unchecked(struct intel_runtime_pm *rpm);
209 void intel_runtime_pm_put(struct intel_runtime_pm *rpm, intel_wakeref_t wref);
212 intel_runtime_pm_put(struct intel_runtime_pm *rpm, intel_wakeref_t wref) in intel_runtime_pm_put() argument
214 intel_runtime_pm_put_unchecked(rpm); in intel_runtime_pm_put()
217 void intel_runtime_pm_put_raw(struct intel_runtime_pm *rpm, intel_wakeref_t wref);
220 void print_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm,
223 static inline void print_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm, in print_intel_runtime_pm_wakeref() argument