Lines Matching defs:avg
626 int avg;
630 avg = cpu ? ips->ctv2_avg_temp : ips->ctv1_avg_temp;
631 if (avg > (ips->limits->core_temp_limit * 100))
818 u16 avg;
825 avg = (u16)total;
827 return avg;
891 static u16 update_average_temp(u16 avg, u16 val)
897 (((temp_decay_factor - 1) * avg) / temp_decay_factor);
902 static u16 update_average_power(u32 avg, u32 val)
907 (((power_decay_factor - 1) * avg) / power_decay_factor);
915 u32 avg;
922 avg = (u32)total;
924 return avg;
1026 * Ok, now we have an initial avg. From here on out, we track the
1027 * running avg using a decaying average calculation. This allows