Lines Matching full:trip
16 struct thermal_trip *trip; in for_each_thermal_trip() local
19 for_each_trip(tz, trip) { in for_each_thermal_trip()
20 ret = cb(trip, data); in for_each_thermal_trip()
50 * __thermal_zone_set_trips - Computes the next trip points for the driver
54 * the trip points. The result is the closer low and high trip points
66 const struct thermal_trip *trip; in __thermal_zone_set_trips() local
76 for_each_trip(tz, trip) { in __thermal_zone_set_trips()
80 trip_low = trip->temperature - trip->hysteresis; in __thermal_zone_set_trips()
88 if (trip->temperature > tz->temperature && in __thermal_zone_set_trips()
89 trip->temperature < high) { in __thermal_zone_set_trips()
90 high = trip->temperature; in __thermal_zone_set_trips()
95 /* No need to change trip points */ in __thermal_zone_set_trips()
123 struct thermal_trip *trip) in __thermal_zone_get_trip() argument
125 if (!tz || !tz->trips || trip_id < 0 || trip_id >= tz->num_trips || !trip) in __thermal_zone_get_trip()
128 *trip = tz->trips[trip_id]; in __thermal_zone_get_trip()
134 struct thermal_trip *trip) in thermal_zone_get_trip() argument
139 ret = __thermal_zone_get_trip(tz, trip_id, trip); in thermal_zone_get_trip()
147 const struct thermal_trip *trip) in thermal_zone_trip_id() argument
150 * Assume the trip to be located within the bounds of the thermal in thermal_zone_trip_id()
153 return trip - tz->trips; in thermal_zone_trip_id()
156 const struct thermal_trip *trip) in thermal_zone_trip_updated() argument
158 thermal_notify_tz_trip_change(tz, trip); in thermal_zone_trip_updated()
163 struct thermal_trip *trip, int temp) in thermal_zone_set_trip_temp() argument
165 if (trip->temperature == temp) in thermal_zone_set_trip_temp()
168 trip->temperature = temp; in thermal_zone_set_trip_temp()
169 thermal_notify_tz_trip_change(tz, trip); in thermal_zone_set_trip_temp()