Lines Matching refs:ch_thermal
37 if (!adap->ch_thermal.trip_temp) in cxgb4_thermal_get_trip_type()
40 *type = adap->ch_thermal.trip_type; in cxgb4_thermal_get_trip_type()
49 if (!adap->ch_thermal.trip_temp) in cxgb4_thermal_get_trip_temp()
52 *temp = adap->ch_thermal.trip_temp; in cxgb4_thermal_get_trip_temp()
64 struct ch_thermal *ch_thermal = &adap->ch_thermal; in cxgb4_thermal_init() local
82 ch_thermal->trip_temp = val * 1000; in cxgb4_thermal_init()
83 ch_thermal->trip_type = THERMAL_TRIP_CRITICAL; in cxgb4_thermal_init()
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 = NULL; in cxgb4_thermal_init()
98 ret = thermal_zone_device_enable(ch_thermal->tzdev); in cxgb4_thermal_init()
101 thermal_zone_device_unregister(adap->ch_thermal.tzdev); in cxgb4_thermal_init()
110 if (adap->ch_thermal.tzdev) { in cxgb4_thermal_remove()
111 thermal_zone_device_unregister(adap->ch_thermal.tzdev); in cxgb4_thermal_remove()
112 adap->ch_thermal.tzdev = NULL; in cxgb4_thermal_remove()