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()
323 static void tegra_tsensor_get_hw_channel_trips(struct thermal_zone_device *tzd, in tegra_tsensor_get_hw_channel_trips() argument
333 thermal_zone_for_each_trip(tzd, tegra_tsensor_get_trips_cb, temps); in tegra_tsensor_get_hw_channel_trips()
352 struct thermal_zone_device *tzd = tsc->tzd; in tegra_tsensor_enable_hw_channel() local
357 if (!tzd) { in tegra_tsensor_enable_hw_channel()
365 tegra_tsensor_get_hw_channel_trips(tzd, &temps); 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 devm_thermal_add_hwmon_sysfs(ts->dev, tsc->tzd); in tegra_tsensor_register_channel()