Lines Matching full:rpm
96 assert_rpm_device_not_suspended(struct intel_runtime_pm *rpm) in assert_rpm_device_not_suspended() argument
98 WARN_ONCE(rpm->suspended, in assert_rpm_device_not_suspended()
103 __assert_rpm_raw_wakeref_held(struct intel_runtime_pm *rpm, int wakeref_count) in __assert_rpm_raw_wakeref_held() argument
105 assert_rpm_device_not_suspended(rpm); in __assert_rpm_raw_wakeref_held()
107 "RPM raw-wakeref not held\n"); in __assert_rpm_raw_wakeref_held()
111 __assert_rpm_wakelock_held(struct intel_runtime_pm *rpm, int wakeref_count) in __assert_rpm_wakelock_held() argument
113 __assert_rpm_raw_wakeref_held(rpm, wakeref_count); in __assert_rpm_wakelock_held()
115 "RPM wakelock ref not held during HW access\n"); in __assert_rpm_wakelock_held()
119 assert_rpm_raw_wakeref_held(struct intel_runtime_pm *rpm) in assert_rpm_raw_wakeref_held() argument
121 __assert_rpm_raw_wakeref_held(rpm, atomic_read(&rpm->wakeref_count)); in assert_rpm_raw_wakeref_held()
125 assert_rpm_wakelock_held(struct intel_runtime_pm *rpm) in assert_rpm_wakelock_held() argument
127 __assert_rpm_wakelock_held(rpm, atomic_read(&rpm->wakeref_count)); in assert_rpm_wakelock_held()
131 * disable_rpm_wakeref_asserts - disable the RPM assert checks
132 * @rpm: the intel_runtime_pm structure
134 * This function disable asserts that check if we hold an RPM wakelock
139 * an active state we must hold an RPM wakelock reference acquired via one of
149 disable_rpm_wakeref_asserts(struct intel_runtime_pm *rpm) in disable_rpm_wakeref_asserts() argument
152 &rpm->wakeref_count); in disable_rpm_wakeref_asserts()
156 * enable_rpm_wakeref_asserts - re-enable the RPM assert checks
157 * @rpm: the intel_runtime_pm structure
159 * This function re-enables the RPM assert checks after disabling them with
167 enable_rpm_wakeref_asserts(struct intel_runtime_pm *rpm) in enable_rpm_wakeref_asserts() argument
170 &rpm->wakeref_count); in enable_rpm_wakeref_asserts()
173 void intel_runtime_pm_init_early(struct intel_runtime_pm *rpm);
174 void intel_runtime_pm_enable(struct intel_runtime_pm *rpm);
175 void intel_runtime_pm_disable(struct intel_runtime_pm *rpm);
176 void intel_runtime_pm_driver_release(struct intel_runtime_pm *rpm);
178 intel_wakeref_t intel_runtime_pm_get(struct intel_runtime_pm *rpm);
179 intel_wakeref_t intel_runtime_pm_get_if_in_use(struct intel_runtime_pm *rpm);
180 intel_wakeref_t intel_runtime_pm_get_noresume(struct intel_runtime_pm *rpm);
181 intel_wakeref_t intel_runtime_pm_get_raw(struct intel_runtime_pm *rpm);
183 #define with_intel_runtime_pm(rpm, wf) \ argument
184 for ((wf) = intel_runtime_pm_get(rpm); (wf); \
185 intel_runtime_pm_put((rpm), (wf)), (wf) = 0)
187 #define with_intel_runtime_pm_if_in_use(rpm, wf) \ argument
188 for ((wf) = intel_runtime_pm_get_if_in_use(rpm); (wf); \
189 intel_runtime_pm_put((rpm), (wf)), (wf) = 0)
191 void intel_runtime_pm_put_unchecked(struct intel_runtime_pm *rpm);
193 void intel_runtime_pm_put(struct intel_runtime_pm *rpm, intel_wakeref_t wref);
196 intel_runtime_pm_put(struct intel_runtime_pm *rpm, intel_wakeref_t wref) in intel_runtime_pm_put() argument
198 intel_runtime_pm_put_unchecked(rpm); in intel_runtime_pm_put()
201 void intel_runtime_pm_put_raw(struct intel_runtime_pm *rpm, intel_wakeref_t wref);
204 void print_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm,
207 static inline void print_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm, in print_intel_runtime_pm_wakeref() argument