Home
last modified time | relevance | path

Searched refs:tzd (Results 26 – 34 of 34) sorted by relevance

12

/openbmc/linux/drivers/power/supply/
H A Dpower_supply_core.c1276 static int power_supply_read_temp(struct thermal_zone_device *tzd, in power_supply_read_temp() argument
1283 WARN_ON(tzd == NULL); in power_supply_read_temp()
1284 psy = thermal_zone_device_priv(tzd); in power_supply_read_temp()
1312 psy->tzd = thermal_tripless_zone_device_register(psy->desc->name, in psy_register_thermal()
1314 if (IS_ERR(psy->tzd)) in psy_register_thermal()
1315 return PTR_ERR(psy->tzd); in psy_register_thermal()
1316 ret = thermal_zone_device_enable(psy->tzd); in psy_register_thermal()
1318 thermal_zone_device_unregister(psy->tzd); in psy_register_thermal()
1327 if (IS_ERR_OR_NULL(psy->tzd)) in psy_unregister_thermal()
1329 thermal_zone_device_unregister(psy->tzd); in psy_unregister_thermal()
/openbmc/linux/drivers/thermal/qcom/
H A Dtsens.c600 if (!s->tzd) in tsens_critical_irq_thread()
647 if (!s->tzd) in tsens_irq_thread()
652 thermal_zone_device_update(s->tzd, THERMAL_EVENT_UNSPECIFIED); in tsens_irq_thread()
1199 struct thermal_zone_device *tzd; in tsens_register() local
1203 tzd = devm_thermal_of_zone_register(priv->dev, priv->sensor[i].hw_id, in tsens_register()
1206 if (IS_ERR(tzd)) in tsens_register()
1208 priv->sensor[i].tzd = tzd; in tsens_register()
1212 devm_thermal_add_hwmon_sysfs(priv->dev, tzd); in tsens_register()
H A Dtsens.h57 struct thermal_zone_device *tzd; member
/openbmc/linux/drivers/thermal/
H A Dthermal_core.c1409 void *thermal_zone_device_priv(struct thermal_zone_device *tzd) in thermal_zone_device_priv() argument
1411 return tzd->devdata; in thermal_zone_device_priv()
1415 const char *thermal_zone_device_type(struct thermal_zone_device *tzd) in thermal_zone_device_type() argument
1417 return tzd->type; in thermal_zone_device_type()
1421 int thermal_zone_device_id(struct thermal_zone_device *tzd) in thermal_zone_device_id() argument
1423 return tzd->id; in thermal_zone_device_id()
1427 struct device *thermal_zone_device(struct thermal_zone_device *tzd) in thermal_zone_device() argument
1429 return &tzd->device; in thermal_zone_device()
/openbmc/linux/drivers/regulator/
H A Dmax8973-regulator.c474 struct thermal_zone_device *tzd; in max8973_thermal_init() local
482 tzd = devm_thermal_of_zone_register(mchip->dev, 0, mchip, in max8973_thermal_init()
484 if (IS_ERR(tzd)) { in max8973_thermal_init()
485 ret = PTR_ERR(tzd); in max8973_thermal_init()
/openbmc/linux/drivers/soc/mediatek/
H A Dmtk-svs.c422 struct thermal_zone_device *tzd; member
562 if (!IS_ERR_OR_NULL(svsb->tzd)) { in svs_adjust_pm_opp_volts()
563 ret = thermal_zone_get_temp(svsb->tzd, &tzone_temp); in svs_adjust_pm_opp_volts()
752 ret = thermal_zone_get_temp(svsb->tzd, &tzone_temp); in svs_status_debug_show()
1684 svsb->tzd = thermal_zone_get_zone_by_name(svsb->tzone_name); in svs_bank_resource_setup()
1685 if (IS_ERR(svsb->tzd)) { in svs_bank_resource_setup()
1688 return PTR_ERR(svsb->tzd); in svs_bank_resource_setup()
/openbmc/linux/include/linux/
H A Dpower_supply.h306 struct thermal_zone_device *tzd; member
/openbmc/linux/Documentation/driver-api/thermal/
H A Dsysfs-api.rst161 struct thermal_zone_device *tzd)
192 struct thermal_zone_device *tzd)
/openbmc/linux/drivers/hwmon/pmbus/
H A Dpmbus_core.c1320 struct thermal_zone_device *tzd; in pmbus_thermal_add_sensor() local
1329 tzd = devm_thermal_of_zone_register(dev, index, tdata, in pmbus_thermal_add_sensor()
1335 if (IS_ERR(tzd) && (PTR_ERR(tzd) != -ENODEV)) in pmbus_thermal_add_sensor()
1336 return PTR_ERR(tzd); in pmbus_thermal_add_sensor()

12