Lines Matching refs:curr_amb_temp
121 tp->prev_amb_temp = tp->curr_amb_temp; in get_current_temps()
123 (unsigned char *) &tp->curr_amb_temp, in get_current_temps()
132 (int) tp->curr_cpu_temp, (int) tp->curr_amb_temp); in get_current_temps()
146 if (tp->curr_amb_temp >= amb_temp_limits[tp->index].high_shutdown || in do_envctrl_shutdown()
147 tp->curr_amb_temp < amb_temp_limits[tp->index].low_shutdown) { in do_envctrl_shutdown()
149 val = tp->curr_amb_temp; in do_envctrl_shutdown()
173 if (tp->curr_amb_temp >= in analyze_ambient_temp()
177 tp->index, (int) tp->curr_amb_temp); in analyze_ambient_temp()
179 } else if (tp->curr_amb_temp < in analyze_ambient_temp()
183 tp->index, (int) tp->curr_amb_temp); in analyze_ambient_temp()
188 } else if (tp->curr_amb_temp >= amb_temp_limits[tp->index].high_warn || in analyze_ambient_temp()
189 tp->curr_amb_temp < amb_temp_limits[tp->index].low_warn) in analyze_ambient_temp()
193 if (tp->curr_amb_temp >= amb_temp_limits[tp->index].high_shutdown || in analyze_ambient_temp()
194 tp->curr_amb_temp < amb_temp_limits[tp->index].low_shutdown) { in analyze_ambient_temp()
280 tp->avg_amb_temp = (s8)((int)((int)tp->avg_amb_temp + (int)tp->curr_amb_temp) / 2); in analyze_temps()
487 tp->prev_amb_temp = tp->avg_amb_temp = tp->curr_amb_temp; in attach_one_temp()