Lines Matching refs:curr_amb_temp
122 tp->prev_amb_temp = tp->curr_amb_temp; in get_current_temps()
124 (unsigned char *) &tp->curr_amb_temp, in get_current_temps()
133 (int) tp->curr_cpu_temp, (int) tp->curr_amb_temp); in get_current_temps()
147 if (tp->curr_amb_temp >= amb_temp_limits[tp->index].high_shutdown || in do_envctrl_shutdown()
148 tp->curr_amb_temp < amb_temp_limits[tp->index].low_shutdown) { in do_envctrl_shutdown()
150 val = tp->curr_amb_temp; in do_envctrl_shutdown()
174 if (tp->curr_amb_temp >= in analyze_ambient_temp()
178 tp->index, (int) tp->curr_amb_temp); in analyze_ambient_temp()
180 } else if (tp->curr_amb_temp < in analyze_ambient_temp()
184 tp->index, (int) tp->curr_amb_temp); in analyze_ambient_temp()
189 } else if (tp->curr_amb_temp >= amb_temp_limits[tp->index].high_warn || in analyze_ambient_temp()
190 tp->curr_amb_temp < amb_temp_limits[tp->index].low_warn) in analyze_ambient_temp()
194 if (tp->curr_amb_temp >= amb_temp_limits[tp->index].high_shutdown || in analyze_ambient_temp()
195 tp->curr_amb_temp < amb_temp_limits[tp->index].low_shutdown) { in analyze_ambient_temp()
281 tp->avg_amb_temp = (s8)((int)((int)tp->avg_amb_temp + (int)tp->curr_amb_temp) / 2); in analyze_temps()
488 tp->prev_amb_temp = tp->avg_amb_temp = tp->curr_amb_temp; in attach_one_temp()