Lines Matching refs:temperature
39 int temperature, ret; in temp_show() local
41 ret = thermal_zone_get_temp(tz, &temperature); in temp_show()
46 return sprintf(buf, "%d\n", temperature); in temp_show()
116 int temperature, hyst = 0; in trip_point_temp_store() local
125 if (kstrtoint(buf, 10, &temperature)) in trip_point_temp_store()
128 ret = tz->ops->set_trip_temp(tz, trip, temperature); in trip_point_temp_store()
142 thermal_notify_tz_trip_change(tz->id, trip, type, temperature, hyst); in trip_point_temp_store()
155 int temperature; in trip_point_temp_show() local
163 ret = tz->ops->get_trip_temp(tz, trip, &temperature); in trip_point_temp_show()
168 return sprintf(buf, "%d\n", temperature); in trip_point_temp_show()
177 int temperature; in trip_point_hyst_store() local
185 if (kstrtoint(buf, 10, &temperature)) in trip_point_hyst_store()
193 ret = tz->ops->set_trip_hyst(tz, trip, temperature); in trip_point_hyst_store()
207 int temperature; in trip_point_hyst_show() local
215 ret = tz->ops->get_trip_hyst(tz, trip, &temperature); in trip_point_hyst_show()
217 return ret ? ret : sprintf(buf, "%d\n", temperature); in trip_point_hyst_show()
259 int temperature; in emul_temp_store() local
261 if (kstrtoint(buf, 10, &temperature)) in emul_temp_store()
266 tz->emul_temperature = temperature; in emul_temp_store()
269 ret = tz->ops->set_emul_temp(tz, temperature); in emul_temp_store()