Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_thermal.c40 struct ch_thermal *ch_thermal = &adap->ch_thermal; in cxgb4_thermal_init() local
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()
Dcxgb4.h1080 struct ch_thermal { struct
1225 struct ch_thermal ch_thermal; member