Lines Matching full:tz
31 * @tz: Test thermal zone based on this template, if present.
44 struct thermal_zone_device *tz;
116 if (!tt_zone->tz)
129 if (!tt_zone->tz)
133 thermal_zone_device_update(tt_zone->tz, THERMAL_EVENT_TEMP_SAMPLE);
167 snprintf(f_name, TT_MAX_FILE_NAME_LENGTH, "tz%d", tt_zone->id);
232 if (tt_zone->tz) {
233 thermal_zone_device_unregister(tt_zone->tz);
234 tt_zone->tz = NULL;
372 static int tt_zone_get_temp(struct thermal_zone_device *tz, int *temp)
374 struct tt_thermal_zone *tt_zone = thermal_zone_device_priv(tz);
391 struct thermal_zone_device *tz;
397 if (tt_zone->tz)
410 tz = thermal_zone_device_register_with_trips("test_tz", trips, i, tt_zone,
412 if (IS_ERR(tz))
413 return PTR_ERR(tz);
415 tt_zone->tz = tz;
417 thermal_zone_device_enable(tz);