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