Lines Matching refs:elapsed_ns
415 s64 elapsed_ns; in _genpd_power_on() local
429 elapsed_ns = ktime_to_ns(ktime_sub(ktime_get(), time_start)); in _genpd_power_on()
430 if (elapsed_ns <= genpd->states[state_idx].power_on_latency_ns) in _genpd_power_on()
433 genpd->states[state_idx].power_on_latency_ns = elapsed_ns; in _genpd_power_on()
436 genpd->name, "on", elapsed_ns); in _genpd_power_on()
445 s64 elapsed_ns; in _genpd_power_off() local
459 elapsed_ns = ktime_to_ns(ktime_sub(ktime_get(), time_start)); in _genpd_power_off()
460 if (elapsed_ns <= genpd->states[state_idx].power_off_latency_ns) in _genpd_power_off()
463 genpd->states[state_idx].power_off_latency_ns = elapsed_ns; in _genpd_power_off()
466 genpd->name, "off", elapsed_ns); in _genpd_power_off()
753 s64 elapsed_ns; in genpd_runtime_suspend() local
789 elapsed_ns = ktime_to_ns(ktime_sub(ktime_get(), time_start)); in genpd_runtime_suspend()
790 if (elapsed_ns > td->suspend_latency_ns) { in genpd_runtime_suspend()
791 td->suspend_latency_ns = elapsed_ns; in genpd_runtime_suspend()
793 elapsed_ns); in genpd_runtime_suspend()
827 s64 elapsed_ns; in genpd_runtime_resume() local
869 elapsed_ns = ktime_to_ns(ktime_sub(ktime_get(), time_start)); in genpd_runtime_resume()
870 if (elapsed_ns > td->resume_latency_ns) { in genpd_runtime_resume()
871 td->resume_latency_ns = elapsed_ns; in genpd_runtime_resume()
873 elapsed_ns); in genpd_runtime_resume()