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