Lines Matching refs:tzd

77 	struct thermal_zone_device *tzd;  member
263 thermal_zone_device_update(tsc->tzd, THERMAL_EVENT_UNSPECIFIED); in tegra_tsensor_handle_channel_interrupt()
284 struct thermal_zone_device *tzd = tsc->tzd; in tegra_tsensor_disable_hw_channel() local
288 if (!tzd) in tegra_tsensor_disable_hw_channel()
291 err = thermal_zone_device_disable(tzd); in tegra_tsensor_disable_hw_channel()
306 static void tegra_tsensor_get_hw_channel_trips(struct thermal_zone_device *tzd, in tegra_tsensor_get_hw_channel_trips() argument
318 for (i = 0; i < thermal_zone_get_num_trips(tzd); i++) { in tegra_tsensor_get_hw_channel_trips()
322 thermal_zone_get_trip(tzd, i, &trip); in tegra_tsensor_get_hw_channel_trips()
348 struct thermal_zone_device *tzd = tsc->tzd; in tegra_tsensor_enable_hw_channel() local
352 if (!tzd) { in tegra_tsensor_enable_hw_channel()
360 tegra_tsensor_get_hw_channel_trips(tzd, &hot_trip, &crit_trip); in tegra_tsensor_enable_hw_channel()
363 mutex_lock(&tzd->lock); in tegra_tsensor_enable_hw_channel()
407 mutex_unlock(&tzd->lock); in tegra_tsensor_enable_hw_channel()
409 err = thermal_zone_device_enable(tzd); in tegra_tsensor_enable_hw_channel()
517 tsc->tzd = devm_thermal_of_zone_register(ts->dev, id, tsc, &ops); in tegra_tsensor_register_channel()
518 if (IS_ERR(tsc->tzd)) { in tegra_tsensor_register_channel()
519 if (PTR_ERR(tsc->tzd) != -ENODEV) in tegra_tsensor_register_channel()
520 return dev_err_probe(ts->dev, PTR_ERR(tsc->tzd), in tegra_tsensor_register_channel()
527 tsc->tzd = NULL; in tegra_tsensor_register_channel()
531 if (devm_thermal_add_hwmon_sysfs(tsc->tzd)) in tegra_tsensor_register_channel()