Lines Matching refs:temperature

180 		if (tz->temperature > tz->last_temperature)  in get_tz_trend()
182 else if (tz->temperature < tz->last_temperature) in get_tz_trend()
374 if (trip_temp <= 0 || tz->temperature < trip_temp) in handle_critical_trips()
385 tz->temperature / 1000); in handle_critical_trips()
476 tz->last_temperature = tz->temperature; in update_temperature()
477 tz->temperature = temp; in update_temperature()
483 tz->temperature); in update_temperature()
486 tz->last_temperature, tz->temperature); in update_temperature()
493 tz->temperature = THERMAL_TEMP_INVALID; in thermal_zone_device_reset()
541 long temperature; in temp_show() local
544 ret = thermal_zone_get_temp(tz, &temperature); in temp_show()
549 return sprintf(buf, "%ld\n", temperature); in temp_show()
631 unsigned long temperature; in trip_point_temp_store() local
639 if (kstrtoul(buf, 10, &temperature)) in trip_point_temp_store()
642 ret = tz->ops->set_trip_temp(tz, trip, temperature); in trip_point_temp_store()
653 long temperature; in trip_point_temp_show() local
661 ret = tz->ops->get_trip_temp(tz, trip, &temperature); in trip_point_temp_show()
666 return sprintf(buf, "%ld\n", temperature); in trip_point_temp_show()
675 unsigned long temperature; in trip_point_hyst_store() local
683 if (kstrtoul(buf, 10, &temperature)) in trip_point_hyst_store()
691 ret = tz->ops->set_trip_hyst(tz, trip, temperature); in trip_point_hyst_store()
702 unsigned long temperature; in trip_point_hyst_show() local
710 ret = tz->ops->get_trip_hyst(tz, trip, &temperature); in trip_point_hyst_show()
712 return ret ? ret : sprintf(buf, "%ld\n", temperature); in trip_point_hyst_show()
816 unsigned long temperature; in emul_temp_store() local
818 if (kstrtoul(buf, 10, &temperature)) in emul_temp_store()
823 tz->emul_temperature = temperature; in emul_temp_store()
826 ret = tz->ops->set_emul_temp(tz, temperature); in emul_temp_store()