Lines Matching refs:stat
25 struct devfreq_dev_status *stat; in devfreq_simple_ondemand_func() local
36 stat = &df->last_status; in devfreq_simple_ondemand_func()
49 if (stat->total_time == 0) { in devfreq_simple_ondemand_func()
55 if (stat->busy_time >= (1 << 24) || stat->total_time >= (1 << 24)) { in devfreq_simple_ondemand_func()
56 stat->busy_time >>= 7; in devfreq_simple_ondemand_func()
57 stat->total_time >>= 7; in devfreq_simple_ondemand_func()
61 if (stat->busy_time * 100 > in devfreq_simple_ondemand_func()
62 stat->total_time * dfso_upthreshold) { in devfreq_simple_ondemand_func()
68 if (stat->current_frequency == 0) { in devfreq_simple_ondemand_func()
74 if (stat->busy_time * 100 > in devfreq_simple_ondemand_func()
75 stat->total_time * (dfso_upthreshold - dfso_downdifferential)) { in devfreq_simple_ondemand_func()
76 *freq = stat->current_frequency; in devfreq_simple_ondemand_func()
81 a = stat->busy_time; in devfreq_simple_ondemand_func()
82 a *= stat->current_frequency; in devfreq_simple_ondemand_func()
83 b = div_u64(a, stat->total_time); in devfreq_simple_ondemand_func()