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

/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_thermal.c12 static int cxgb4_thermal_get_temp(struct thermal_zone_device *tzdev, argument
15 struct adapter *adap = thermal_zone_device_priv(tzdev);
62 ch_thermal->tzdev = thermal_zone_device_register_with_trips(ch_tz_name, &trip, num_trip,
66 if (IS_ERR(ch_thermal->tzdev)) {
67 ret = PTR_ERR(ch_thermal->tzdev);
69 ch_thermal->tzdev = NULL;
73 ret = thermal_zone_device_enable(ch_thermal->tzdev);
76 thermal_zone_device_unregister(adap->ch_thermal.tzdev);
85 if (adap->ch_thermal.tzdev) {
86 thermal_zone_device_unregister(adap->ch_thermal.tzdev);
[all...]
H A Dcxgb4.h1081 struct thermal_zone_device *tzdev; member in struct:ch_thermal
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_thermal.c105 struct thermal_zone_device *tzdev; member in struct:mlxsw_thermal_module
124 struct thermal_zone_device *tzdev; member in struct:mlxsw_thermal
162 static int mlxsw_thermal_bind(struct thermal_zone_device *tzdev, argument
165 struct mlxsw_thermal *thermal = thermal_zone_device_priv(tzdev);
176 err = thermal_zone_bind_cooling_device(tzdev, i, cdev,
188 static int mlxsw_thermal_unbind(struct thermal_zone_device *tzdev, argument
191 struct mlxsw_thermal *thermal = thermal_zone_device_priv(tzdev);
201 err = thermal_zone_unbind_cooling_device(tzdev, i, cdev);
210 static int mlxsw_thermal_get_temp(struct thermal_zone_device *tzdev, argument
213 struct mlxsw_thermal *thermal = thermal_zone_device_priv(tzdev);
242 mlxsw_thermal_module_bind(struct thermal_zone_device *tzdev, struct thermal_cooling_device *cdev) argument
271 mlxsw_thermal_module_unbind(struct thermal_zone_device *tzdev, struct thermal_cooling_device *cdev) argument
290 mlxsw_thermal_module_temp_get(struct thermal_zone_device *tzdev, int *p_temp) argument
315 mlxsw_thermal_gearbox_temp_get(struct thermal_zone_device *tzdev, int *p_temp) argument
443 mlxsw_thermal_module_tz_fini(struct thermal_zone_device *tzdev) argument
[all...]
/linux-master/drivers/thermal/mediatek/
H A Dauxadc_thermal.c1200 struct thermal_zone_device *tzdev; local
1288 tzdev = devm_thermal_of_zone_register(&pdev->dev, 0, mt,
1290 if (IS_ERR(tzdev))
1291 return PTR_ERR(tzdev);
1293 ret = devm_thermal_add_hwmon_sysfs(&pdev->dev, tzdev);
/linux-master/drivers/acpi/
H A Dthermal.c634 struct device *tzdev = thermal_zone_device(tz->thermal_zone); local
638 &tzdev->kobj, "thermal_zone");
642 ret = sysfs_create_link(&tzdev->kobj,
652 struct device *tzdev = thermal_zone_device(tz->thermal_zone); local
655 sysfs_remove_link(&tzdev->kobj, "device");

Completed in 141 milliseconds