Lines Matching refs:flags
77 atomic_set_bit(&pm->flags, PM_DEVICE_FLAG_TURN_ON_FAILED); in pm_device_action_run()
92 atomic_clear_bit(&pm->flags, PM_DEVICE_FLAG_PD_CLAIMED); in pm_device_action_run()
93 atomic_clear_bit(&pm->flags, PM_DEVICE_FLAG_TURN_ON_FAILED); in pm_device_action_run()
236 if (atomic_test_bit(&pm->flags, PM_DEVICE_FLAG_BUSY)) { in pm_device_is_any_busy()
252 return atomic_test_bit(&pm->flags, PM_DEVICE_FLAG_BUSY); in pm_device_is_busy()
263 atomic_set_bit(&pm->flags, PM_DEVICE_FLAG_BUSY); in pm_device_busy_set()
274 atomic_clear_bit(&pm->flags, PM_DEVICE_FLAG_BUSY); in pm_device_busy_clear()
279 atomic_val_t flags, new_flags; in pm_device_wakeup_enable() local
286 flags = atomic_get(&pm->flags); in pm_device_wakeup_enable()
288 if ((flags & BIT(PM_DEVICE_FLAG_WS_CAPABLE)) == 0U) { in pm_device_wakeup_enable()
293 new_flags = flags | in pm_device_wakeup_enable()
296 new_flags = flags & ~BIT(PM_DEVICE_FLAG_WS_ENABLED); in pm_device_wakeup_enable()
299 return atomic_cas(&pm->flags, flags, new_flags); in pm_device_wakeup_enable()
310 return atomic_test_bit(&pm->flags, in pm_device_wakeup_is_enabled()
322 return atomic_test_bit(&pm->flags, in pm_device_wakeup_is_capable()
391 atomic_test_bit(&pm->flags, PM_DEVICE_FLAG_RUNTIME_AUTO)) { in pm_device_driver_init()