Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/chelsio/cxgb4/
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 …]
A Dcxgb4.h1081 struct thermal_zone_device *tzdev; member
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dcore_thermal.c111 struct thermal_zone_device *tzdev; member
130 struct thermal_zone_device *tzdev; member
369 if (IS_ERR(module_tz->tzdev)) { in mlxsw_thermal_module_tz_init()
370 err = PTR_ERR(module_tz->tzdev); in mlxsw_thermal_module_tz_init()
383 thermal_zone_device_unregister(tzdev); in mlxsw_thermal_module_tz_fini()
411 mlxsw_thermal_module_tz_fini(module_tz->tzdev); in mlxsw_thermal_module_fini()
485 if (IS_ERR(gearbox_tz->tzdev)) in mlxsw_thermal_gearbox_tz_init()
486 return PTR_ERR(gearbox_tz->tzdev); in mlxsw_thermal_gearbox_tz_init()
719 if (IS_ERR(thermal->tzdev)) { in mlxsw_thermal_init()
720 err = PTR_ERR(thermal->tzdev); in mlxsw_thermal_init()
[all …]
/linux/drivers/acpi/
A 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/drivers/thermal/mediatek/
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