Home
last modified time | relevance | path

Searched refs:tzdev (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_thermal.c91 struct thermal_zone_device *tzdev; member
99 struct thermal_zone_device *tzdev; member
173 tz->tzdev->type, crit_temp, emerg_temp); in mlxsw_thermal_module_trips_update()
198 struct thermal_zone_device *tzdev, in mlxsw_thermal_tz_score_update()
221 thermal->tz_highest_dev = tzdev; in mlxsw_thermal_tz_score_update()
225 static int mlxsw_thermal_bind(struct thermal_zone_device *tzdev, in mlxsw_thermal_bind() argument
228 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_bind()
239 err = thermal_zone_bind_cooling_device(tzdev, i, cdev, in mlxsw_thermal_bind()
251 static int mlxsw_thermal_unbind(struct thermal_zone_device *tzdev, in mlxsw_thermal_unbind() argument
254 struct mlxsw_thermal *thermal = tzdev in mlxsw_thermal_unbind()
197 mlxsw_thermal_tz_score_update(struct mlxsw_thermal *thermal, struct thermal_zone_device *tzdev, struct mlxsw_thermal_trip *trips, int temp) mlxsw_thermal_tz_score_update() argument
273 mlxsw_thermal_get_temp(struct thermal_zone_device *tzdev, int *p_temp) mlxsw_thermal_get_temp() argument
298 mlxsw_thermal_get_trip_type(struct thermal_zone_device *tzdev, int trip, enum thermal_trip_type *p_type) mlxsw_thermal_get_trip_type() argument
311 mlxsw_thermal_get_trip_temp(struct thermal_zone_device *tzdev, int trip, int *p_temp) mlxsw_thermal_get_trip_temp() argument
323 mlxsw_thermal_set_trip_temp(struct thermal_zone_device *tzdev, int trip, int temp) mlxsw_thermal_set_trip_temp() argument
336 mlxsw_thermal_get_trip_hyst(struct thermal_zone_device *tzdev, int trip, int *p_hyst) mlxsw_thermal_get_trip_hyst() argument
345 mlxsw_thermal_set_trip_hyst(struct thermal_zone_device *tzdev, int trip, int hyst) mlxsw_thermal_set_trip_hyst() argument
354 mlxsw_thermal_trend_get(struct thermal_zone_device *tzdev, int trip, enum thermal_trend *trend) mlxsw_thermal_trend_get() argument
381 mlxsw_thermal_module_bind(struct thermal_zone_device *tzdev, struct thermal_cooling_device *cdev) mlxsw_thermal_module_bind() argument
410 mlxsw_thermal_module_unbind(struct thermal_zone_device *tzdev, struct thermal_cooling_device *cdev) mlxsw_thermal_module_unbind() argument
429 mlxsw_thermal_module_temp_get(struct thermal_zone_device *tzdev, int *p_temp) mlxsw_thermal_module_temp_get() argument
466 mlxsw_thermal_module_trip_type_get(struct thermal_zone_device *tzdev, int trip, enum thermal_trip_type *p_type) mlxsw_thermal_module_trip_type_get() argument
479 mlxsw_thermal_module_trip_temp_get(struct thermal_zone_device *tzdev, int trip, int *p_temp) mlxsw_thermal_module_trip_temp_get() argument
492 mlxsw_thermal_module_trip_temp_set(struct thermal_zone_device *tzdev, int trip, int temp) mlxsw_thermal_module_trip_temp_set() argument
506 mlxsw_thermal_module_trip_hyst_get(struct thermal_zone_device *tzdev, int trip, int *p_hyst) mlxsw_thermal_module_trip_hyst_get() argument
516 mlxsw_thermal_module_trip_hyst_set(struct thermal_zone_device *tzdev, int trip, int hyst) mlxsw_thermal_module_trip_hyst_set() argument
525 mlxsw_thermal_module_trend_get(struct thermal_zone_device *tzdev, int trip, enum thermal_trend *trend) mlxsw_thermal_module_trend_get() argument
553 mlxsw_thermal_gearbox_temp_get(struct thermal_zone_device *tzdev, int *p_temp) mlxsw_thermal_gearbox_temp_get() argument
684 mlxsw_thermal_module_tz_fini(struct thermal_zone_device *tzdev) mlxsw_thermal_module_tz_fini() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_thermal.c12 static int cxgb4_thermal_get_temp(struct thermal_zone_device *tzdev, in cxgb4_thermal_get_temp() argument
15 struct adapter *adap = tzdev->devdata; in cxgb4_thermal_get_temp()
32 static int cxgb4_thermal_get_trip_type(struct thermal_zone_device *tzdev, in cxgb4_thermal_get_trip_type() argument
35 struct adapter *adap = tzdev->devdata; in cxgb4_thermal_get_trip_type()
44 static int cxgb4_thermal_get_trip_temp(struct thermal_zone_device *tzdev, in cxgb4_thermal_get_trip_temp() argument
47 struct adapter *adap = tzdev->devdata; in cxgb4_thermal_get_trip_temp()
87 ch_thermal->tzdev = thermal_zone_device_register(ch_tz_name, num_trip, in cxgb4_thermal_init()
91 if (IS_ERR(ch_thermal->tzdev)) { in cxgb4_thermal_init()
92 ret = PTR_ERR(ch_thermal->tzdev); in cxgb4_thermal_init()
94 ch_thermal->tzdev in cxgb4_thermal_init()
[all...]
H A Dcxgb4.h1083 struct thermal_zone_device *tzdev; member
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/
H A 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...]
H A Dcxgb4.h1081 struct thermal_zone_device *tzdev; member
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A 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()
238 mlxsw_thermal_module_bind(struct thermal_zone_device *tzdev, struct thermal_cooling_device *cdev) mlxsw_thermal_module_bind() argument
267 mlxsw_thermal_module_unbind(struct thermal_zone_device *tzdev, struct thermal_cooling_device *cdev) mlxsw_thermal_module_unbind() argument
286 mlxsw_thermal_module_temp_get(struct thermal_zone_device *tzdev, int *p_temp) mlxsw_thermal_module_temp_get() argument
311 mlxsw_thermal_gearbox_temp_get(struct thermal_zone_device *tzdev, int *p_temp) mlxsw_thermal_gearbox_temp_get() argument
440 mlxsw_thermal_module_tz_fini(struct thermal_zone_device *tzdev) mlxsw_thermal_module_tz_fini() argument
[all...]
/kernel/linux/linux-5.10/drivers/thermal/
H A Dtango_thermal.c78 struct thermal_zone_device *tzdev; in tango_thermal_probe() local
93 tzdev = devm_thermal_zone_of_sensor_register(&pdev->dev, 0, priv, &ops); in tango_thermal_probe()
94 return PTR_ERR_OR_ZERO(tzdev); in tango_thermal_probe()
H A Dmtk_thermal.c993 struct thermal_zone_device *tzdev; in mtk_thermal_probe() local
1083 tzdev = devm_thermal_zone_of_sensor_register(&pdev->dev, 0, mt, in mtk_thermal_probe()
1085 if (IS_ERR(tzdev)) { in mtk_thermal_probe()
1086 ret = PTR_ERR(tzdev); in mtk_thermal_probe()
/kernel/linux/linux-6.6/drivers/acpi/
H A 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()
/kernel/linux/linux-6.6/drivers/thermal/mediatek/
H A 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()

Completed in 24 milliseconds