Lines Matching refs:tzdev
12 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()
87 adap->ch_thermal.tzdev = NULL; in cxgb4_thermal_remove()