Lines Matching refs:trip
37 * __thermal_zone_set_trips - Computes the next trip points for the driver
41 * the trip points. The result is the closer low and high trip points
53 struct thermal_trip trip;
67 ret = __thermal_zone_get_trip(tz, i , &trip);
71 trip_low = trip.temperature - trip.hysteresis;
79 if (trip.temperature > tz->temperature &&
80 trip.temperature < high) {
81 high = trip.temperature;
86 /* No need to change trip points */
114 struct thermal_trip *trip)
116 if (!tz || !tz->trips || trip_id < 0 || trip_id >= tz->num_trips || !trip)
119 *trip = tz->trips[trip_id];
125 struct thermal_trip *trip)
130 ret = __thermal_zone_get_trip(tz, trip_id, trip);
138 const struct thermal_trip *trip)
150 if (t.type != trip->type)
153 if (t.temperature != trip->temperature && tz->ops->set_trip_temp) {
154 ret = tz->ops->set_trip_temp(tz, trip_id, trip->temperature);
159 if (t.hysteresis != trip->hysteresis && tz->ops->set_trip_hyst) {
160 ret = tz->ops->set_trip_hyst(tz, trip_id, trip->hysteresis);
165 if (tz->trips && (t.temperature != trip->temperature || t.hysteresis != trip->hysteresis))
166 tz->trips[trip_id] = *trip;
168 thermal_notify_tz_trip_change(tz->id, trip_id, trip->type,
169 trip->temperature, trip->hysteresis);
177 const struct thermal_trip *trip)
182 if (&tz->trips[i] == trip)