Lines Matching full:trip

87  * struct trip_stats - Thermal trip statistics
90 * statistics related to temperature going above a trip point.
92 * @timestamp: the trip crossing timestamp
93 * @duration: total time when the zone temperature was above the trip point
94 * @trip_temp: trip temperature at mitigation start
95 * @trip_hyst: trip hysteresis at mitigation start
96 * @count: the number of times the zone temperature was above the trip point
97 * @min: minimum recorded temperature above the trip point
98 * @avg: average temperature above the trip point
114 * mitigation episode begins the trip point with the lower temperature
116 * down. During this episode we can have multiple trip points crossed
117 * the way up and down if there are multiple trip described in the
118 * firmware after the lowest temperature trip point.
120 * @timestamp: first trip point crossed the way up
124 * @trip_stats: per trip point statistics, flexible array
138 * episodes and has to track which trip point has been crossed in
139 * order to handle correctly nested trip point mitigation episodes.
141 * We keep the history of the trip point crossed in an array and as we
142 * can go back and forth inside this history, eg. trip 0,1,2,1,2,1,0,
147 * @trips_crossed: an array of trip points crossed by id
148 * @nr_trips: the number of trip points currently being crossed
580 const struct thermal_trip *trip) in thermal_debug_tz_trip_up() argument
583 int trip_id = thermal_zone_trip_id(tz, trip); in thermal_debug_tz_trip_up()
599 * temperature crossing a trip point. The episodes are in thermal_debug_tz_trip_up()
601 * first trip point, the duration begins to be measured. If in thermal_debug_tz_trip_up()
603 * second trip point, the duration of the first trip must be in thermal_debug_tz_trip_up()
611 * trip 2 / \ ------ in thermal_debug_tz_trip_up()
613 * trip 1 / | | `---- | | \ in thermal_debug_tz_trip_up()
615 * trip 0 / | | | | | | \ in thermal_debug_tz_trip_up()
638 * Each time a trip point is crossed the way up, the trip_id in thermal_debug_tz_trip_up()
643 * The trip ids may not be in the ascending order but the in thermal_debug_tz_trip_up()
645 * temperature order. The function detecting when a trip point in thermal_debug_tz_trip_up()
647 * the trip points may have been reordered during this in thermal_debug_tz_trip_up()
654 trip_stats->trip_temp = trip->temperature; in thermal_debug_tz_trip_up()
655 trip_stats->trip_hyst = trip->hysteresis; in thermal_debug_tz_trip_up()
668 /* Mark the end of mitigation for this trip point. */ in tz_episode_close_trip()
673 const struct thermal_trip *trip) in thermal_debug_tz_trip_down() argument
676 int trip_id = thermal_zone_trip_id(tz, trip); in thermal_debug_tz_trip_down()
692 * temperature is greater than a trip point when registering a in thermal_debug_tz_trip_down()
718 * last trip point the way down. in thermal_debug_tz_trip_down()
810 …seq_printf(s, "| trip | type | temp(m°C) | hyst(m°C) | duration(ms) | avg(m°C) | min(m°C) |\… in tze_seq_show()
813 const struct thermal_trip *trip = &td->trip; in tze_seq_show() local
818 * critical trip point, so the stats will be always in tze_seq_show()
819 * zero, skip this trip point in tze_seq_show()
821 if (trip->type == THERMAL_TRIP_CRITICAL) in tze_seq_show()
824 trip_id = thermal_zone_trip_id(tz, trip); in tze_seq_show()
846 8, thermal_trip_type_name(trip->type), in tze_seq_show()