Lines Matching refs:power

105 				dev->power.runtime_auto ? ctrl_auto : ctrl_on);  in control_show()
134 spin_lock_irq(&dev->power.lock); in rtpm_active_time_show()
136 ret = sprintf(buf, "%i\n", jiffies_to_msecs(dev->power.active_jiffies)); in rtpm_active_time_show()
137 spin_unlock_irq(&dev->power.lock); in rtpm_active_time_show()
147 spin_lock_irq(&dev->power.lock); in rtpm_suspended_time_show()
150 jiffies_to_msecs(dev->power.suspended_jiffies)); in rtpm_suspended_time_show()
151 spin_unlock_irq(&dev->power.lock); in rtpm_suspended_time_show()
162 if (dev->power.runtime_error) { in rtpm_status_show()
164 } else if (dev->power.disable_depth) { in rtpm_status_show()
167 switch (dev->power.runtime_status) { in rtpm_status_show()
192 if (!dev->power.use_autosuspend) in autosuspend_delay_ms_show()
194 return sprintf(buf, "%d\n", dev->power.autosuspend_delay); in autosuspend_delay_ms_show()
202 if (!dev->power.use_autosuspend) in autosuspend_delay_ms_store()
237 ret = dev_pm_qos_update_request(dev->power.qos->resume_latency_req, in pm_qos_resume_latency_store()
377 spin_lock_irq(&dev->power.lock); in wakeup_count_show()
378 if (dev->power.wakeup) { in wakeup_count_show()
379 count = dev->power.wakeup->event_count; in wakeup_count_show()
382 spin_unlock_irq(&dev->power.lock); in wakeup_count_show()
394 spin_lock_irq(&dev->power.lock); in wakeup_active_count_show()
395 if (dev->power.wakeup) { in wakeup_active_count_show()
396 count = dev->power.wakeup->active_count; in wakeup_active_count_show()
399 spin_unlock_irq(&dev->power.lock); in wakeup_active_count_show()
412 spin_lock_irq(&dev->power.lock); in wakeup_abort_count_show()
413 if (dev->power.wakeup) { in wakeup_abort_count_show()
414 count = dev->power.wakeup->wakeup_count; in wakeup_abort_count_show()
417 spin_unlock_irq(&dev->power.lock); in wakeup_abort_count_show()
430 spin_lock_irq(&dev->power.lock); in wakeup_expire_count_show()
431 if (dev->power.wakeup) { in wakeup_expire_count_show()
432 count = dev->power.wakeup->expire_count; in wakeup_expire_count_show()
435 spin_unlock_irq(&dev->power.lock); in wakeup_expire_count_show()
447 spin_lock_irq(&dev->power.lock); in wakeup_active_show()
448 if (dev->power.wakeup) { in wakeup_active_show()
449 active = dev->power.wakeup->active; in wakeup_active_show()
452 spin_unlock_irq(&dev->power.lock); in wakeup_active_show()
464 spin_lock_irq(&dev->power.lock); in wakeup_total_time_show()
465 if (dev->power.wakeup) { in wakeup_total_time_show()
466 msec = ktime_to_ms(dev->power.wakeup->total_time); in wakeup_total_time_show()
469 spin_unlock_irq(&dev->power.lock); in wakeup_total_time_show()
481 spin_lock_irq(&dev->power.lock); in wakeup_max_time_show()
482 if (dev->power.wakeup) { in wakeup_max_time_show()
483 msec = ktime_to_ms(dev->power.wakeup->max_time); in wakeup_max_time_show()
486 spin_unlock_irq(&dev->power.lock); in wakeup_max_time_show()
498 spin_lock_irq(&dev->power.lock); in wakeup_last_time_show()
499 if (dev->power.wakeup) { in wakeup_last_time_show()
500 msec = ktime_to_ms(dev->power.wakeup->last_time); in wakeup_last_time_show()
503 spin_unlock_irq(&dev->power.lock); in wakeup_last_time_show()
517 spin_lock_irq(&dev->power.lock); in wakeup_prevent_sleep_time_show()
518 if (dev->power.wakeup) { in wakeup_prevent_sleep_time_show()
519 msec = ktime_to_ms(dev->power.wakeup->prevent_sleep_time); in wakeup_prevent_sleep_time_show()
522 spin_unlock_irq(&dev->power.lock); in wakeup_prevent_sleep_time_show()
535 return sprintf(buf, "%d\n", atomic_read(&dev->power.usage_count)); in rtpm_usagecount_show()
541 return sprintf(buf, "%d\n", dev->power.ignore_children ? in rtpm_children_show()
542 0 : atomic_read(&dev->power.child_count)); in rtpm_children_show()
548 if ((dev->power.disable_depth) && (dev->power.runtime_auto == false)) in rtpm_enabled_show()
550 else if (dev->power.disable_depth) in rtpm_enabled_show()
552 else if (dev->power.runtime_auto == false) in rtpm_enabled_show()
694 if (dev->power.set_latency_tolerance) { in dpm_sysfs_add()