Lines Matching refs:constraint_ns
18 s64 constraint_ns; in dev_update_qos_constraint() local
30 constraint_ns = td ? td->effective_constraint_ns : in dev_update_qos_constraint()
39 constraint_ns = dev_pm_qos_read_value(dev, DEV_PM_QOS_RESUME_LATENCY); in dev_update_qos_constraint()
40 constraint_ns *= NSEC_PER_USEC; in dev_update_qos_constraint()
43 if (constraint_ns < *constraint_ns_p) in dev_update_qos_constraint()
44 *constraint_ns_p = constraint_ns; in dev_update_qos_constraint()
57 s64 constraint_ns; in default_suspend_ok() local
72 constraint_ns = __dev_pm_qos_resume_latency(dev); in default_suspend_ok()
76 if (constraint_ns == 0) in default_suspend_ok()
79 constraint_ns *= NSEC_PER_USEC; in default_suspend_ok()
86 device_for_each_child(dev, &constraint_ns, in default_suspend_ok()
89 if (constraint_ns == PM_QOS_RESUME_LATENCY_NO_CONSTRAINT_NS) { in default_suspend_ok()
93 } else if (constraint_ns == 0) { in default_suspend_ok()
102 constraint_ns -= td->suspend_latency_ns + in default_suspend_ok()
109 if (constraint_ns <= 0) in default_suspend_ok()
112 td->effective_constraint_ns = constraint_ns; in default_suspend_ok()
217 s64 constraint_ns; in __default_power_down_ok() local
225 constraint_ns = td->effective_constraint_ns; in __default_power_down_ok()
230 if (constraint_ns == PM_QOS_RESUME_LATENCY_NO_CONSTRAINT_NS) in __default_power_down_ok()
233 if (constraint_ns <= off_on_time_ns) in __default_power_down_ok()
236 if (min_off_time_ns > constraint_ns || min_off_time_ns < 0) in __default_power_down_ok()
237 min_off_time_ns = constraint_ns; in __default_power_down_ok()