Home
last modified time | relevance | path

Searched refs:tzd (Results 1 – 8 of 8) sorted by relevance

/linux-4.1.27/drivers/thermal/
Dof-thermal.c399 struct thermal_zone_device *tzd; in thermal_zone_of_add_sensor() local
402 tzd = thermal_zone_get_zone_by_name(zone->name); in thermal_zone_of_add_sensor()
403 if (IS_ERR(tzd)) in thermal_zone_of_add_sensor()
406 tz = tzd->devdata; in thermal_zone_of_add_sensor()
411 mutex_lock(&tzd->lock); in thermal_zone_of_add_sensor()
415 tzd->ops->get_temp = of_thermal_get_temp; in thermal_zone_of_add_sensor()
416 tzd->ops->get_trend = of_thermal_get_trend; in thermal_zone_of_add_sensor()
417 tzd->ops->set_emul_temp = of_thermal_set_emul_temp; in thermal_zone_of_add_sensor()
418 mutex_unlock(&tzd->lock); in thermal_zone_of_add_sensor()
420 return tzd; in thermal_zone_of_add_sensor()
[all …]
Drockchip_thermal.c74 struct thermal_zone_device *tzd; member
348 struct thermal_zone_device *tzd = sensor->tzd; in rockchip_thermal_toggle_sensor() local
350 tzd->ops->set_mode(tzd, in rockchip_thermal_toggle_sensor()
364 thermal_zone_device_update(thermal->sensors[i].tzd); in rockchip_thermal_alarm_irq_thread()
458 sensor->tzd = thermal_zone_of_sensor_register(&pdev->dev, id, sensor, in rockchip_thermal_register_sensor()
460 if (IS_ERR(sensor->tzd)) { in rockchip_thermal_register_sensor()
461 error = PTR_ERR(sensor->tzd); in rockchip_thermal_register_sensor()
600 thermal_zone_of_sensor_unregister(&pdev->dev, thermal->sensors[1].tzd); in rockchip_thermal_probe()
602 thermal_zone_of_sensor_unregister(&pdev->dev, thermal->sensors[0].tzd); in rockchip_thermal_probe()
620 thermal_zone_of_sensor_unregister(&pdev->dev, sensor->tzd); in rockchip_thermal_remove()
Dintel_soc_dts_thermal.c108 static int sys_get_trip_temp(struct thermal_zone_device *tzd, in sys_get_trip_temp() argument
115 aux_entry = tzd->devdata; in sys_get_trip_temp()
226 static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp() argument
229 struct soc_sensor_entry *aux_entry = tzd->devdata; in sys_set_trip_temp()
236 status = update_trip_temp(tzd->devdata, trip, temp); in sys_set_trip_temp()
253 static int sys_get_curr_temp(struct thermal_zone_device *tzd, in sys_get_curr_temp() argument
260 aux_entry = tzd->devdata; in sys_get_curr_temp()
Dx86_pkg_temp_thermal.c167 static int sys_get_curr_temp(struct thermal_zone_device *tzd, unsigned long *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.1.27/drivers/platform/x86/
Dintel_mid_thermal.c89 struct thermal_zone_device *tzd[MSIC_THERMAL_SENSORS]; member
177 static int mid_read_temp(struct thermal_zone_device *tzd, unsigned long *temp) in mid_read_temp() argument
179 struct thermal_device_info *td_info = tzd->devdata; in mid_read_temp()
456 static int read_curr_temp(struct thermal_zone_device *tzd, unsigned long *temp) in read_curr_temp() argument
458 WARN_ON(tzd == NULL); in read_curr_temp()
459 return mid_read_temp(tzd, temp); in read_curr_temp()
504 pinfo->tzd[i] = thermal_zone_device_register(name[i], in mid_thermal_probe()
506 if (IS_ERR(pinfo->tzd[i])) { in mid_thermal_probe()
508 ret = PTR_ERR(pinfo->tzd[i]); in mid_thermal_probe()
519 kfree(pinfo->tzd[i]->devdata); in mid_thermal_probe()
[all …]
/linux-4.1.27/drivers/thermal/samsung/
Dexynos_tmu.c179 struct thermal_zone_device *tzd; member
192 struct thermal_zone_device *tz = p->tzd; in exynos_report_trigger()
291 struct thermal_zone_device *tz = data->tzd; in get_th_reg()
373 struct thermal_zone_device *tz = data->tzd; in exynos4210_tmu_initialize()
419 of_thermal_get_trip_points(data->tzd); in exynos4412_tmu_initialize()
460 for (i = 0; i < of_thermal_get_ntrips(data->tzd); i++) { in exynos4412_tmu_initialize()
467 if (i == of_thermal_get_ntrips(data->tzd)) { in exynos4412_tmu_initialize()
521 if (!data->tzd->ops->get_crit_temp(data->tzd, &crit_temp)) { in exynos5440_tmu_initialize()
540 struct thermal_zone_device *tz = data->tzd; in exynos7_tmu_initialize()
618 struct thermal_zone_device *tz = data->tzd; in exynos4210_tmu_control()
[all …]
/linux-4.1.27/drivers/power/
Dpower_supply_core.c520 static int power_supply_read_temp(struct thermal_zone_device *tzd, in power_supply_read_temp() argument
527 WARN_ON(tzd == NULL); in power_supply_read_temp()
528 psy = tzd->devdata; in power_supply_read_temp()
552 psy->tzd = thermal_zone_device_register(psy->desc->name, in psy_register_thermal()
554 return PTR_ERR_OR_ZERO(psy->tzd); in psy_register_thermal()
562 if (IS_ERR_OR_NULL(psy->tzd)) in psy_unregister_thermal()
564 thermal_zone_device_unregister(psy->tzd); in psy_unregister_thermal()
/linux-4.1.27/include/linux/
Dpower_supply.h245 struct thermal_zone_device *tzd; member