Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/thermal/tegra/
A Dtegra30-tsensor.c77 struct thermal_zone_device *tzd; member
284 struct thermal_zone_device *tzd = tsc->tzd; in tegra_tsensor_disable_hw_channel() local
288 if (!tzd) in tegra_tsensor_disable_hw_channel()
322 thermal_zone_get_trip(tzd, i, &trip); in tegra_tsensor_get_hw_channel_trips()
348 struct thermal_zone_device *tzd = tsc->tzd; in tegra_tsensor_enable_hw_channel() local
352 if (!tzd) { in tegra_tsensor_enable_hw_channel()
363 mutex_lock(&tzd->lock); in tegra_tsensor_enable_hw_channel()
407 mutex_unlock(&tzd->lock); in tegra_tsensor_enable_hw_channel()
518 if (IS_ERR(tsc->tzd)) { in tegra_tsensor_register_channel()
519 if (PTR_ERR(tsc->tzd) != -ENODEV) in tegra_tsensor_register_channel()
[all …]
A Dtegra-bpmp-thermal.c21 struct thermal_zone_device *tzd; member
103 thermal_zone_device_update(zone->tzd, THERMAL_TRIP_VIOLATED); in tz_device_update_work_fn()
175 struct thermal_zone_device *tzd; in tegra_bpmp_thermal_probe() local
215 tzd = devm_thermal_of_zone_register( in tegra_bpmp_thermal_probe()
217 if (IS_ERR(tzd)) { in tegra_bpmp_thermal_probe()
218 if (PTR_ERR(tzd) == -EPROBE_DEFER) in tegra_bpmp_thermal_probe()
224 zone->tzd = tzd; in tegra_bpmp_thermal_probe()
/linux-6.3-rc2/drivers/thermal/intel/
A Dintel_quark_dts_thermal.c120 static int soc_dts_enable(struct thermal_zone_device *tzd) in soc_dts_enable() argument
123 struct soc_sensor_entry *aux_entry = tzd->devdata; in soc_dts_enable()
148 static int soc_dts_disable(struct thermal_zone_device *tzd) in soc_dts_disable() argument
151 struct soc_sensor_entry *aux_entry = tzd->devdata; in soc_dts_disable()
250 static inline int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp() argument
253 return update_trip_temp(tzd->devdata, trip, temp); in sys_set_trip_temp()
256 static int sys_get_curr_temp(struct thermal_zone_device *tzd, in sys_get_curr_temp() argument
281 static int sys_change_mode(struct thermal_zone_device *tzd, in sys_change_mode() argument
288 ret = soc_dts_enable(tzd); in sys_change_mode()
290 ret = soc_dts_disable(tzd); in sys_change_mode()
A Dintel_pch_thermal.c86 struct thermal_zone_device *tzd; member
120 static int pch_thermal_get_temp(struct thermal_zone_device *tzd, int *temp) in pch_thermal_get_temp() argument
122 struct pch_thermal_device *ptd = tzd->devdata; in pch_thermal_get_temp()
128 static void pch_critical(struct thermal_zone_device *tzd) in pch_critical() argument
130 dev_dbg(&tzd->device, "%s: critical temperature reached\n", tzd->type); in pch_critical()
235 ptd->tzd = thermal_zone_device_register_with_trips(board_names[board_id], in intel_pch_thermal_probe()
239 if (IS_ERR(ptd->tzd)) { in intel_pch_thermal_probe()
242 err = PTR_ERR(ptd->tzd); in intel_pch_thermal_probe()
245 err = thermal_zone_device_enable(ptd->tzd); in intel_pch_thermal_probe()
252 thermal_zone_device_unregister(ptd->tzd); in intel_pch_thermal_probe()
[all …]
A Dintel_soc_dts_iosf.c49 static int sys_get_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_get_trip_temp() argument
57 dts = tzd->devdata; in sys_get_trip_temp()
168 static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp() argument
171 struct intel_soc_dts_sensor_entry *dts = tzd->devdata; in sys_set_trip_temp()
179 status = update_trip_temp(tzd->devdata, trip, temp, in sys_set_trip_temp()
186 static int sys_get_trip_type(struct thermal_zone_device *tzd, in sys_get_trip_type() argument
191 dts = tzd->devdata; in sys_get_trip_type()
198 static int sys_get_curr_temp(struct thermal_zone_device *tzd, in sys_get_curr_temp() argument
207 dts = tzd->devdata; in sys_get_curr_temp()
A Dintel_bxt_pmic_thermal.c156 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()
A Dx86_pkg_temp_thermal.c108 static int sys_get_curr_temp(struct thermal_zone_device *tzd, int *temp) in sys_get_curr_temp() argument
110 struct zone_device *zonedev = tzd->devdata; in sys_get_curr_temp()
123 sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, int temp) in sys_set_trip_temp() argument
125 struct zone_device *zonedev = tzd->devdata; in sys_set_trip_temp()
/linux-6.3-rc2/drivers/thermal/
A Dimx_sc_thermal.c23 struct thermal_zone_device *tzd; member
62 dev_err(&sensor->tzd->device, "read temp sensor %d failed, ret %d\n", in imx_sc_thermal_get_temp()
98 sensor->tzd = devm_thermal_of_zone_register(&pdev->dev, sensor->resource_id, in imx_sc_thermal_probe()
100 if (IS_ERR(sensor->tzd)) { in imx_sc_thermal_probe()
106 ret = PTR_ERR(sensor->tzd); in imx_sc_thermal_probe()
122 if (devm_thermal_add_hwmon_sysfs(sensor->tzd)) in imx_sc_thermal_probe()
A Dhisi_thermal.c61 struct thermal_zone_device *tzd; member
440 sensor->tzd, sensor->id, *temp, sensor->thres_temp); in hisi_thermal_get_temp()
464 thermal_zone_device_update(sensor->tzd, in hisi_thermal_alarm_irq_thread()
482 sensor->tzd = devm_thermal_of_zone_register(&pdev->dev, in hisi_thermal_register_sensor()
485 if (IS_ERR(sensor->tzd)) { in hisi_thermal_register_sensor()
486 ret = PTR_ERR(sensor->tzd); in hisi_thermal_register_sensor()
487 sensor->tzd = NULL; in hisi_thermal_register_sensor()
495 thermal_zone_get_trip(sensor->tzd, i, &trip); in hisi_thermal_register_sensor()
538 struct thermal_zone_device *tzd = sensor->tzd; in hisi_thermal_toggle_sensor() local
541 thermal_zone_device_enable(tzd); in hisi_thermal_toggle_sensor()
[all …]
A Dk3_bandgap.c86 struct thermal_zone_device *tzd; member
215 data[id].tzd = in k3_bandgap_probe()
219 if (IS_ERR(data[id].tzd)) { in k3_bandgap_probe()
221 ret = PTR_ERR(data[id].tzd); in k3_bandgap_probe()
225 if (devm_thermal_add_hwmon_sysfs(data[id].tzd)) in k3_bandgap_probe()
A Dsprd_thermal.c76 struct thermal_zone_device *tzd; member
323 struct thermal_zone_device *tzd = sen->tzd; in sprd_thm_toggle_sensor() local
326 thermal_zone_device_enable(tzd); in sprd_thm_toggle_sensor()
328 thermal_zone_device_disable(tzd); in sprd_thm_toggle_sensor()
411 sen->tzd = devm_thermal_of_zone_register(sen->dev, in sprd_thm_probe()
415 if (IS_ERR(sen->tzd)) { in sprd_thm_probe()
418 ret = PTR_ERR(sen->tzd); in sprd_thm_probe()
527 thm->sensor[i]->tzd); in sprd_thm_remove()
A Damlogic_thermal.c103 struct thermal_zone_device *tzd; member
278 pdata->tzd = devm_thermal_of_zone_register(&pdev->dev, in amlogic_thermal_probe()
282 if (IS_ERR(pdata->tzd)) { in amlogic_thermal_probe()
283 ret = PTR_ERR(pdata->tzd); in amlogic_thermal_probe()
288 if (devm_thermal_add_hwmon_sysfs(pdata->tzd)) in amlogic_thermal_probe()
A Dthermal_of.c584 struct thermal_zone_device **ptr, *tzd; in devm_thermal_of_zone_register() local
591 tzd = thermal_of_zone_register(dev->of_node, sensor_id, data, ops); in devm_thermal_of_zone_register()
592 if (IS_ERR(tzd)) { in devm_thermal_of_zone_register()
594 return tzd; in devm_thermal_of_zone_register()
597 *ptr = tzd; in devm_thermal_of_zone_register()
600 return tzd; in devm_thermal_of_zone_register()
A Drockchip_thermal.c136 struct thermal_zone_device *tzd; member
1190 struct thermal_zone_device *tzd = sensor->tzd; in rockchip_thermal_toggle_sensor() local
1193 thermal_zone_device_enable(tzd); in rockchip_thermal_toggle_sensor()
1195 thermal_zone_device_disable(tzd); in rockchip_thermal_toggle_sensor()
1208 thermal_zone_device_update(thermal->sensors[i].tzd, in rockchip_thermal_alarm_irq_thread()
1329 sensor->tzd = devm_thermal_of_zone_register(&pdev->dev, id, sensor, in rockchip_thermal_register_sensor()
1331 if (IS_ERR(sensor->tzd)) { in rockchip_thermal_register_sensor()
1332 error = PTR_ERR(sensor->tzd); in rockchip_thermal_register_sensor()
1457 thermal->sensors[i].tzd->tzp->no_hwmon = false; in rockchip_thermal_probe()
1458 error = thermal_add_hwmon_sysfs(thermal->sensors[i].tzd); in rockchip_thermal_probe()
[all …]
A Dimx8mm_thermal.c88 struct thermal_zone_device *tzd; member
333 tmu->sensors[i].tzd = in imx8mm_tmu_probe()
337 if (IS_ERR(tmu->sensors[i].tzd)) { in imx8mm_tmu_probe()
338 ret = PTR_ERR(tmu->sensors[i].tzd); in imx8mm_tmu_probe()
346 if (devm_thermal_add_hwmon_sysfs(tmu->sensors[i].tzd)) in imx8mm_tmu_probe()
A Dsun8i_thermal.c63 struct thermal_zone_device *tzd; member
193 thermal_zone_device_update(tmdev->sensor[i].tzd, in sun8i_irq_thread()
470 tmdev->sensor[i].tzd = in sun8i_ths_register()
475 if (IS_ERR(tmdev->sensor[i].tzd)) in sun8i_ths_register()
476 return PTR_ERR(tmdev->sensor[i].tzd); in sun8i_ths_register()
478 if (devm_thermal_add_hwmon_sysfs(tmdev->sensor[i].tzd)) in sun8i_ths_register()
A Dqoriq_thermal.c142 struct thermal_zone_device *tzd; in qoriq_tmu_register_tmu_zone() local
148 tzd = devm_thermal_of_zone_register(dev, id, in qoriq_tmu_register_tmu_zone()
151 ret = PTR_ERR_OR_ZERO(tzd); in qoriq_tmu_register_tmu_zone()
160 if (devm_thermal_add_hwmon_sysfs(tzd)) in qoriq_tmu_register_tmu_zone()
/linux-6.3-rc2/drivers/hwmon/
A Dscmi-hwmon.c197 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, tzd->id); in scmi_thermal_sensor_register()
A Dhwmon.c67 struct thermal_zone_device *tzd;/* thermal zone device */ member
221 struct thermal_zone_device *tzd; in hwmon_thermal_add_sensor() local
231 tzd = devm_thermal_of_zone_register(dev, index, tdata, in hwmon_thermal_add_sensor()
233 if (IS_ERR(tzd)) { in hwmon_thermal_add_sensor()
234 if (PTR_ERR(tzd) != -ENODEV) in hwmon_thermal_add_sensor()
235 return PTR_ERR(tzd); in hwmon_thermal_add_sensor()
246 tdata->tzd = tzd; in hwmon_thermal_add_sensor()
290 thermal_zone_device_update(tzdata->tzd, in hwmon_thermal_notify()
/linux-6.3-rc2/drivers/thermal/qcom/
A Dqcom-spmi-adc-tm5.c209 struct thermal_zone_device *tzd; member
280 if (!chip->channels[i].tzd) in adc_tm5_isr()
341 if (!chip->channels[i].tzd) in adc_tm5_gen2_isr()
672 struct thermal_zone_device *tzd; in adc_tm5_register_tzd() local
676 tzd = devm_thermal_of_zone_register(adc_tm->dev, in adc_tm5_register_tzd()
680 if (IS_ERR(tzd)) { in adc_tm5_register_tzd()
681 if (PTR_ERR(tzd) == -ENODEV) { in adc_tm5_register_tzd()
688 adc_tm->channels[i].channel, PTR_ERR(tzd)); in adc_tm5_register_tzd()
689 return PTR_ERR(tzd); in adc_tm5_register_tzd()
691 adc_tm->channels[i].tzd = tzd; in adc_tm5_register_tzd()
[all …]
A Dtsens.c586 if (!s->tzd) in tsens_critical_irq_thread()
633 if (!s->tzd) in tsens_irq_thread()
638 thermal_zone_device_update(s->tzd, THERMAL_EVENT_UNSPECIFIED); in tsens_irq_thread()
1179 struct thermal_zone_device *tzd; in tsens_register() local
1183 tzd = devm_thermal_of_zone_register(priv->dev, priv->sensor[i].hw_id, in tsens_register()
1186 if (IS_ERR(tzd)) in tsens_register()
1188 priv->sensor[i].tzd = tzd; in tsens_register()
1192 if (devm_thermal_add_hwmon_sysfs(tzd)) in tsens_register()
/linux-6.3-rc2/drivers/thermal/samsung/
A Dexynos_tmu.c192 struct thermal_zone_device *tzd; member
261 struct thermal_zone_device *tzd = data->tzd; in exynos_tmu_initialize() local
262 int num_trips = thermal_zone_get_num_trips(tzd); in exynos_tmu_initialize()
266 ret = thermal_zone_get_crit_temp(tzd, &temp); in exynos_tmu_initialize()
300 ret = thermal_zone_get_trip(tzd, i, &trip); in exynos_tmu_initialize()
356 if (thermal_zone_get_trip(data->tzd, 0, &trip)) in exynos4210_tmu_set_trip_temp()
554 struct thermal_zone_device *tz = data->tzd; in exynos4210_tmu_control()
585 struct thermal_zone_device *tz = data->tzd; in exynos5433_tmu_control()
617 struct thermal_zone_device *tz = data->tzd; in exynos7_tmu_control()
1089 if (IS_ERR(data->tzd)) { in exynos_tmu_probe()
[all …]
/linux-6.3-rc2/drivers/thermal/intel/int340x_thermal/
A Dprocessor_thermal_device_pci.c136 static int sys_get_curr_temp(struct thermal_zone_device *tzd, int *temp) in sys_get_curr_temp() argument
138 struct proc_thermal_pci *pci_info = tzd->devdata; in sys_get_curr_temp()
147 static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, int temp) in sys_set_trip_temp() argument
149 struct proc_thermal_pci *pci_info = tzd->devdata; in sys_set_trip_temp()
156 thermal_zone_device_disable(tzd); in sys_set_trip_temp()
/linux-6.3-rc2/drivers/iio/adc/
A Dsun4i-gpadc-iio.c105 struct thermal_zone_device *tzd; member
640 info->tzd = devm_thermal_of_zone_register(info->sensor_device, in sun4i_gpadc_probe()
647 if (IS_ERR(info->tzd) && PTR_ERR(info->tzd) != -ENODEV) { in sun4i_gpadc_probe()
650 PTR_ERR(info->tzd)); in sun4i_gpadc_probe()
651 return PTR_ERR(info->tzd); in sun4i_gpadc_probe()
/linux-6.3-rc2/drivers/power/supply/
A Dpower_supply_core.c1137 static int power_supply_read_temp(struct thermal_zone_device *tzd, in power_supply_read_temp() argument
1144 WARN_ON(tzd == NULL); in power_supply_read_temp()
1145 psy = tzd->devdata; in power_supply_read_temp()
1169 psy->tzd = thermal_zone_device_register(psy->desc->name, in psy_register_thermal()
1171 if (IS_ERR(psy->tzd)) in psy_register_thermal()
1172 return PTR_ERR(psy->tzd); in psy_register_thermal()
1173 ret = thermal_zone_device_enable(psy->tzd); in psy_register_thermal()
1175 thermal_zone_device_unregister(psy->tzd); in psy_register_thermal()
1184 if (IS_ERR_OR_NULL(psy->tzd)) in psy_unregister_thermal()
1186 thermal_zone_device_unregister(psy->tzd); in psy_unregister_thermal()

Completed in 71 milliseconds

12