Lines Matching refs:tzd
77 struct thermal_zone_device *tzd;
263 thermal_zone_device_update(tsc->tzd, THERMAL_EVENT_UNSPECIFIED);
284 struct thermal_zone_device *tzd = tsc->tzd;
288 if (!tzd)
291 err = thermal_zone_device_disable(tzd);
306 static void tegra_tsensor_get_hw_channel_trips(struct thermal_zone_device *tzd,
318 for (i = 0; i < thermal_zone_get_num_trips(tzd); i++) {
322 thermal_zone_get_trip(tzd, i, &trip);
348 struct thermal_zone_device *tzd = tsc->tzd;
352 if (!tzd) {
360 tegra_tsensor_get_hw_channel_trips(tzd, &hot_trip, &crit_trip);
404 err = thermal_zone_device_enable(tzd);
512 tsc->tzd = devm_thermal_of_zone_register(ts->dev, id, tsc, &ops);
513 if (IS_ERR(tsc->tzd)) {
514 if (PTR_ERR(tsc->tzd) != -ENODEV)
515 return dev_err_probe(ts->dev, PTR_ERR(tsc->tzd),
522 tsc->tzd = NULL;
526 devm_thermal_add_hwmon_sysfs(ts->dev, tsc->tzd);