Lines Matching full:state

69  * This way we can check if the subsystem properly handled its state.
116 * - notification when domain state changes
121 enum pm_device_state state; in ZTEST() local
142 pm_device_state_get(domain, &state); in ZTEST()
143 zassert_equal(state, PM_DEVICE_STATE_SUSPENDED); in ZTEST()
145 pm_device_state_get(deva, &state); in ZTEST()
146 zassert_equal(state, PM_DEVICE_STATE_SUSPENDED); in ZTEST()
148 pm_device_state_get(devb, &state); in ZTEST()
149 zassert_equal(state, PM_DEVICE_STATE_SUSPENDED); in ZTEST()
151 pm_device_state_get(devc, &state); in ZTEST()
152 zassert_equal(state, PM_DEVICE_STATE_SUSPENDED); in ZTEST()
158 pm_device_state_get(deva, &state); in ZTEST()
159 zassert_equal(state, PM_DEVICE_STATE_ACTIVE); in ZTEST()
161 pm_device_state_get(domain, &state); in ZTEST()
162 zassert_equal(state, PM_DEVICE_STATE_ACTIVE); in ZTEST()
177 pm_device_state_get(domain, &state); in ZTEST()
178 zassert_equal(state, PM_DEVICE_STATE_ACTIVE); in ZTEST()
190 pm_device_state_get(domain, &state); in ZTEST()
191 zassert_equal(state, PM_DEVICE_STATE_SUSPENDED); in ZTEST()
194 * With the domain suspended the device state should be OFF, since in ZTEST()
197 pm_device_state_get(devb, &state); in ZTEST()
198 zassert_equal(state, PM_DEVICE_STATE_OFF); in ZTEST()
200 pm_device_state_get(deva, &state); in ZTEST()
201 zassert_equal(state, PM_DEVICE_STATE_OFF); in ZTEST()
205 * changes its state. in ZTEST()
247 enum pm_device_state state; in ZTEST() local
255 pm_device_state_get(balanced_domain, &state); in ZTEST()
256 zassert_equal(state, PM_DEVICE_STATE_SUSPENDED); in ZTEST()
264 pm_device_state_get(balanced_domain, &state); in ZTEST()
265 zassert_equal(state, PM_DEVICE_STATE_SUSPENDED); in ZTEST()
267 /* Same thing with the domain in active state */ in ZTEST()
270 pm_device_state_get(balanced_domain, &state); in ZTEST()
271 zassert_equal(state, PM_DEVICE_STATE_ACTIVE); in ZTEST()
278 pm_device_state_get(balanced_domain, &state); in ZTEST()
279 zassert_equal(state, PM_DEVICE_STATE_ACTIVE); in ZTEST()