Lines Matching full:tz

37 	struct thermal_zone *tz;  member
57 static int show_temp(struct thermal_zone *tz, __maybe_unused void *arg) in show_temp() argument
59 thermal_cmd_get_temp(arg, tz); in show_temp()
61 INFO("temperature: %d\n", tz->temp); in show_temp()
66 static int show_governor(struct thermal_zone *tz, __maybe_unused void *arg) in show_governor() argument
68 thermal_cmd_get_governor(arg, tz); in show_governor()
70 INFO("governor: '%s'\n", tz->governor); in show_governor()
75 static int show_tz(struct thermal_zone *tz, __maybe_unused void *arg) in show_tz() argument
77 INFO("thermal zone '%s', id=%d\n", tz->name, tz->id); in show_tz()
79 for_each_thermal_trip(tz->trip, show_trip, NULL); in show_tz()
81 for_each_thermal_threshold(tz->thresholds, show_threshold, NULL); in show_tz()
83 show_temp(tz, arg); in show_tz()
85 show_governor(tz, arg); in show_tz()
90 static int set_threshold(struct thermal_zone *tz, __maybe_unused void *arg) in set_threshold() argument
96 INFO("Setting threshold for thermal zone '%s', id=%d\n", tz->name, tz->id); in set_threshold()
98 if (thermal_cmd_threshold_flush(th, tz)) { in set_threshold()
104 if (thermal_cmd_threshold_add(th, tz, thresholds[i], in set_threshold()
131 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in tz_disable() local
133 INFO("Thermal zone %d ('%s') disabled\n", tz_id, tz->name); in tz_disable()
141 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in tz_enable() local
143 INFO("Thermal zone %d ('%s') enabled\n", tz_id, tz->name); in tz_enable()
151 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in trip_high() local
154 tz_id, tz->name, trip_id, temp); in trip_high()
162 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in trip_low() local
165 tz_id, tz->name, trip_id, temp); in trip_low()
189 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in trip_change() local
194 tz->trip[trip_id].type = type; in trip_change()
195 tz->trip[trip_id].temp = temp; in trip_change()
196 tz->trip[trip_id].hyst = hyst; in trip_change()
225 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in gov_change() local
227 INFO("%s: governor changed %s -> %s\n", tz->name, tz->governor, name); in gov_change()
229 strcpy(tz->governor, name); in gov_change()
392 td.tz = thermal_zone_discover(td.th); in main()
393 if (!td.tz) { in main()
398 for_each_thermal_zone(td.tz, set_threshold, td.th); in main()
400 for_each_thermal_zone(td.tz, show_tz, td.th); in main()