Lines Matching refs: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
100 if (instance->trip != trip_max_desired_temperature)
119 * @trip_switch_on: trip point number for the switch on temperature
129 struct thermal_trip trip;
134 ret = __thermal_zone_get_trip(tz, trip_switch_on, &trip);
136 temperature_threshold -= trip.temperature;
142 * passive trip points at the same temperature, that person
399 if ((instance->trip == trip_max_desired_temperature) &&
438 if (instance->trip != trip_max_desired_temperature)
474 if (instance->trip != trip_max_desired_temperature)
499 * get_governor_trips() - get the number of the two trip points that are key for this governor
504 * a "switch on" trip point and a "maximum desired temperature". These
505 * are defined as the first and last passive trip points.
507 * If there is only one trip point, then that's considered to be the
508 * "maximum desired temperature" trip point and the governor is always
509 * on. If there are no passive or active trip points, then the
524 struct thermal_trip trip;
527 ret = __thermal_zone_get_trip(tz, i, &trip);
530 "Failed to get trip point %d type: %d\n", i,
535 if (trip.type == THERMAL_TRIP_PASSIVE) {
542 } else if (trip.type == THERMAL_TRIP_ACTIVE) {
577 if ((instance->trip != trip_max_desired_temperature) ||
639 struct thermal_trip trip;
666 &trip);
670 trip.temperature);
703 struct thermal_trip trip;
710 * We get called for every trip point but we only need to do
716 ret = __thermal_zone_get_trip(tz, params->trip_switch_on, &trip);
717 if (!ret && (tz->temperature < trip.temperature)) {
727 ret = __thermal_zone_get_trip(tz, params->trip_max_desired_temperature, &trip);
734 return allocate_power(tz, trip.temperature);