Lines Matching refs:rpm

94 assert_rpm_device_not_suspended(struct intel_runtime_pm *rpm)  in assert_rpm_device_not_suspended()  argument
96 WARN_ONCE(rpm->suspended, in assert_rpm_device_not_suspended()
101 __assert_rpm_raw_wakeref_held(struct intel_runtime_pm *rpm, int wakeref_count) in __assert_rpm_raw_wakeref_held() argument
103 assert_rpm_device_not_suspended(rpm); in __assert_rpm_raw_wakeref_held()
109 __assert_rpm_wakelock_held(struct intel_runtime_pm *rpm, int wakeref_count) in __assert_rpm_wakelock_held() argument
111 __assert_rpm_raw_wakeref_held(rpm, wakeref_count); in __assert_rpm_wakelock_held()
117 assert_rpm_raw_wakeref_held(struct intel_runtime_pm *rpm) in assert_rpm_raw_wakeref_held() argument
119 __assert_rpm_raw_wakeref_held(rpm, atomic_read(&rpm->wakeref_count)); in assert_rpm_raw_wakeref_held()
123 assert_rpm_wakelock_held(struct intel_runtime_pm *rpm) in assert_rpm_wakelock_held() argument
125 __assert_rpm_wakelock_held(rpm, atomic_read(&rpm->wakeref_count)); in assert_rpm_wakelock_held()
147 disable_rpm_wakeref_asserts(struct intel_runtime_pm *rpm) in disable_rpm_wakeref_asserts() argument
150 &rpm->wakeref_count); in disable_rpm_wakeref_asserts()
165 enable_rpm_wakeref_asserts(struct intel_runtime_pm *rpm) in enable_rpm_wakeref_asserts() argument
168 &rpm->wakeref_count); in enable_rpm_wakeref_asserts()
171 void intel_runtime_pm_init_early(struct intel_runtime_pm *rpm);
172 void intel_runtime_pm_enable(struct intel_runtime_pm *rpm);
173 void intel_runtime_pm_disable(struct intel_runtime_pm *rpm);
174 void intel_runtime_pm_driver_release(struct intel_runtime_pm *rpm);
176 intel_wakeref_t intel_runtime_pm_get(struct intel_runtime_pm *rpm);
177 intel_wakeref_t intel_runtime_pm_get_if_in_use(struct intel_runtime_pm *rpm);
178 intel_wakeref_t intel_runtime_pm_get_if_active(struct intel_runtime_pm *rpm);
179 intel_wakeref_t intel_runtime_pm_get_noresume(struct intel_runtime_pm *rpm);
180 intel_wakeref_t intel_runtime_pm_get_raw(struct intel_runtime_pm *rpm);
182 #define with_intel_runtime_pm(rpm, wf) \ argument
183 for ((wf) = intel_runtime_pm_get(rpm); (wf); \
184 intel_runtime_pm_put((rpm), (wf)), (wf) = 0)
186 #define with_intel_runtime_pm_if_in_use(rpm, wf) \ argument
187 for ((wf) = intel_runtime_pm_get_if_in_use(rpm); (wf); \
188 intel_runtime_pm_put((rpm), (wf)), (wf) = 0)
190 #define with_intel_runtime_pm_if_active(rpm, wf) \ argument
191 for ((wf) = intel_runtime_pm_get_if_active(rpm); (wf); \
192 intel_runtime_pm_put((rpm), (wf)), (wf) = 0)
194 void intel_runtime_pm_put_unchecked(struct intel_runtime_pm *rpm);
196 void intel_runtime_pm_put(struct intel_runtime_pm *rpm, intel_wakeref_t wref);
199 intel_runtime_pm_put(struct intel_runtime_pm *rpm, intel_wakeref_t wref) in intel_runtime_pm_put() argument
201 intel_runtime_pm_put_unchecked(rpm); in intel_runtime_pm_put()
204 void intel_runtime_pm_put_raw(struct intel_runtime_pm *rpm, intel_wakeref_t wref);
207 void print_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm,
210 static inline void print_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm, in print_intel_runtime_pm_wakeref() argument