/linux-4.4.14/drivers/thermal/ |
D | intel_quark_dts_thermal.c | 122 static int soc_dts_enable(struct thermal_zone_device *tzd) in soc_dts_enable() argument 125 struct soc_sensor_entry *aux_entry = tzd->devdata; in soc_dts_enable() 155 static int soc_dts_disable(struct thermal_zone_device *tzd) in soc_dts_disable() argument 158 struct soc_sensor_entry *aux_entry = tzd->devdata; in soc_dts_disable() 214 static inline int sys_get_trip_temp(struct thermal_zone_device *tzd, in sys_get_trip_temp() argument 220 static inline int sys_get_crit_temp(struct thermal_zone_device *tzd, int *temp) in sys_get_crit_temp() argument 273 static inline int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp() argument 276 return update_trip_temp(tzd->devdata, trip, temp); in sys_set_trip_temp() 290 static int sys_get_curr_temp(struct thermal_zone_device *tzd, in sys_get_curr_temp() argument 315 static int sys_get_mode(struct thermal_zone_device *tzd, in sys_get_mode() argument [all …]
|
D | intel_pch_thermal.c | 62 struct thermal_zone_device *tzd; member 144 static int pch_thermal_get_temp(struct thermal_zone_device *tzd, int *temp) in pch_thermal_get_temp() argument 146 struct pch_thermal_device *ptd = tzd->devdata; in pch_thermal_get_temp() 151 static int pch_get_trip_type(struct thermal_zone_device *tzd, int trip, in pch_get_trip_type() argument 154 struct pch_thermal_device *ptd = tzd->devdata; in pch_get_trip_type() 166 static int pch_get_trip_temp(struct thermal_zone_device *tzd, int trip, int *temp) in pch_get_trip_temp() argument 168 struct pch_thermal_device *ptd = tzd->devdata; in pch_get_trip_temp() 235 ptd->tzd = thermal_zone_device_register(dev_name, nr_trips, 0, ptd, in intel_pch_thermal_probe() 237 if (IS_ERR(ptd->tzd)) { in intel_pch_thermal_probe() 240 err = PTR_ERR(ptd->tzd); in intel_pch_thermal_probe() [all …]
|
D | of-thermal.c | 404 struct thermal_zone_device *tzd; in thermal_zone_of_add_sensor() local 407 tzd = thermal_zone_get_zone_by_name(zone->name); in thermal_zone_of_add_sensor() 408 if (IS_ERR(tzd)) in thermal_zone_of_add_sensor() 411 tz = tzd->devdata; in thermal_zone_of_add_sensor() 416 mutex_lock(&tzd->lock); in thermal_zone_of_add_sensor() 420 tzd->ops->get_temp = of_thermal_get_temp; in thermal_zone_of_add_sensor() 421 tzd->ops->get_trend = of_thermal_get_trend; in thermal_zone_of_add_sensor() 422 tzd->ops->set_emul_temp = of_thermal_set_emul_temp; in thermal_zone_of_add_sensor() 423 mutex_unlock(&tzd->lock); in thermal_zone_of_add_sensor() 425 return tzd; in thermal_zone_of_add_sensor() [all …]
|
D | hisi_thermal.c | 45 struct thermal_zone_device *tzd; member 230 thermal_zone_device_update(data->sensors[i].tzd); in hisi_thermal_alarm_irq_thread() 246 sensor->tzd = thermal_zone_of_sensor_register(&pdev->dev, sensor->id, in hisi_thermal_register_sensor() 248 if (IS_ERR(sensor->tzd)) { in hisi_thermal_register_sensor() 249 ret = PTR_ERR(sensor->tzd); in hisi_thermal_register_sensor() 255 trip = of_thermal_get_trip_points(sensor->tzd); in hisi_thermal_register_sensor() 257 for (i = 0; i < of_thermal_get_ntrips(sensor->tzd); i++) { in hisi_thermal_register_sensor() 276 struct thermal_zone_device *tzd = sensor->tzd; in hisi_thermal_toggle_sensor() local 278 tzd->ops->set_mode(tzd, in hisi_thermal_toggle_sensor() 367 thermal_zone_of_sensor_unregister(&pdev->dev, sensor->tzd); in hisi_thermal_remove()
|
D | intel_soc_dts_iosf.c | 82 static int sys_get_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_get_trip_temp() argument 90 dts = tzd->devdata; in sys_get_trip_temp() 198 static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp() argument 201 struct intel_soc_dts_sensor_entry *dts = tzd->devdata; in sys_set_trip_temp() 209 status = update_trip_temp(tzd->devdata, trip, temp, in sys_set_trip_temp() 216 static int sys_get_trip_type(struct thermal_zone_device *tzd, in sys_get_trip_type() argument 221 dts = tzd->devdata; in sys_get_trip_type() 228 static int sys_get_curr_temp(struct thermal_zone_device *tzd, in sys_get_curr_temp() argument 236 dts = tzd->devdata; in sys_get_curr_temp()
|
D | rockchip_thermal.c | 116 struct thermal_zone_device *tzd; member 496 struct thermal_zone_device *tzd = sensor->tzd; in rockchip_thermal_toggle_sensor() local 498 tzd->ops->set_mode(tzd, in rockchip_thermal_toggle_sensor() 512 thermal_zone_device_update(thermal->sensors[i].tzd); in rockchip_thermal_alarm_irq_thread() 607 sensor->tzd = thermal_zone_of_sensor_register(&pdev->dev, id, sensor, in rockchip_thermal_register_sensor() 609 if (IS_ERR(sensor->tzd)) { in rockchip_thermal_register_sensor() 610 error = PTR_ERR(sensor->tzd); in rockchip_thermal_register_sensor() 721 thermal->sensors[j].tzd); in rockchip_thermal_probe() 748 thermal->sensors[i].tzd); in rockchip_thermal_probe() 767 thermal_zone_of_sensor_unregister(&pdev->dev, sensor->tzd); in rockchip_thermal_remove()
|
D | x86_pkg_temp_thermal.c | 167 static int sys_get_curr_temp(struct thermal_zone_device *tzd, int *temp) in sys_get_curr_temp() argument 172 phy_dev_entry = tzd->devdata; in sys_get_curr_temp() 185 static int sys_get_trip_temp(struct thermal_zone_device *tzd, in sys_get_trip_temp() argument 197 phy_dev_entry = tzd->devdata; in sys_get_trip_temp() 222 static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp() argument 230 phy_dev_entry = tzd->devdata; in sys_set_trip_temp()
|
/linux-4.4.14/drivers/platform/x86/ |
D | intel_mid_thermal.c | 89 struct thermal_zone_device *tzd[MSIC_THERMAL_SENSORS]; member 177 static int mid_read_temp(struct thermal_zone_device *tzd, int *temp) in mid_read_temp() argument 179 struct thermal_device_info *td_info = tzd->devdata; in mid_read_temp() 455 static int read_curr_temp(struct thermal_zone_device *tzd, int *temp) in read_curr_temp() argument 457 WARN_ON(tzd == NULL); in read_curr_temp() 458 return mid_read_temp(tzd, temp); in read_curr_temp() 503 pinfo->tzd[i] = thermal_zone_device_register(name[i], in mid_thermal_probe() 505 if (IS_ERR(pinfo->tzd[i])) { in mid_thermal_probe() 507 ret = PTR_ERR(pinfo->tzd[i]); in mid_thermal_probe() 518 kfree(pinfo->tzd[i]->devdata); in mid_thermal_probe() [all …]
|
/linux-4.4.14/drivers/thermal/samsung/ |
D | exynos_tmu.c | 205 struct thermal_zone_device *tzd; member 217 struct thermal_zone_device *tz = p->tzd; in exynos_report_trigger() 316 struct thermal_zone_device *tz = data->tzd; in get_th_reg() 398 struct thermal_zone_device *tz = data->tzd; in exynos4210_tmu_initialize() 444 of_thermal_get_trip_points(data->tzd); in exynos4412_tmu_initialize() 485 for (i = 0; i < of_thermal_get_ntrips(data->tzd); i++) { in exynos4412_tmu_initialize() 492 if (i == of_thermal_get_ntrips(data->tzd)) { in exynos4412_tmu_initialize() 516 struct thermal_zone_device *tz = data->tzd; in exynos5433_tmu_initialize() 641 if (!data->tzd->ops->get_crit_temp(data->tzd, &crit_temp)) { in exynos5440_tmu_initialize() 661 struct thermal_zone_device *tz = data->tzd; in exynos7_tmu_initialize() [all …]
|
/linux-4.4.14/drivers/hwmon/ |
D | scpi-hwmon.c | 37 struct thermal_zone_device *tzd; member 105 thermal_zone_of_sensor_unregister(&pdev->dev, zone->tzd); in unregister_thermal_zones() 240 zone->tzd = thermal_zone_of_sensor_register(dev, in scpi_hwmon_probe() 248 if (IS_ERR(zone->tzd)) { in scpi_hwmon_probe()
|
/linux-4.4.14/drivers/power/ |
D | power_supply_core.c | 559 static int power_supply_read_temp(struct thermal_zone_device *tzd, in power_supply_read_temp() argument 566 WARN_ON(tzd == NULL); in power_supply_read_temp() 567 psy = tzd->devdata; in power_supply_read_temp() 591 psy->tzd = thermal_zone_device_register(psy->desc->name, in psy_register_thermal() 593 return PTR_ERR_OR_ZERO(psy->tzd); in psy_register_thermal() 601 if (IS_ERR_OR_NULL(psy->tzd)) in psy_unregister_thermal() 603 thermal_zone_device_unregister(psy->tzd); in psy_unregister_thermal()
|
/linux-4.4.14/include/linux/ |
D | power_supply.h | 250 struct thermal_zone_device *tzd; member
|