Lines Matching refs:trip
86 struct thermal_trip trip; in trip_point_type_show() local
95 result = __thermal_zone_get_trip(tz, trip_id, &trip); in trip_point_type_show()
104 switch (trip.type) { in trip_point_type_show()
123 struct thermal_trip trip; in trip_point_temp_store() local
136 ret = __thermal_zone_get_trip(tz, trip_id, &trip); in trip_point_temp_store()
140 ret = kstrtoint(buf, 10, &trip.temperature); in trip_point_temp_store()
144 ret = thermal_zone_set_trip(tz, trip_id, &trip); in trip_point_temp_store()
156 struct thermal_trip trip; in trip_point_temp_show() local
165 ret = __thermal_zone_get_trip(tz, trip_id, &trip); in trip_point_temp_show()
174 return sprintf(buf, "%d\n", trip.temperature); in trip_point_temp_show()
182 struct thermal_trip trip; in trip_point_hyst_store() local
188 if (kstrtoint(buf, 10, &trip.hysteresis)) in trip_point_hyst_store()
198 ret = __thermal_zone_get_trip(tz, trip_id, &trip); in trip_point_hyst_store()
202 ret = thermal_zone_set_trip(tz, trip_id, &trip); in trip_point_hyst_store()
214 struct thermal_trip trip; in trip_point_hyst_show() local
223 ret = __thermal_zone_get_trip(tz, trip_id, &trip); in trip_point_hyst_show()
229 return ret ? ret : sprintf(buf, "%d\n", trip.hysteresis); in trip_point_hyst_show()
891 return sprintf(buf, "%d\n", instance->trip); in trip_point_show()