Lines Matching refs:tz
37 struct thermal_zone *tz; member
49 static int show_temp(struct thermal_zone *tz, __maybe_unused void *arg) in show_temp() argument
51 thermal_cmd_get_temp(arg, tz); in show_temp()
53 INFO("temperature: %d\n", tz->temp); in show_temp()
58 static int show_governor(struct thermal_zone *tz, __maybe_unused void *arg) in show_governor() argument
60 thermal_cmd_get_governor(arg, tz); in show_governor()
62 INFO("governor: '%s'\n", tz->governor); in show_governor()
67 static int show_tz(struct thermal_zone *tz, __maybe_unused void *arg) in show_tz() argument
69 INFO("thermal zone '%s', id=%d\n", tz->name, tz->id); in show_tz()
71 for_each_thermal_trip(tz->trip, show_trip, NULL); in show_tz()
73 show_temp(tz, arg); in show_tz()
75 show_governor(tz, arg); in show_tz()
97 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in tz_disable() local
99 INFO("Thermal zone %d ('%s') disabled\n", tz_id, tz->name); in tz_disable()
107 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in tz_enable() local
109 INFO("Thermal zone %d ('%s') enabled\n", tz_id, tz->name); in tz_enable()
117 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in trip_high() local
120 tz_id, tz->name, trip_id, temp); in trip_high()
128 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in trip_low() local
131 tz_id, tz->name, trip_id, temp); in trip_low()
155 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in trip_change() local
160 tz->trip[trip_id].type = type; in trip_change()
161 tz->trip[trip_id].temp = temp; in trip_change()
162 tz->trip[trip_id].hyst = hyst; in trip_change()
191 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in gov_change() local
193 INFO("%s: governor changed %s -> %s\n", tz->name, tz->governor, name); in gov_change()
195 strcpy(tz->governor, name); in gov_change()
315 td.tz = thermal_zone_discover(td.th); in main()
316 if (!td.tz) { in main()
321 for_each_thermal_zone(td.tz, show_tz, td.th); in main()