Lines Matching full: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
195 ret = __thermal_zone_get_trip(tz, trip_id, &trip); in trip_point_hyst_store()
199 ret = kstrtoint(buf, 10, &trip.hysteresis); in trip_point_hyst_store()
203 ret = thermal_zone_set_trip(tz, trip_id, &trip); in trip_point_hyst_store()
215 struct thermal_trip trip; in trip_point_hyst_show() local
224 ret = __thermal_zone_get_trip(tz, trip_id, &trip); in trip_point_hyst_show()
230 return ret ? ret : sprintf(buf, "%d\n", trip.hysteresis); in trip_point_hyst_show()
425 * create_trip_attrs() - create attributes for trip points
427 * @mask: Writeable trip point bitmap.
429 * helper function to instantiate sysfs entries for every trip
439 /* This function works only for zones with at least one trip */ in create_trip_attrs()
473 /* create trip type attribute */ in create_trip_attrs()
484 /* create trip temp attribute */ in create_trip_attrs()
525 * destroy_trip_attrs() - destroy attributes for trip points
946 return sprintf(buf, "%d\n", instance->trip); in trip_point_show()