Lines Matching refs:stat
24 struct devfreq_dev_status stat; in devfreq_simple_ondemand_func() local
25 int err = df->profile->get_dev_status(df->dev.parent, &stat); in devfreq_simple_ondemand_func()
46 if (stat.total_time == 0) { in devfreq_simple_ondemand_func()
52 if (stat.busy_time >= (1 << 24) || stat.total_time >= (1 << 24)) { in devfreq_simple_ondemand_func()
53 stat.busy_time >>= 7; in devfreq_simple_ondemand_func()
54 stat.total_time >>= 7; in devfreq_simple_ondemand_func()
58 if (stat.busy_time * 100 > in devfreq_simple_ondemand_func()
59 stat.total_time * dfso_upthreshold) { in devfreq_simple_ondemand_func()
65 if (stat.current_frequency == 0) { in devfreq_simple_ondemand_func()
71 if (stat.busy_time * 100 > in devfreq_simple_ondemand_func()
72 stat.total_time * (dfso_upthreshold - dfso_downdifferential)) { in devfreq_simple_ondemand_func()
73 *freq = stat.current_frequency; in devfreq_simple_ondemand_func()
78 a = stat.busy_time; in devfreq_simple_ondemand_func()
79 a *= stat.current_frequency; in devfreq_simple_ondemand_func()
80 b = div_u64(a, stat.total_time); in devfreq_simple_ondemand_func()