Lines Matching refs:temperature

239 		if (tz->temperature > tz->last_temperature)  in get_tz_trend()
241 else if (tz->temperature < tz->last_temperature) in get_tz_trend()
437 if (trip_temp <= 0 || tz->temperature < trip_temp) in handle_critical_trips()
448 tz->temperature / 1000); in handle_critical_trips()
537 tz->last_temperature = tz->temperature; in update_temperature()
538 tz->temperature = temp; in update_temperature()
544 tz->temperature); in update_temperature()
547 tz->last_temperature, tz->temperature); in update_temperature()
554 tz->temperature = THERMAL_TEMP_INVALID; in thermal_zone_device_reset()
602 int temperature, ret; in temp_show() local
604 ret = thermal_zone_get_temp(tz, &temperature); in temp_show()
609 return sprintf(buf, "%d\n", temperature); in temp_show()
691 unsigned long temperature; in trip_point_temp_store() local
699 if (kstrtoul(buf, 10, &temperature)) in trip_point_temp_store()
702 ret = tz->ops->set_trip_temp(tz, trip, temperature); in trip_point_temp_store()
713 int temperature; in trip_point_temp_show() local
721 ret = tz->ops->get_trip_temp(tz, trip, &temperature); in trip_point_temp_show()
726 return sprintf(buf, "%d\n", temperature); in trip_point_temp_show()
735 int temperature; in trip_point_hyst_store() local
743 if (kstrtoint(buf, 10, &temperature)) in trip_point_hyst_store()
751 ret = tz->ops->set_trip_hyst(tz, trip, temperature); in trip_point_hyst_store()
762 int temperature; in trip_point_hyst_show() local
770 ret = tz->ops->get_trip_hyst(tz, trip, &temperature); in trip_point_hyst_show()
772 return ret ? ret : sprintf(buf, "%d\n", temperature); in trip_point_hyst_show()
898 unsigned long temperature; in emul_temp_store() local
900 if (kstrtoul(buf, 10, &temperature)) in emul_temp_store()
905 tz->emul_temperature = temperature; in emul_temp_store()
908 ret = tz->ops->set_emul_temp(tz, temperature); in emul_temp_store()