Searched refs:tzd (Results 1 - 3 of 3) sorted by relevance
/device/soc/rockchip/common/sdk_linux/drivers/thermal/ |
H A D | rockchip_thermal.c | 151 * @tzd: pointer to a thermal zone
156 struct thermal_zone_device *tzd;
member 1181 struct thermal_zone_device *tzd = sensor->tzd;
in rockchip_thermal_toggle_sensor() local 1184 thermal_zone_device_enable(tzd);
in rockchip_thermal_toggle_sensor() 1186 thermal_zone_device_disable(tzd);
in rockchip_thermal_toggle_sensor() 1200 thermal_zone_device_update(thermal->sensors[i].tzd, THERMAL_EVENT_UNSPECIFIED);
in rockchip_thermal_alarm_irq_thread() 1373 sensor->tzd = devm_thermal_zone_of_sensor_register(&pdev->dev, id, sensor, &rockchip_of_thermal_ops);
in rockchip_thermal_register_sensor() 1374 if (IS_ERR(sensor->tzd)) {
in rockchip_thermal_register_sensor() 1375 error = PTR_ERR(sensor->tzd);
in rockchip_thermal_register_sensor() [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/power/supply/ |
H A D | power_supply_core.c | 1007 static int power_supply_read_temp(struct thermal_zone_device *tzd, int *temp)
in power_supply_read_temp() argument 1013 WARN_ON(tzd == NULL);
in power_supply_read_temp() 1014 psy = tzd->devdata;
in power_supply_read_temp() 1041 psy->tzd = thermal_zone_device_register(psy->desc->name, 0, 0, psy, &psy_tzd_ops, NULL, 0, 0);
in psy_register_thermal() 1042 if (IS_ERR(psy->tzd)) {
in psy_register_thermal() 1043 return PTR_ERR(psy->tzd);
in psy_register_thermal() 1045 ret = thermal_zone_device_enable(psy->tzd);
in psy_register_thermal() 1047 thermal_zone_device_unregister(psy->tzd);
in psy_register_thermal() 1057 if (IS_ERR_OR_NULL(psy->tzd)) {
in psy_unregister_thermal() 1060 thermal_zone_device_unregister(psy->tzd);
in psy_unregister_thermal() [all...] |
/device/soc/rockchip/common/sdk_linux/include/linux/ |
H A D | power_supply.h | 298 struct thermal_zone_device *tzd; member
|
Completed in 6 milliseconds