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 = 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()
85 ch_thermal->tzdev = thermal_zone_device_register("cxgb4", num_trip, in cxgb4_thermal_init()
89 if (IS_ERR(ch_thermal->tzdev)) { in cxgb4_thermal_init()
90 ret = PTR_ERR(ch_thermal->tzdev); in cxgb4_thermal_init()
92 ch_thermal->tzdev = NULL; in cxgb4_thermal_init()
100 if (adap->ch_thermal.tzdev) in cxgb4_thermal_remove()
101 thermal_zone_device_unregister(adap->ch_thermal.tzdev); in cxgb4_thermal_remove()