Lines Matching full:wakeup
29 * wakeup - Report/change current wakeup option for device
31 * Some devices support "wakeup" events, which are hardware signals
33 * devices have one of three values for the sysfs power/wakeup file:
37 * + "\n" for temporary or permanent inability to issue wakeup.
41 * Familiar examples of devices that can issue wakeup events include
46 * Some wakeup events use normal IRQ lines; other use special out
50 * wakeup signaling as part of changing device power states, respecting
53 * Devices may not be able to generate wakeup events from all power
56 * active, or which may have wakeup disabled. Some drivers rely on
57 * wakeup events internally (unless they are disabled), keeping
91 * wakeup_count - Report the number of wakeup events related to the device
346 static DEVICE_ATTR_RW(wakeup);
355 if (dev->power.wakeup) { in wakeup_count_show()
356 count = dev->power.wakeup->wakeup_count; in wakeup_count_show()
376 if (dev->power.wakeup) { in wakeup_active_count_show()
377 count = dev->power.wakeup->active_count; in wakeup_active_count_show()
397 if (dev->power.wakeup) { in wakeup_abort_count_show()
398 count = dev->power.wakeup->wakeup_count; in wakeup_abort_count_show()
418 if (dev->power.wakeup) { in wakeup_expire_count_show()
419 count = dev->power.wakeup->expire_count; in wakeup_expire_count_show()
438 if (dev->power.wakeup) { in wakeup_active_show()
439 active = dev->power.wakeup->active; in wakeup_active_show()
459 if (dev->power.wakeup) { in wakeup_total_time_ms_show()
460 msec = ktime_to_ms(dev->power.wakeup->total_time); in wakeup_total_time_ms_show()
479 if (dev->power.wakeup) { in wakeup_max_time_ms_show()
480 msec = ktime_to_ms(dev->power.wakeup->max_time); in wakeup_max_time_ms_show()
500 if (dev->power.wakeup) { in wakeup_last_time_ms_show()
501 msec = ktime_to_ms(dev->power.wakeup->last_time); in wakeup_last_time_ms_show()
522 if (dev->power.wakeup) { in wakeup_prevent_sleep_time_ms_show()
523 msec = ktime_to_ms(dev->power.wakeup->prevent_sleep_time); in wakeup_prevent_sleep_time_ms_show()
539 if (dev->power.wakeup && dev->power.wakeup->dev) in dpm_sysfs_wakeup_change_owner()
540 return device_change_owner(dev->power.wakeup->dev, kuid, kgid); in dpm_sysfs_wakeup_change_owner()