Lines Matching refs:power

105 				dev->power.runtime_auto ? ctrl_auto : ctrl_on);  in control_show()
128 spin_lock_irq(&dev->power.lock); in runtime_active_time_show()
130 ret = sprintf(buf, "%i\n", jiffies_to_msecs(dev->power.active_jiffies)); in runtime_active_time_show()
131 spin_unlock_irq(&dev->power.lock); in runtime_active_time_show()
141 spin_lock_irq(&dev->power.lock); in runtime_suspended_time_show()
144 jiffies_to_msecs(dev->power.suspended_jiffies)); in runtime_suspended_time_show()
145 spin_unlock_irq(&dev->power.lock); in runtime_suspended_time_show()
156 if (dev->power.runtime_error) { in runtime_status_show()
158 } else if (dev->power.disable_depth) { in runtime_status_show()
161 switch (dev->power.runtime_status) { in runtime_status_show()
186 if (!dev->power.use_autosuspend) in autosuspend_delay_ms_show()
188 return sprintf(buf, "%d\n", dev->power.autosuspend_delay); in autosuspend_delay_ms_show()
196 if (!dev->power.use_autosuspend) in autosuspend_delay_ms_store()
247 ret = dev_pm_qos_update_request(dev->power.qos->resume_latency_req, in pm_qos_resume_latency_us_store()
354 spin_lock_irq(&dev->power.lock); in wakeup_count_show()
355 if (dev->power.wakeup) { in wakeup_count_show()
356 count = dev->power.wakeup->wakeup_count; in wakeup_count_show()
359 spin_unlock_irq(&dev->power.lock); in wakeup_count_show()
372 spin_lock_irq(&dev->power.lock); in wakeup_active_count_show()
373 if (dev->power.wakeup) { in wakeup_active_count_show()
374 count = dev->power.wakeup->active_count; in wakeup_active_count_show()
377 spin_unlock_irq(&dev->power.lock); in wakeup_active_count_show()
390 spin_lock_irq(&dev->power.lock); in wakeup_abort_count_show()
391 if (dev->power.wakeup) { in wakeup_abort_count_show()
392 count = dev->power.wakeup->wakeup_count; in wakeup_abort_count_show()
395 spin_unlock_irq(&dev->power.lock); in wakeup_abort_count_show()
408 spin_lock_irq(&dev->power.lock); in wakeup_expire_count_show()
409 if (dev->power.wakeup) { in wakeup_expire_count_show()
410 count = dev->power.wakeup->expire_count; in wakeup_expire_count_show()
413 spin_unlock_irq(&dev->power.lock); in wakeup_expire_count_show()
425 spin_lock_irq(&dev->power.lock); in wakeup_active_show()
426 if (dev->power.wakeup) { in wakeup_active_show()
427 active = dev->power.wakeup->active; in wakeup_active_show()
430 spin_unlock_irq(&dev->power.lock); in wakeup_active_show()
443 spin_lock_irq(&dev->power.lock); in wakeup_total_time_ms_show()
444 if (dev->power.wakeup) { in wakeup_total_time_ms_show()
445 msec = ktime_to_ms(dev->power.wakeup->total_time); in wakeup_total_time_ms_show()
448 spin_unlock_irq(&dev->power.lock); in wakeup_total_time_ms_show()
460 spin_lock_irq(&dev->power.lock); in wakeup_max_time_ms_show()
461 if (dev->power.wakeup) { in wakeup_max_time_ms_show()
462 msec = ktime_to_ms(dev->power.wakeup->max_time); in wakeup_max_time_ms_show()
465 spin_unlock_irq(&dev->power.lock); in wakeup_max_time_ms_show()
478 spin_lock_irq(&dev->power.lock); in wakeup_last_time_ms_show()
479 if (dev->power.wakeup) { in wakeup_last_time_ms_show()
480 msec = ktime_to_ms(dev->power.wakeup->last_time); in wakeup_last_time_ms_show()
483 spin_unlock_irq(&dev->power.lock); in wakeup_last_time_ms_show()
497 spin_lock_irq(&dev->power.lock); in wakeup_prevent_sleep_time_ms_show()
498 if (dev->power.wakeup) { in wakeup_prevent_sleep_time_ms_show()
499 msec = ktime_to_ms(dev->power.wakeup->prevent_sleep_time); in wakeup_prevent_sleep_time_ms_show()
502 spin_unlock_irq(&dev->power.lock); in wakeup_prevent_sleep_time_ms_show()
514 return sprintf(buf, "%d\n", atomic_read(&dev->power.usage_count)); in runtime_usage_show()
522 return sprintf(buf, "%d\n", dev->power.ignore_children ? in runtime_active_kids_show()
523 0 : atomic_read(&dev->power.child_count)); in runtime_active_kids_show()
530 if (dev->power.disable_depth && (dev->power.runtime_auto == false)) in runtime_enabled_show()
532 if (dev->power.disable_depth) in runtime_enabled_show()
534 if (dev->power.runtime_auto == false) in runtime_enabled_show()
665 if (dev->power.set_latency_tolerance) { in dpm_sysfs_add()