Lines Matching refs:thresh
1194 time_t *timestamp, idletime, now, thresh; in pm_scan_dev() local
1275 thresh = cur_threshold(dip, i); /* comp i threshold */ in pm_scan_dev()
1279 timeleft = max(thresh, min_scan); in pm_scan_dev()
1282 timeleft, max(thresh, min_scan)); in pm_scan_dev()
1289 if (idletime >= thresh || PM_IS_PID(dip)) { in pm_scan_dev()
1325 timeleft = thresh - idletime; in pm_scan_dev()
1327 timeleft = min(timeleft, (thresh - idletime)); in pm_scan_dev()
3635 int thresh; in cur_threshold() local
3637 thresh = pm_default_nexus_threshold; in cur_threshold()
3639 thresh = pm_cpu_idle_threshold; in cur_threshold()
3641 thresh = pm_system_idle_threshold; in cur_threshold()
3642 return (thresh); in cur_threshold()
4283 int thresh; in pm_set_device_threshold() local
4300 thresh = pm_default_nexus_threshold; in pm_set_device_threshold()
4305 pmc->pmc_thresh[level] = thresh; in pm_set_device_threshold()
4370 thresh = target_threshold / transitions; in pm_set_device_threshold()
4375 pmc->pmc_thresh[level] = thresh; in pm_set_device_threshold()
4392 remainder = target_threshold - thresh * transitions; in pm_set_device_threshold()
4396 "trans=%d\n", pmf, remainder, target_threshold, thresh, in pm_set_device_threshold()
8674 time_t idletime, thresh; in pm_busop_set_power() local
8807 thresh = cur_threshold(dip, comp); in pm_busop_set_power()
8811 ((idletime < thresh) && !PM_IS_PID(dip)))) { in pm_busop_set_power()
8819 if (idletime < thresh) in pm_busop_set_power()