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 * @count: the number of times the zone temperature was above the trip point
95 * @max: maximum recorded temperature above the trip point
96 * @min: minimum recorded temperature above the trip point
97 * @avg: average temperature above the trip point
112 * mitigation episode begins the trip point with the lower temperature
114 * down. During this episode we can have multiple trip points crossed
115 * the way up and down if there are multiple trip described in the
116 * firmware after the lowest temperature trip point.
118 * @timestamp: first trip point crossed the way up
121 * @trip_stats: per trip point statistics, flexible array
134 * episodes and has to track which trip point has been crossed in
135 * order to handle correctly nested trip point mitigation episodes.
137 * We keep the history of the trip point crossed in an array and as we
138 * can go back and forth inside this history, eg. trip 0,1,2,1,2,1,0,
142 * @trips_crossed: an array of trip points crossed by id
143 * @nr_trips: the number of trip points currently being crossed
543 const struct thermal_trip *trip) in thermal_debug_tz_trip_up() argument
549 int trip_id = thermal_zone_trip_id(tz, trip); in thermal_debug_tz_trip_up()
562 * temperature crossing a trip point. The episodes are in thermal_debug_tz_trip_up()
564 * first trip point, the duration begins to be measured. If in thermal_debug_tz_trip_up()
566 * second trip point, the duration of the first trip must be in thermal_debug_tz_trip_up()
574 * trip 2 / \ ------ in thermal_debug_tz_trip_up()
576 * trip 1 / | | `---- | | \ in thermal_debug_tz_trip_up()
578 * trip 0 / | | | | | | \ in thermal_debug_tz_trip_up()
601 * Each time a trip point is crossed the way up, the trip_id in thermal_debug_tz_trip_up()
606 * The trip ids may not be in the ascending order but the in thermal_debug_tz_trip_up()
608 * temperature order. The function detecting when a trip point in thermal_debug_tz_trip_up()
610 * the trip points may have been reordered during this in thermal_debug_tz_trip_up()
628 const struct thermal_trip *trip) in thermal_debug_tz_trip_down() argument
634 int trip_id = thermal_zone_trip_id(tz, trip); in thermal_debug_tz_trip_down()
647 * temperature is greater than a trip point when registering a in thermal_debug_tz_trip_down()
676 * last trip point the way down. in thermal_debug_tz_trip_down()
747 struct thermal_trip *trip; in tze_seq_show() local
758 …seq_printf(s, "| trip | type | temp(°mC) | hyst(°mC) | duration | avg(°mC) | min(°mC) | m… in tze_seq_show()
760 for_each_trip(tz, trip) { in tze_seq_show()
763 * critical trip point, so the stats will be always in tze_seq_show()
764 * zero, skip this trip point in tze_seq_show()
766 if (trip->type == THERMAL_TRIP_CRITICAL) in tze_seq_show()
769 if (trip->type == THERMAL_TRIP_PASSIVE) in tze_seq_show()
771 else if (trip->type == THERMAL_TRIP_ACTIVE) in tze_seq_show()
776 trip_id = thermal_zone_trip_id(tz, trip); in tze_seq_show()
781 9, trip->temperature, in tze_seq_show()
782 9, trip->hysteresis, in tze_seq_show()