Lines Matching defs:stat
516 struct devfreq_dev_status *stat)
533 stat->busy_time = edata.load_count;
534 stat->total_time = edata.total_count;
2500 struct devfreq_dev_status *stat;
2543 stat = &df->last_status;
2546 if (stat->total_time == 0) {
2552 if (stat->busy_time >= (1 << 24) || stat->total_time >= (1 << 24)) {
2553 stat->busy_time >>= 7;
2554 stat->total_time >>= 7;
2558 if (stat->busy_time * 100 >
2559 stat->total_time * upthreshold) {
2565 if (stat->current_frequency == 0) {
2571 if (stat->busy_time * 100 >
2572 stat->total_time * (upthreshold - downdifferential)) {
2573 *freq = max(target_freq, stat->current_frequency);
2578 a = stat->busy_time;
2579 a *= stat->current_frequency;
2580 b = div_u64(a, stat->total_time);