tzd               162 drivers/hwmon/hwmon.c 	struct thermal_zone_device *tzd;
tzd               171 drivers/hwmon/hwmon.c 	tzd = devm_thermal_zone_of_sensor_register(dev, index, tdata,
tzd               177 drivers/hwmon/hwmon.c 	if (IS_ERR(tzd) && (PTR_ERR(tzd) != -ENODEV))
tzd               178 drivers/hwmon/hwmon.c 		return PTR_ERR(tzd);
tzd               105 drivers/iio/adc/sun4i-gpadc-iio.c 	struct thermal_zone_device	*tzd;
tzd               644 drivers/iio/adc/sun4i-gpadc-iio.c 		info->tzd = thermal_zone_of_sensor_register(info->sensor_device,
tzd               651 drivers/iio/adc/sun4i-gpadc-iio.c 		if (IS_ERR(info->tzd) && PTR_ERR(info->tzd) != -ENODEV) {
tzd               654 drivers/iio/adc/sun4i-gpadc-iio.c 				PTR_ERR(info->tzd));
tzd               655 drivers/iio/adc/sun4i-gpadc-iio.c 			return PTR_ERR(info->tzd);
tzd               688 drivers/iio/adc/sun4i-gpadc-iio.c 	thermal_zone_of_sensor_unregister(info->sensor_device, info->tzd);
tzd                73 drivers/platform/x86/intel_mid_thermal.c 	struct thermal_zone_device *tzd[MSIC_THERMAL_SENSORS];
tzd               161 drivers/platform/x86/intel_mid_thermal.c static int mid_read_temp(struct thermal_zone_device *tzd, int *temp)
tzd               163 drivers/platform/x86/intel_mid_thermal.c 	struct thermal_device_info *td_info = tzd->devdata;
tzd               441 drivers/platform/x86/intel_mid_thermal.c static int read_curr_temp(struct thermal_zone_device *tzd, int *temp)
tzd               443 drivers/platform/x86/intel_mid_thermal.c 	WARN_ON(tzd == NULL);
tzd               444 drivers/platform/x86/intel_mid_thermal.c 	return mid_read_temp(tzd, temp);
tzd               489 drivers/platform/x86/intel_mid_thermal.c 		pinfo->tzd[i] = thermal_zone_device_register(name[i],
tzd               491 drivers/platform/x86/intel_mid_thermal.c 		if (IS_ERR(pinfo->tzd[i])) {
tzd               493 drivers/platform/x86/intel_mid_thermal.c 			ret = PTR_ERR(pinfo->tzd[i]);
tzd               504 drivers/platform/x86/intel_mid_thermal.c 		kfree(pinfo->tzd[i]->devdata);
tzd               505 drivers/platform/x86/intel_mid_thermal.c 		thermal_zone_device_unregister(pinfo->tzd[i]);
tzd               524 drivers/platform/x86/intel_mid_thermal.c 		kfree(pinfo->tzd[i]->devdata);
tzd               525 drivers/platform/x86/intel_mid_thermal.c 		thermal_zone_device_unregister(pinfo->tzd[i]);
tzd               844 drivers/power/supply/power_supply_core.c static int power_supply_read_temp(struct thermal_zone_device *tzd,
tzd               851 drivers/power/supply/power_supply_core.c 	WARN_ON(tzd == NULL);
tzd               852 drivers/power/supply/power_supply_core.c 	psy = tzd->devdata;
tzd               877 drivers/power/supply/power_supply_core.c 			psy->tzd = thermal_zone_device_register(psy->desc->name,
tzd               879 drivers/power/supply/power_supply_core.c 			return PTR_ERR_OR_ZERO(psy->tzd);
tzd               887 drivers/power/supply/power_supply_core.c 	if (IS_ERR_OR_NULL(psy->tzd))
tzd               889 drivers/power/supply/power_supply_core.c 	thermal_zone_device_unregister(psy->tzd);
tzd               510 drivers/regulator/max8973-regulator.c 	struct thermal_zone_device *tzd;
tzd               518 drivers/regulator/max8973-regulator.c 	tzd = devm_thermal_zone_of_sensor_register(mchip->dev, 0, mchip,
tzd               520 drivers/regulator/max8973-regulator.c 	if (IS_ERR(tzd)) {
tzd               521 drivers/regulator/max8973-regulator.c 		ret = PTR_ERR(tzd);
tzd                70 drivers/thermal/hisi_thermal.c 	struct thermal_zone_device *tzd;
tzd               453 drivers/thermal/hisi_thermal.c 		sensor->tzd, sensor->id, *temp, sensor->thres_temp);
tzd               477 drivers/thermal/hisi_thermal.c 		thermal_zone_device_update(sensor->tzd,
tzd               495 drivers/thermal/hisi_thermal.c 	sensor->tzd = devm_thermal_zone_of_sensor_register(&pdev->dev,
tzd               498 drivers/thermal/hisi_thermal.c 	if (IS_ERR(sensor->tzd)) {
tzd               499 drivers/thermal/hisi_thermal.c 		ret = PTR_ERR(sensor->tzd);
tzd               500 drivers/thermal/hisi_thermal.c 		sensor->tzd = NULL;
tzd               506 drivers/thermal/hisi_thermal.c 	trip = of_thermal_get_trip_points(sensor->tzd);
tzd               508 drivers/thermal/hisi_thermal.c 	for (i = 0; i < of_thermal_get_ntrips(sensor->tzd); i++) {
tzd               550 drivers/thermal/hisi_thermal.c 	struct thermal_zone_device *tzd = sensor->tzd;
tzd               552 drivers/thermal/hisi_thermal.c 	tzd->ops->set_mode(tzd,
tzd               156 drivers/thermal/intel/intel_bxt_pmic_thermal.c 	struct thermal_zone_device *tzd;
tzd               195 drivers/thermal/intel/intel_bxt_pmic_thermal.c 			tzd = thermal_zone_get_zone_by_name(td->maps[i].handle);
tzd               196 drivers/thermal/intel/intel_bxt_pmic_thermal.c 			if (!IS_ERR(tzd))
tzd               197 drivers/thermal/intel/intel_bxt_pmic_thermal.c 				thermal_zone_device_update(tzd,
tzd                61 drivers/thermal/intel/intel_pch_thermal.c 	struct thermal_zone_device *tzd;
tzd               224 drivers/thermal/intel/intel_pch_thermal.c static int pch_thermal_get_temp(struct thermal_zone_device *tzd, int *temp)
tzd               226 drivers/thermal/intel/intel_pch_thermal.c 	struct pch_thermal_device *ptd = tzd->devdata;
tzd               231 drivers/thermal/intel/intel_pch_thermal.c static int pch_get_trip_type(struct thermal_zone_device *tzd, int trip,
tzd               234 drivers/thermal/intel/intel_pch_thermal.c 	struct pch_thermal_device *ptd = tzd->devdata;
tzd               248 drivers/thermal/intel/intel_pch_thermal.c static int pch_get_trip_temp(struct thermal_zone_device *tzd, int trip, int *temp)
tzd               250 drivers/thermal/intel/intel_pch_thermal.c 	struct pch_thermal_device *ptd = tzd->devdata;
tzd               340 drivers/thermal/intel/intel_pch_thermal.c 	ptd->tzd = thermal_zone_device_register(bi->name, nr_trips, 0, ptd,
tzd               342 drivers/thermal/intel/intel_pch_thermal.c 	if (IS_ERR(ptd->tzd)) {
tzd               345 drivers/thermal/intel/intel_pch_thermal.c 		err = PTR_ERR(ptd->tzd);
tzd               365 drivers/thermal/intel/intel_pch_thermal.c 	thermal_zone_device_unregister(ptd->tzd);
tzd               122 drivers/thermal/intel/intel_quark_dts_thermal.c static int soc_dts_enable(struct thermal_zone_device *tzd)
tzd               125 drivers/thermal/intel/intel_quark_dts_thermal.c 	struct soc_sensor_entry *aux_entry = tzd->devdata;
tzd               155 drivers/thermal/intel/intel_quark_dts_thermal.c static int soc_dts_disable(struct thermal_zone_device *tzd)
tzd               158 drivers/thermal/intel/intel_quark_dts_thermal.c 	struct soc_sensor_entry *aux_entry = tzd->devdata;
tzd               214 drivers/thermal/intel/intel_quark_dts_thermal.c static inline int sys_get_trip_temp(struct thermal_zone_device *tzd,
tzd               220 drivers/thermal/intel/intel_quark_dts_thermal.c static inline int sys_get_crit_temp(struct thermal_zone_device *tzd, int *temp)
tzd               273 drivers/thermal/intel/intel_quark_dts_thermal.c static inline int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip,
tzd               276 drivers/thermal/intel/intel_quark_dts_thermal.c 	return update_trip_temp(tzd->devdata, trip, temp);
tzd               290 drivers/thermal/intel/intel_quark_dts_thermal.c static int sys_get_curr_temp(struct thermal_zone_device *tzd,
tzd               315 drivers/thermal/intel/intel_quark_dts_thermal.c static int sys_get_mode(struct thermal_zone_device *tzd,
tzd               318 drivers/thermal/intel/intel_quark_dts_thermal.c 	struct soc_sensor_entry *aux_entry = tzd->devdata;
tzd               323 drivers/thermal/intel/intel_quark_dts_thermal.c static int sys_set_mode(struct thermal_zone_device *tzd,
tzd               330 drivers/thermal/intel/intel_quark_dts_thermal.c 		ret = soc_dts_enable(tzd);
tzd               332 drivers/thermal/intel/intel_quark_dts_thermal.c 		ret = soc_dts_disable(tzd);
tzd                73 drivers/thermal/intel/intel_soc_dts_iosf.c static int sys_get_trip_temp(struct thermal_zone_device *tzd, int trip,
tzd                81 drivers/thermal/intel/intel_soc_dts_iosf.c 	dts = tzd->devdata;
tzd               189 drivers/thermal/intel/intel_soc_dts_iosf.c static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip,
tzd               192 drivers/thermal/intel/intel_soc_dts_iosf.c 	struct intel_soc_dts_sensor_entry *dts = tzd->devdata;
tzd               200 drivers/thermal/intel/intel_soc_dts_iosf.c 	status = update_trip_temp(tzd->devdata, trip, temp,
tzd               207 drivers/thermal/intel/intel_soc_dts_iosf.c static int sys_get_trip_type(struct thermal_zone_device *tzd,
tzd               212 drivers/thermal/intel/intel_soc_dts_iosf.c 	dts = tzd->devdata;
tzd               219 drivers/thermal/intel/intel_soc_dts_iosf.c static int sys_get_curr_temp(struct thermal_zone_device *tzd,
tzd               227 drivers/thermal/intel/intel_soc_dts_iosf.c 	dts = tzd->devdata;
tzd               124 drivers/thermal/intel/x86_pkg_temp_thermal.c static int sys_get_curr_temp(struct thermal_zone_device *tzd, int *temp)
tzd               126 drivers/thermal/intel/x86_pkg_temp_thermal.c 	struct zone_device *zonedev = tzd->devdata;
tzd               139 drivers/thermal/intel/x86_pkg_temp_thermal.c static int sys_get_trip_temp(struct thermal_zone_device *tzd,
tzd               142 drivers/thermal/intel/x86_pkg_temp_thermal.c 	struct zone_device *zonedev = tzd->devdata;
tzd               174 drivers/thermal/intel/x86_pkg_temp_thermal.c sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, int temp)
tzd               176 drivers/thermal/intel/x86_pkg_temp_thermal.c 	struct zone_device *zonedev = tzd->devdata;
tzd               417 drivers/thermal/of-thermal.c 	struct thermal_zone_device *tzd;
tzd               420 drivers/thermal/of-thermal.c 	tzd = thermal_zone_get_zone_by_name(zone->name);
tzd               421 drivers/thermal/of-thermal.c 	if (IS_ERR(tzd))
tzd               424 drivers/thermal/of-thermal.c 	tz = tzd->devdata;
tzd               429 drivers/thermal/of-thermal.c 	mutex_lock(&tzd->lock);
tzd               433 drivers/thermal/of-thermal.c 	tzd->ops->get_temp = of_thermal_get_temp;
tzd               434 drivers/thermal/of-thermal.c 	tzd->ops->get_trend = of_thermal_get_trend;
tzd               441 drivers/thermal/of-thermal.c 		tzd->ops->set_trips = of_thermal_set_trips;
tzd               444 drivers/thermal/of-thermal.c 		tzd->ops->set_emul_temp = of_thermal_set_emul_temp;
tzd               446 drivers/thermal/of-thermal.c 	mutex_unlock(&tzd->lock);
tzd               448 drivers/thermal/of-thermal.c 	return tzd;
tzd               488 drivers/thermal/of-thermal.c 	struct thermal_zone_device *tzd = ERR_PTR(-ENODEV);
tzd               522 drivers/thermal/of-thermal.c 			tzd = thermal_zone_of_add_sensor(child, sensor_np,
tzd               524 drivers/thermal/of-thermal.c 			if (!IS_ERR(tzd))
tzd               525 drivers/thermal/of-thermal.c 				tzd->ops->set_mode(tzd, THERMAL_DEVICE_ENABLED);
tzd               537 drivers/thermal/of-thermal.c 	return tzd;
tzd               557 drivers/thermal/of-thermal.c 				       struct thermal_zone_device *tzd)
tzd               561 drivers/thermal/of-thermal.c 	if (!dev || !tzd || !tzd->devdata)
tzd               564 drivers/thermal/of-thermal.c 	tz = tzd->devdata;
tzd               570 drivers/thermal/of-thermal.c 	mutex_lock(&tzd->lock);
tzd               571 drivers/thermal/of-thermal.c 	tzd->ops->get_temp = NULL;
tzd               572 drivers/thermal/of-thermal.c 	tzd->ops->get_trend = NULL;
tzd               573 drivers/thermal/of-thermal.c 	tzd->ops->set_emul_temp = NULL;
tzd               577 drivers/thermal/of-thermal.c 	mutex_unlock(&tzd->lock);
tzd               621 drivers/thermal/of-thermal.c 	struct thermal_zone_device **ptr, *tzd;
tzd               628 drivers/thermal/of-thermal.c 	tzd = thermal_zone_of_sensor_register(dev, sensor_id, data, ops);
tzd               629 drivers/thermal/of-thermal.c 	if (IS_ERR(tzd)) {
tzd               631 drivers/thermal/of-thermal.c 		return tzd;
tzd               634 drivers/thermal/of-thermal.c 	*ptr = tzd;
tzd               637 drivers/thermal/of-thermal.c 	return tzd;
tzd               655 drivers/thermal/of-thermal.c 					    struct thermal_zone_device *tzd)
tzd               658 drivers/thermal/of-thermal.c 			       devm_thermal_zone_of_sensor_match, tzd));
tzd               242 drivers/thermal/qcom/tsens-8960.c 	slope = thermal_zone_get_slope(s->tzd);
tzd                85 drivers/thermal/qcom/tsens.c 	struct thermal_zone_device *tzd;
tzd                90 drivers/thermal/qcom/tsens.c 		tzd = devm_thermal_zone_of_sensor_register(priv->dev, i,
tzd                93 drivers/thermal/qcom/tsens.c 		if (IS_ERR(tzd))
tzd                95 drivers/thermal/qcom/tsens.c 		priv->sensor[i].tzd = tzd;
tzd                42 drivers/thermal/qcom/tsens.h 	struct thermal_zone_device	*tzd;
tzd                69 drivers/thermal/qoriq_thermal.c 	struct thermal_zone_device	*tzd;
tzd               126 drivers/thermal/qoriq_thermal.c 		qdata->sensor[id]->tzd = devm_thermal_zone_of_sensor_register(
tzd               128 drivers/thermal/qoriq_thermal.c 		if (IS_ERR(qdata->sensor[id]->tzd)) {
tzd               129 drivers/thermal/qoriq_thermal.c 			if (PTR_ERR(qdata->sensor[id]->tzd) == -ENODEV)
tzd               132 drivers/thermal/qoriq_thermal.c 				return PTR_ERR(qdata->sensor[id]->tzd);
tzd               133 drivers/thermal/rockchip_thermal.c 	struct thermal_zone_device *tzd;
tzd              1058 drivers/thermal/rockchip_thermal.c 	struct thermal_zone_device *tzd = sensor->tzd;
tzd              1060 drivers/thermal/rockchip_thermal.c 	tzd->ops->set_mode(tzd,
tzd              1074 drivers/thermal/rockchip_thermal.c 		thermal_zone_device_update(thermal->sensors[i].tzd,
tzd              1195 drivers/thermal/rockchip_thermal.c 	sensor->tzd = devm_thermal_zone_of_sensor_register(&pdev->dev, id,
tzd              1197 drivers/thermal/rockchip_thermal.c 	if (IS_ERR(sensor->tzd)) {
tzd              1198 drivers/thermal/rockchip_thermal.c 		error = PTR_ERR(sensor->tzd);
tzd               190 drivers/thermal/samsung/exynos_tmu.c 	struct thermal_zone_device *tzd;
tzd               259 drivers/thermal/samsung/exynos_tmu.c 	struct thermal_zone_device *tzd = data->tzd;
tzd               261 drivers/thermal/samsung/exynos_tmu.c 		of_thermal_get_trip_points(tzd);
tzd               272 drivers/thermal/samsung/exynos_tmu.c 		ret = tzd->ops->get_crit_temp(tzd, &temp);
tzd               279 drivers/thermal/samsung/exynos_tmu.c 	if (of_thermal_get_ntrips(tzd) > data->ntrip) {
tzd               284 drivers/thermal/samsung/exynos_tmu.c 			 (of_thermal_get_ntrips(tzd) - data->ntrip));
tzd               297 drivers/thermal/samsung/exynos_tmu.c 			min_t(int, of_thermal_get_ntrips(tzd), data->ntrip);
tzd               304 drivers/thermal/samsung/exynos_tmu.c 			ret = tzd->ops->get_trip_temp(tzd, i, &temp);
tzd               311 drivers/thermal/samsung/exynos_tmu.c 			ret = tzd->ops->get_trip_hyst(tzd, i, &hyst);
tzd               363 drivers/thermal/samsung/exynos_tmu.c 		of_thermal_get_trip_points(data->tzd);
tzd               561 drivers/thermal/samsung/exynos_tmu.c 	struct thermal_zone_device *tz = data->tzd;
tzd               591 drivers/thermal/samsung/exynos_tmu.c 	struct thermal_zone_device *tz = data->tzd;
tzd               622 drivers/thermal/samsung/exynos_tmu.c 	struct thermal_zone_device *tz = data->tzd;
tzd               778 drivers/thermal/samsung/exynos_tmu.c 	thermal_zone_device_update(data->tzd, THERMAL_EVENT_UNSPECIFIED);
tzd              1090 drivers/thermal/samsung/exynos_tmu.c 	data->tzd = thermal_zone_of_sensor_register(&pdev->dev, 0, data,
tzd              1092 drivers/thermal/samsung/exynos_tmu.c 	if (IS_ERR(data->tzd)) {
tzd              1093 drivers/thermal/samsung/exynos_tmu.c 		ret = PTR_ERR(data->tzd);
tzd              1115 drivers/thermal/samsung/exynos_tmu.c 	thermal_zone_of_sensor_unregister(&pdev->dev, data->tzd);
tzd              1133 drivers/thermal/samsung/exynos_tmu.c 	struct thermal_zone_device *tzd = data->tzd;
tzd              1135 drivers/thermal/samsung/exynos_tmu.c 	thermal_zone_of_sensor_unregister(&pdev->dev, tzd);
tzd                21 drivers/thermal/tegra/tegra-bpmp-thermal.c 	struct thermal_zone_device *tzd;
tzd                89 drivers/thermal/tegra/tegra-bpmp-thermal.c 	thermal_zone_device_update(zone->tzd, THERMAL_TRIP_VIOLATED);
tzd               158 drivers/thermal/tegra/tegra-bpmp-thermal.c 	struct thermal_zone_device *tzd;
tzd               198 drivers/thermal/tegra/tegra-bpmp-thermal.c 		tzd = devm_thermal_zone_of_sensor_register(
tzd               200 drivers/thermal/tegra/tegra-bpmp-thermal.c 		if (IS_ERR(tzd)) {
tzd               201 drivers/thermal/tegra/tegra-bpmp-thermal.c 			if (PTR_ERR(tzd) == -EPROBE_DEFER)
tzd               207 drivers/thermal/tegra/tegra-bpmp-thermal.c 		zone->tzd = tzd;
tzd                51 drivers/thermal/zx2967_thermal.c 	struct thermal_zone_device	*tzd;
tzd                66 drivers/thermal/zx2967_thermal.c 	if (!priv->tzd)
tzd               105 drivers/thermal/zx2967_thermal.c 	*temp = DIV_ROUND_CLOSEST(((s32)val + priv->tzd->tzp->offset) * 1000,
tzd               106 drivers/thermal/zx2967_thermal.c 				  priv->tzd->tzp->slope);
tzd               161 drivers/thermal/zx2967_thermal.c 	priv->tzd = thermal_zone_of_sensor_register(&pdev->dev,
tzd               164 drivers/thermal/zx2967_thermal.c 	if (IS_ERR(priv->tzd)) {
tzd               165 drivers/thermal/zx2967_thermal.c 		ret = PTR_ERR(priv->tzd);
tzd               170 drivers/thermal/zx2967_thermal.c 	if (priv->tzd->tzp->slope == 0) {
tzd               171 drivers/thermal/zx2967_thermal.c 		thermal_zone_of_sensor_unregister(&pdev->dev, priv->tzd);
tzd               193 drivers/thermal/zx2967_thermal.c 	thermal_zone_of_sensor_unregister(&pdev->dev, priv->tzd);
tzd               286 include/linux/power_supply.h 	struct thermal_zone_device *tzd;