Lines Matching refs:device
2 /* sysfs entries for device PM */
3 #include <linux/device.h>
15 * control - Report/change current runtime PM setting of the device
17 * Runtime power management of a device can be blocked with the help of
21 * + "auto\n" to allow the device to be power managed at run time;
22 * + "on\n" to prevent the device from being power managed at run time;
27 * the device at run time. Doing that while the device is suspended causes
30 * wakeup - Report/change current wakeup option for device
46 * wake up the device (if the system as a whole is already active).
50 * It is the responsibility of device drivers to enable (or disable)
51 * wakeup signaling as part of changing device power states, respecting
62 * async - Report/change current async suspend setting for the device
64 * Asynchronous suspend and resume of the device during system-wide power
66 * Analogously, if "disabled" is written to this file, the device will be
71 * + "enabled\n" to permit the asynchronous suspend/resume of the device;
75 * of a device unless it is certain that all of the PM dependencies of the
76 * device are known to the PM core. However, for some devices this
77 * attribute is set to "enabled" by bus type code or device drivers and in
80 * autosuspend_delay_ms - Report/change a device's autosuspend_delay value
83 * device becomes idle; they want it always to remain idle for some period
86 * If the value is negative then the device will never be runtime
92 * wakeup_count - Report the number of wakeup events related to the device
101 static ssize_t control_show(struct device *dev, struct device_attribute *attr,
108 static ssize_t control_store(struct device * dev, struct device_attribute *attr,
124 static ssize_t runtime_active_time_show(struct device *dev,
137 static ssize_t runtime_suspended_time_show(struct device *dev,
150 static ssize_t runtime_status_show(struct device *dev,
182 static ssize_t autosuspend_delay_ms_show(struct device *dev,
192 static ssize_t autosuspend_delay_ms_store(struct device *dev,
211 static ssize_t pm_qos_resume_latency_us_show(struct device *dev,
225 static ssize_t pm_qos_resume_latency_us_store(struct device *dev,
255 static ssize_t pm_qos_latency_tolerance_us_show(struct device *dev,
269 static ssize_t pm_qos_latency_tolerance_us_store(struct device *dev,
294 static ssize_t pm_qos_no_power_off_show(struct device *dev,
302 static ssize_t pm_qos_no_power_off_store(struct device *dev,
324 static ssize_t wakeup_show(struct device *dev, struct device_attribute *attr,
332 static ssize_t wakeup_store(struct device *dev, struct device_attribute *attr,
349 static ssize_t wakeup_count_show(struct device *dev,
369 static ssize_t wakeup_active_count_show(struct device *dev,
390 static ssize_t wakeup_abort_count_show(struct device *dev,
411 static ssize_t wakeup_expire_count_show(struct device *dev,
432 static ssize_t wakeup_active_show(struct device *dev,
452 static ssize_t wakeup_total_time_ms_show(struct device *dev,
473 static ssize_t wakeup_max_time_ms_show(struct device *dev,
493 static ssize_t wakeup_last_time_ms_show(struct device *dev,
512 static inline int dpm_sysfs_wakeup_change_owner(struct device *dev, kuid_t kuid,
523 static ssize_t wakeup_prevent_sleep_time_ms_show(struct device *dev,
545 static inline int dpm_sysfs_wakeup_change_owner(struct device *dev, kuid_t kuid,
553 static ssize_t runtime_usage_show(struct device *dev,
560 static ssize_t runtime_active_kids_show(struct device *dev,
569 static ssize_t runtime_enabled_show(struct device *dev,
588 static ssize_t async_show(struct device *dev, struct device_attribute *attr,
596 static ssize_t async_store(struct device *dev, struct device_attribute *attr,
694 int dpm_sysfs_add(struct device *dev)
738 int dpm_sysfs_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid)
777 int wakeup_sysfs_add(struct device *dev)
787 void wakeup_sysfs_remove(struct device *dev)
793 int pm_qos_sysfs_add_resume_latency(struct device *dev)
798 void pm_qos_sysfs_remove_resume_latency(struct device *dev)
803 int pm_qos_sysfs_add_flags(struct device *dev)
808 void pm_qos_sysfs_remove_flags(struct device *dev)
813 int pm_qos_sysfs_add_latency_tolerance(struct device *dev)
819 void pm_qos_sysfs_remove_latency_tolerance(struct device *dev)
824 void rpm_sysfs_remove(struct device *dev)
829 void dpm_sysfs_remove(struct device *dev)