Lines Matching refs:curr_cpu_temp
126 tp->prev_cpu_temp = tp->curr_cpu_temp; in get_current_temps()
128 (unsigned char *) &tp->curr_cpu_temp, in get_current_temps()
133 (int) tp->curr_cpu_temp, (int) tp->curr_amb_temp); in get_current_temps()
151 } else if (tp->curr_cpu_temp >= cpu_temp_limits[tp->index].high_shutdown || in do_envctrl_shutdown()
152 tp->curr_cpu_temp < cpu_temp_limits[tp->index].low_shutdown) { in do_envctrl_shutdown()
154 val = tp->curr_cpu_temp; in do_envctrl_shutdown()
229 if (tp->curr_cpu_temp >= in analyze_cpu_temp()
233 tp->index, (int) tp->curr_cpu_temp); in analyze_cpu_temp()
235 } else if (tp->curr_cpu_temp < in analyze_cpu_temp()
239 tp->index, (int) tp->curr_cpu_temp); in analyze_cpu_temp()
244 } else if (tp->curr_cpu_temp >= cpu_temp_limits[tp->index].high_warn || in analyze_cpu_temp()
245 tp->curr_cpu_temp < cpu_temp_limits[tp->index].low_warn) in analyze_cpu_temp()
249 if (tp->curr_cpu_temp >= cpu_temp_limits[tp->index].high_shutdown || in analyze_cpu_temp()
250 tp->curr_cpu_temp < cpu_temp_limits[tp->index].low_shutdown) { in analyze_cpu_temp()
282 tp->avg_cpu_temp = (s8)((int)((int)tp->avg_cpu_temp + (int)tp->curr_cpu_temp) / 2); in analyze_temps()
487 tp->prev_cpu_temp = tp->avg_cpu_temp = tp->curr_cpu_temp; in attach_one_temp()