Lines Matching full:trip

58  * @trip_switch_on:	first passive trip point of the thermal zone.  The
59 * governor switches on when this trip point is crossed.
60 * If the thermal zone only has one passive trip point,
62 * @trip_max_desired_temperature: last passive trip point of the thermal
98 if (instance->trip != params->trip_max_desired_temperature) in estimate_sustainable_power()
117 * @trip_switch_on: trip point number for the switch on temperature
127 struct thermal_trip trip; in estimate_pid_constants() local
132 ret = __thermal_zone_get_trip(tz, trip_switch_on, &trip); in estimate_pid_constants()
134 temperature_threshold -= trip.temperature; in estimate_pid_constants()
140 * passive trip points at the same temperature, that person in estimate_pid_constants()
396 if ((instance->trip == trip_max_desired_temperature) && in allocate_power()
435 if (instance->trip != trip_max_desired_temperature) in allocate_power()
471 if (instance->trip != trip_max_desired_temperature) in allocate_power()
496 * get_governor_trips() - get the number of the two trip points that are key for this governor
501 * a "switch on" trip point and a "maximum desired temperature". These
502 * are defined as the first and last passive trip points.
504 * If there is only one trip point, then that's considered to be the
505 * "maximum desired temperature" trip point and the governor is always
506 * on. If there are no passive or active trip points, then the
521 struct thermal_trip trip; in get_governor_trips() local
524 ret = __thermal_zone_get_trip(tz, i, &trip); in get_governor_trips()
527 "Failed to get trip point %d type: %d\n", i, in get_governor_trips()
532 if (trip.type == THERMAL_TRIP_PASSIVE) { in get_governor_trips()
539 } else if (trip.type == THERMAL_TRIP_ACTIVE) { in get_governor_trips()
572 if ((instance->trip != params->trip_max_desired_temperature) || in allow_maximum_power()
634 struct thermal_trip trip; in power_allocator_bind() local
661 &trip); in power_allocator_bind()
665 trip.temperature); in power_allocator_bind()
698 struct thermal_trip trip; in power_allocator_throttle() local
705 * We get called for every trip point but we only need to do in power_allocator_throttle()
711 ret = __thermal_zone_get_trip(tz, params->trip_switch_on, &trip); in power_allocator_throttle()
712 if (!ret && (tz->temperature < trip.temperature)) { in power_allocator_throttle()
713 update = (tz->last_temperature >= trip.temperature); in power_allocator_throttle()
722 ret = __thermal_zone_get_trip(tz, params->trip_max_desired_temperature, &trip); in power_allocator_throttle()
729 return allocate_power(tz, trip.temperature); in power_allocator_throttle()