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