Home
last modified time | relevance | path

Searched refs:tzdev (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_thermal.c12 static int cxgb4_thermal_get_temp(struct thermal_zone_device *tzdev, in cxgb4_thermal_get_temp() argument
15 struct adapter *adap = thermal_zone_device_priv(tzdev); in cxgb4_thermal_get_temp()
62 ch_thermal->tzdev = thermal_zone_device_register_with_trips(ch_tz_name, &trip, num_trip, in cxgb4_thermal_init()
66 if (IS_ERR(ch_thermal->tzdev)) { in cxgb4_thermal_init()
67 ret = PTR_ERR(ch_thermal->tzdev); in cxgb4_thermal_init()
69 ch_thermal->tzdev = NULL; in cxgb4_thermal_init()
73 ret = thermal_zone_device_enable(ch_thermal->tzdev); in cxgb4_thermal_init()
76 thermal_zone_device_unregister(adap->ch_thermal.tzdev); in cxgb4_thermal_init()
85 if (adap->ch_thermal.tzdev) { in cxgb4_thermal_remove()
86 thermal_zone_device_unregister(adap->ch_thermal.tzdev); in cxgb4_thermal_remove()
[all …]
Dcxgb4.h1081 struct thermal_zone_device *tzdev; member
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c101 struct thermal_zone_device *tzdev; member
120 struct thermal_zone_device *tzdev; member
158 static int mlxsw_thermal_bind(struct thermal_zone_device *tzdev, in mlxsw_thermal_bind() argument
161 struct mlxsw_thermal *thermal = thermal_zone_device_priv(tzdev); in mlxsw_thermal_bind()
172 err = thermal_zone_bind_cooling_device(tzdev, i, cdev, in mlxsw_thermal_bind()
184 static int mlxsw_thermal_unbind(struct thermal_zone_device *tzdev, in mlxsw_thermal_unbind() argument
187 struct mlxsw_thermal *thermal = thermal_zone_device_priv(tzdev); in mlxsw_thermal_unbind()
197 err = thermal_zone_unbind_cooling_device(tzdev, i, cdev); in mlxsw_thermal_unbind()
206 static int mlxsw_thermal_get_temp(struct thermal_zone_device *tzdev, in mlxsw_thermal_get_temp() argument
209 struct mlxsw_thermal *thermal = thermal_zone_device_priv(tzdev); in mlxsw_thermal_get_temp()
[all …]
/linux-6.6.21/drivers/thermal/mediatek/
Dauxadc_thermal.c1197 struct thermal_zone_device *tzdev; in mtk_thermal_probe() local
1285 tzdev = devm_thermal_of_zone_register(&pdev->dev, 0, mt, in mtk_thermal_probe()
1287 if (IS_ERR(tzdev)) in mtk_thermal_probe()
1288 return PTR_ERR(tzdev); in mtk_thermal_probe()
1290 ret = devm_thermal_add_hwmon_sysfs(&pdev->dev, tzdev); in mtk_thermal_probe()
/linux-6.6.21/drivers/acpi/
Dthermal.c658 struct device *tzdev = thermal_zone_device(tz->thermal_zone); in acpi_thermal_zone_sysfs_add() local
662 &tzdev->kobj, "thermal_zone"); in acpi_thermal_zone_sysfs_add()
666 ret = sysfs_create_link(&tzdev->kobj, in acpi_thermal_zone_sysfs_add()
676 struct device *tzdev = thermal_zone_device(tz->thermal_zone); in acpi_thermal_zone_sysfs_remove() local
679 sysfs_remove_link(&tzdev->kobj, "device"); in acpi_thermal_zone_sysfs_remove()