Lines Matching refs:temp
136 static int imx_get_temp(struct thermal_zone_device *tz, unsigned long *temp) in imx_get_temp() argument
182 *temp = data->c2 - n_meas * data->c1; in imx_get_temp()
187 *temp >= data->temp_passive) in imx_get_temp()
190 *temp < data->temp_passive) { in imx_get_temp()
197 if (*temp != data->last_temp) { in imx_get_temp()
198 dev_dbg(&tz->device, "millicelsius: %ld\n", *temp); in imx_get_temp()
199 data->last_temp = *temp; in imx_get_temp()
203 if (!data->irq_enabled && *temp < data->alarm_temp) { in imx_get_temp()
266 unsigned long *temp) in imx_get_crit_temp() argument
270 *temp = data->temp_critical; in imx_get_crit_temp()
275 unsigned long *temp) in imx_get_trip_temp() argument
279 *temp = (trip == IMX_TRIP_PASSIVE) ? data->temp_passive : in imx_get_trip_temp()
285 unsigned long temp) in imx_set_trip_temp() argument
292 if (temp > IMX_TEMP_PASSIVE) in imx_set_trip_temp()
295 data->temp_passive = temp; in imx_set_trip_temp()
297 imx_set_alarm_temp(data, temp); in imx_set_trip_temp()