Lines Matching refs:stat
22 struct devfreq_dev_status *stat; in devfreq_simple_ondemand_func() local
32 stat = &df->last_status; in devfreq_simple_ondemand_func()
45 if (stat->total_time == 0) { in devfreq_simple_ondemand_func()
51 if (stat->busy_time >= (1 << 24) || stat->total_time >= (1 << 24)) { in devfreq_simple_ondemand_func()
52 stat->busy_time >>= 7; in devfreq_simple_ondemand_func()
53 stat->total_time >>= 7; in devfreq_simple_ondemand_func()
57 if (stat->busy_time * 100 > in devfreq_simple_ondemand_func()
58 stat->total_time * dfso_upthreshold) { in devfreq_simple_ondemand_func()
64 if (stat->current_frequency == 0) { in devfreq_simple_ondemand_func()
70 if (stat->busy_time * 100 > in devfreq_simple_ondemand_func()
71 stat->total_time * (dfso_upthreshold - dfso_downdifferential)) { in devfreq_simple_ondemand_func()
72 *freq = stat->current_frequency; in devfreq_simple_ondemand_func()
77 a = stat->busy_time; in devfreq_simple_ondemand_func()
78 a *= stat->current_frequency; in devfreq_simple_ondemand_func()
79 b = div_u64(a, stat->total_time); in devfreq_simple_ondemand_func()