| /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() 130 struct thermal_zone_device *tzd; in loongson2_thermal_probe() local 163 tzd = devm_thermal_of_zone_register(dev, i, data, thermal_ops); in loongson2_thermal_probe() 165 if (!IS_ERR(tzd)) in loongson2_thermal_probe() 168 if (PTR_ERR(tzd) != -ENODEV) in loongson2_thermal_probe() 171 return dev_err_probe(dev, PTR_ERR(tzd), "failed to register"); in loongson2_thermal_probe() 175 IRQF_ONESHOT, "loongson2_thermal", tzd); in loongson2_thermal_probe() 179 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()
|
| /linux/drivers/thermal/intel/ |
| H A D | intel_quark_dts_thermal.c | 115 static int soc_dts_enable(struct thermal_zone_device *tzd) in soc_dts_enable() argument 118 struct soc_sensor_entry *aux_entry = thermal_zone_device_priv(tzd); in soc_dts_enable() 143 static int soc_dts_disable(struct thermal_zone_device *tzd) in soc_dts_disable() argument 146 struct soc_sensor_entry *aux_entry = thermal_zone_device_priv(tzd); in soc_dts_disable() 245 static inline int sys_set_trip_temp(struct thermal_zone_device *tzd, in sys_set_trip_temp() argument 264 return update_trip_temp(thermal_zone_device_priv(tzd), trip_index, temp); in sys_set_trip_temp() 267 static int sys_get_curr_temp(struct thermal_zone_device *tzd, in sys_get_curr_temp() argument 292 static int sys_change_mode(struct thermal_zone_device *tzd, in sys_change_mode() argument 299 ret = soc_dts_enable(tzd); in sys_change_mode() 301 ret = soc_dts_disable(tzd); in sys_change_mode()
|
| 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 | 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/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/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/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/drivers/hwmon/pmbus/ |
| H A D | pmbus_core.c | 1410 struct thermal_zone_device *tzd; in pmbus_thermal_add_sensor() local 1419 tzd = devm_thermal_of_zone_register(dev, index, tdata, in pmbus_thermal_add_sensor() 1425 if (IS_ERR(tzd) && (PTR_ERR(tzd) != -ENODEV)) in pmbus_thermal_add_sensor() 1426 return PTR_ERR(tzd); in pmbus_thermal_add_sensor()
|