Lines Matching refs:power
106 dev->power.runtime_auto ? ctrl_auto : ctrl_on); in control_show()
135 spin_lock_irq(&dev->power.lock); in rtpm_active_time_show()
137 ret = sprintf(buf, "%i\n", jiffies_to_msecs(dev->power.active_jiffies)); in rtpm_active_time_show()
138 spin_unlock_irq(&dev->power.lock); in rtpm_active_time_show()
148 spin_lock_irq(&dev->power.lock); in rtpm_suspended_time_show()
151 jiffies_to_msecs(dev->power.suspended_jiffies)); in rtpm_suspended_time_show()
152 spin_unlock_irq(&dev->power.lock); in rtpm_suspended_time_show()
163 if (dev->power.runtime_error) { in rtpm_status_show()
165 } else if (dev->power.disable_depth) { in rtpm_status_show()
168 switch (dev->power.runtime_status) { in rtpm_status_show()
193 if (!dev->power.use_autosuspend) in autosuspend_delay_ms_show()
195 return sprintf(buf, "%d\n", dev->power.autosuspend_delay); in autosuspend_delay_ms_show()
203 if (!dev->power.use_autosuspend) in autosuspend_delay_ms_store()
238 ret = dev_pm_qos_update_request(dev->power.qos->resume_latency_req, in pm_qos_resume_latency_store()
381 spin_lock_irq(&dev->power.lock); in wakeup_count_show()
382 if (dev->power.wakeup) { in wakeup_count_show()
383 count = dev->power.wakeup->event_count; in wakeup_count_show()
386 spin_unlock_irq(&dev->power.lock); in wakeup_count_show()
398 spin_lock_irq(&dev->power.lock); in wakeup_active_count_show()
399 if (dev->power.wakeup) { in wakeup_active_count_show()
400 count = dev->power.wakeup->active_count; in wakeup_active_count_show()
403 spin_unlock_irq(&dev->power.lock); in wakeup_active_count_show()
416 spin_lock_irq(&dev->power.lock); in wakeup_abort_count_show()
417 if (dev->power.wakeup) { in wakeup_abort_count_show()
418 count = dev->power.wakeup->wakeup_count; in wakeup_abort_count_show()
421 spin_unlock_irq(&dev->power.lock); in wakeup_abort_count_show()
434 spin_lock_irq(&dev->power.lock); in wakeup_expire_count_show()
435 if (dev->power.wakeup) { in wakeup_expire_count_show()
436 count = dev->power.wakeup->expire_count; in wakeup_expire_count_show()
439 spin_unlock_irq(&dev->power.lock); in wakeup_expire_count_show()
451 spin_lock_irq(&dev->power.lock); in wakeup_active_show()
452 if (dev->power.wakeup) { in wakeup_active_show()
453 active = dev->power.wakeup->active; in wakeup_active_show()
456 spin_unlock_irq(&dev->power.lock); in wakeup_active_show()
468 spin_lock_irq(&dev->power.lock); in wakeup_total_time_show()
469 if (dev->power.wakeup) { in wakeup_total_time_show()
470 msec = ktime_to_ms(dev->power.wakeup->total_time); in wakeup_total_time_show()
473 spin_unlock_irq(&dev->power.lock); in wakeup_total_time_show()
485 spin_lock_irq(&dev->power.lock); in wakeup_max_time_show()
486 if (dev->power.wakeup) { in wakeup_max_time_show()
487 msec = ktime_to_ms(dev->power.wakeup->max_time); in wakeup_max_time_show()
490 spin_unlock_irq(&dev->power.lock); in wakeup_max_time_show()
502 spin_lock_irq(&dev->power.lock); in wakeup_last_time_show()
503 if (dev->power.wakeup) { in wakeup_last_time_show()
504 msec = ktime_to_ms(dev->power.wakeup->last_time); in wakeup_last_time_show()
507 spin_unlock_irq(&dev->power.lock); in wakeup_last_time_show()
521 spin_lock_irq(&dev->power.lock); in wakeup_prevent_sleep_time_show()
522 if (dev->power.wakeup) { in wakeup_prevent_sleep_time_show()
523 msec = ktime_to_ms(dev->power.wakeup->prevent_sleep_time); in wakeup_prevent_sleep_time_show()
526 spin_unlock_irq(&dev->power.lock); in wakeup_prevent_sleep_time_show()
541 return sprintf(buf, "%d\n", atomic_read(&dev->power.usage_count)); in rtpm_usagecount_show()
547 return sprintf(buf, "%d\n", dev->power.ignore_children ? in rtpm_children_show()
548 0 : atomic_read(&dev->power.child_count)); in rtpm_children_show()
554 if ((dev->power.disable_depth) && (dev->power.runtime_auto == false)) in rtpm_enabled_show()
556 else if (dev->power.disable_depth) in rtpm_enabled_show()
558 else if (dev->power.runtime_auto == false) in rtpm_enabled_show()
713 if (dev->power.set_latency_tolerance) { in dpm_sysfs_add()