Home
last modified time | relevance | path

Searched refs:ch_thermal (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_thermal.c37 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
81 ch_thermal->trip_temp = val * 1000; in cxgb4_thermal_init()
82 ch_thermal->trip_type = THERMAL_TRIP_CRITICAL; in cxgb4_thermal_init()
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()
[all …]
Dcxgb4.h909 struct ch_thermal { struct
1045 struct ch_thermal ch_thermal; member