/linux/drivers/thermal/ |
H A D | loongson2_thermal.c | 98 struct thermal_zone_device *tzd = dev; in loongson2_thermal_irq_thread() local 99 struct loongson2_thermal_data *data = thermal_zone_device_priv(tzd); in loongson2_thermal_irq_thread() 103 thermal_zone_device_update(tzd, THERMAL_EVENT_UNSPECIFIED); in loongson2_thermal_irq_thread() 124 struct thermal_zone_device *tzd; in loongson2_thermal_probe() local 155 tzd = devm_thermal_of_zone_register(dev, i, data, in loongson2_thermal_probe() 158 if (!IS_ERR(tzd)) in loongson2_thermal_probe() 161 if (PTR_ERR(tzd) != -ENODEV) in loongson2_thermal_probe() 164 return dev_err_probe(dev, PTR_ERR(tzd), "failed to register"); in loongson2_thermal_probe() 168 IRQF_ONESHOT, "loongson2_thermal", tzd); in loongson2_thermal_probe() 172 devm_thermal_add_hwmon_sysfs(dev, tzd); in loongson2_thermal_probe()
|
H A D | imx_sc_thermal.c | 22 struct thermal_zone_device *tzd; member 94 sensor->tzd = devm_thermal_of_zone_register(&pdev->dev, sensor->resource_id, in imx_sc_thermal_probe() 96 if (IS_ERR(sensor->tzd)) { in imx_sc_thermal_probe() 102 ret = PTR_ERR(sensor->tzd); in imx_sc_thermal_probe() 117 devm_thermal_add_hwmon_sysfs(&pdev->dev, sensor->tzd); in imx_sc_thermal_probe()
|
H A D | thermal_of.c | 471 struct thermal_zone_device **ptr, *tzd; in devm_thermal_of_zone_register() local 478 tzd = thermal_of_zone_register(dev->of_node, sensor_id, data, ops); in devm_thermal_of_zone_register() 479 if (IS_ERR(tzd)) { in devm_thermal_of_zone_register() 481 return tzd; in devm_thermal_of_zone_register() 484 *ptr = tzd; in devm_thermal_of_zone_register() 487 return tzd; in devm_thermal_of_zone_register()
|
H A D | qoriq_thermal.c | 148 struct thermal_zone_device *tzd; in qoriq_tmu_register_tmu_zone() local 154 tzd = devm_thermal_of_zone_register(dev, id, in qoriq_tmu_register_tmu_zone() 157 ret = PTR_ERR_OR_ZERO(tzd); in qoriq_tmu_register_tmu_zone() 170 devm_thermal_add_hwmon_sysfs(dev, tzd); in qoriq_tmu_register_tmu_zone()
|
/linux/drivers/thermal/tegra/ |
H A D | tegra30-tsensor.c | 77 struct thermal_zone_device *tzd; member 263 thermal_zone_device_update(tsc->tzd, THERMAL_EVENT_UNSPECIFIED); in tegra_tsensor_handle_channel_interrupt() 284 struct thermal_zone_device *tzd = tsc->tzd; in tegra_tsensor_disable_hw_channel() local 288 if (!tzd) in tegra_tsensor_disable_hw_channel() 291 err = thermal_zone_device_disable(tzd); in tegra_tsensor_disable_hw_channel() 323 static void tegra_tsensor_get_hw_channel_trips(struct thermal_zone_device *tzd, in tegra_tsensor_get_hw_channel_trips() argument 333 thermal_zone_for_each_trip(tzd, tegra_tsensor_get_trips_cb, temps); in tegra_tsensor_get_hw_channel_trips() 352 struct thermal_zone_device *tzd = tsc->tzd; in tegra_tsensor_enable_hw_channel() local 357 if (!tzd) { in tegra_tsensor_enable_hw_channel() 365 tegra_tsensor_get_hw_channel_trips(tzd, &temps); in tegra_tsensor_enable_hw_channel() [all …]
|
/linux/drivers/thermal/intel/ |
H A D | intel_pch_thermal.c | 86 struct thermal_zone_device *tzd; member 121 static int pch_thermal_get_temp(struct thermal_zone_device *tzd, int *temp) in pch_thermal_get_temp() argument 123 struct pch_thermal_device *ptd = thermal_zone_device_priv(tzd); in pch_thermal_get_temp() 129 static void pch_critical(struct thermal_zone_device *tzd) in pch_critical() argument 131 dev_dbg(thermal_zone_device(tzd), "%s: critical temperature reached\n", in pch_critical() 132 thermal_zone_device_type(tzd)); in pch_critical() 238 ptd->tzd = thermal_zone_device_register_with_trips(board_names[board_id], in intel_pch_thermal_probe() 242 if (IS_ERR(ptd->tzd)) { in intel_pch_thermal_probe() 245 err = PTR_ERR(ptd->tzd); in intel_pch_thermal_probe() 248 err = thermal_zone_device_enable(ptd->tzd); in intel_pch_thermal_probe() [all …]
|
H A D | intel_bxt_pmic_thermal.c | 156 struct thermal_zone_device *tzd; in pmic_thermal_irq_handler() local 195 tzd = thermal_zone_get_zone_by_name(td->maps[i].handle); in pmic_thermal_irq_handler() 196 if (!IS_ERR(tzd)) in pmic_thermal_irq_handler() 197 thermal_zone_device_update(tzd, in pmic_thermal_irq_handler()
|
H A D | x86_pkg_temp_thermal.c | 107 static int sys_get_curr_temp(struct thermal_zone_device *tzd, int *temp) in sys_get_curr_temp() argument 109 struct zone_device *zonedev = thermal_zone_device_priv(tzd); in sys_get_curr_temp() 122 sys_set_trip_temp(struct thermal_zone_device *tzd, in sys_set_trip_temp() argument 125 struct zone_device *zonedev = thermal_zone_device_priv(tzd); in sys_set_trip_temp()
|
H A D | intel_soc_dts_iosf.c | 132 static int sys_set_trip_temp(struct thermal_zone_device *tzd, in sys_set_trip_temp() argument 136 struct intel_soc_dts_sensor_entry *dts = thermal_zone_device_priv(tzd); in sys_set_trip_temp() 151 static int sys_get_curr_temp(struct thermal_zone_device *tzd, in sys_get_curr_temp() argument 156 struct intel_soc_dts_sensor_entry *dts = thermal_zone_device_priv(tzd); in sys_get_curr_temp()
|
/linux/drivers/hwmon/ |
H A D | scmi-hwmon.c | 197 struct thermal_zone_device *tzd; in scmi_thermal_sensor_register() local 211 tzd = devm_thermal_of_zone_register(dev, th_sensor->info->id, th_sensor, in scmi_thermal_sensor_register() 213 if (IS_ERR(tzd)) { in scmi_thermal_sensor_register() 216 if (PTR_ERR(tzd) != -ENODEV) in scmi_thermal_sensor_register() 217 return PTR_ERR(tzd); in scmi_thermal_sensor_register() 223 sensor->name, thermal_zone_device_id(tzd)); in scmi_thermal_sensor_register()
|
H A D | hwmon.c | 68 struct thermal_zone_device *tzd;/* thermal zone device */ member 227 struct thermal_zone_device *tzd; in hwmon_thermal_add_sensor() local 237 tzd = devm_thermal_of_zone_register(dev, index, tdata, in hwmon_thermal_add_sensor() 239 if (IS_ERR(tzd)) { in hwmon_thermal_add_sensor() 240 if (PTR_ERR(tzd) != -ENODEV) in hwmon_thermal_add_sensor() 241 return PTR_ERR(tzd); in hwmon_thermal_add_sensor() 252 tdata->tzd = tzd; in hwmon_thermal_add_sensor() 302 thermal_zone_device_update(tzdata->tzd, in hwmon_thermal_notify()
|
/linux/drivers/thermal/intel/int340x_thermal/ |
H A D | processor_thermal_device_pci.c | 217 static int sys_get_curr_temp(struct thermal_zone_device *tzd, int *temp) in sys_get_curr_temp() argument 219 struct proc_thermal_pci *pci_info = thermal_zone_device_priv(tzd); in sys_get_curr_temp() 228 static int sys_set_trip_temp(struct thermal_zone_device *tzd, in sys_set_trip_temp() argument 231 struct proc_thermal_pci *pci_info = thermal_zone_device_priv(tzd); in sys_set_trip_temp()
|
/linux/drivers/power/supply/ |
H A D | power_supply_core.c | 1447 static int power_supply_read_temp(struct thermal_zone_device *tzd, in power_supply_read_temp() argument 1454 WARN_ON(tzd == NULL); in power_supply_read_temp() 1455 psy = thermal_zone_device_priv(tzd); in power_supply_read_temp() 1483 psy->tzd = thermal_tripless_zone_device_register(psy->desc->name, in psy_register_thermal() 1485 if (IS_ERR(psy->tzd)) in psy_register_thermal() 1486 return PTR_ERR(psy->tzd); in psy_register_thermal() 1487 ret = thermal_zone_device_enable(psy->tzd); in psy_register_thermal() 1489 thermal_zone_device_unregister(psy->tzd); in psy_register_thermal() 1498 if (IS_ERR_OR_NULL(psy->tzd)) in psy_unregister_thermal() 1500 thermal_zone_device_unregister(psy->tzd); in psy_unregister_thermal()
|
/linux/drivers/regulator/ |
H A D | max8973-regulator.c | 472 struct thermal_zone_device *tzd; in max8973_thermal_init() local 479 tzd = devm_thermal_of_zone_register(mchip->dev, 0, mchip, in max8973_thermal_init() 481 if (IS_ERR(tzd)) { in max8973_thermal_init() 482 ret = PTR_ERR(tzd); in max8973_thermal_init()
|
/linux/Documentation/driver-api/thermal/ |
H A D | sysfs-api.rst | 155 struct thermal_zone_device *tzd) 186 struct thermal_zone_device *tzd)
|
/linux/drivers/hwmon/pmbus/ |
H A D | pmbus_core.c | 1386 struct thermal_zone_device *tzd; in pmbus_thermal_add_sensor() local 1395 tzd = devm_thermal_of_zone_register(dev, index, tdata, in pmbus_thermal_add_sensor() 1401 if (IS_ERR(tzd) && (PTR_ERR(tzd) != -ENODEV)) in pmbus_thermal_add_sensor() 1402 return PTR_ERR(tzd); in pmbus_thermal_add_sensor()
|