Home
last modified time | relevance | path

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

/linux-6.12.1/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.12.1/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c111 struct thermal_zone_device *tzdev; member
130 struct thermal_zone_device *tzdev; member
168 static bool mlxsw_thermal_should_bind(struct thermal_zone_device *tzdev, in mlxsw_thermal_should_bind() argument
173 struct mlxsw_thermal *thermal = thermal_zone_device_priv(tzdev); in mlxsw_thermal_should_bind()
186 static int mlxsw_thermal_get_temp(struct thermal_zone_device *tzdev, in mlxsw_thermal_get_temp() argument
189 struct mlxsw_thermal *thermal = thermal_zone_device_priv(tzdev); in mlxsw_thermal_get_temp()
217 static bool mlxsw_thermal_module_should_bind(struct thermal_zone_device *tzdev, in mlxsw_thermal_module_should_bind() argument
222 struct mlxsw_thermal_module *tz = thermal_zone_device_priv(tzdev); in mlxsw_thermal_module_should_bind()
236 static int mlxsw_thermal_module_temp_get(struct thermal_zone_device *tzdev, in mlxsw_thermal_module_temp_get() argument
239 struct mlxsw_thermal_module *tz = thermal_zone_device_priv(tzdev); in mlxsw_thermal_module_temp_get()
[all …]
/linux-6.12.1/drivers/acpi/
Dthermal.c594 struct device *tzdev = thermal_zone_device(tz->thermal_zone); in acpi_thermal_zone_sysfs_add() local
598 &tzdev->kobj, "thermal_zone"); in acpi_thermal_zone_sysfs_add()
602 ret = sysfs_create_link(&tzdev->kobj, in acpi_thermal_zone_sysfs_add()
612 struct device *tzdev = thermal_zone_device(tz->thermal_zone); in acpi_thermal_zone_sysfs_remove() local
615 sysfs_remove_link(&tzdev->kobj, "device"); in acpi_thermal_zone_sysfs_remove()
/linux-6.12.1/drivers/thermal/mediatek/
Dauxadc_thermal.c1200 struct thermal_zone_device *tzdev; in mtk_thermal_probe() local
1288 tzdev = devm_thermal_of_zone_register(&pdev->dev, 0, mt, in mtk_thermal_probe()
1290 if (IS_ERR(tzdev)) in mtk_thermal_probe()
1291 return PTR_ERR(tzdev); in mtk_thermal_probe()
1293 ret = devm_thermal_add_hwmon_sysfs(&pdev->dev, tzdev); in mtk_thermal_probe()