Lines Matching refs:zone_trips
67 struct thermal_trip *zone_trips, in int340x_thermal_read_trips() argument
73 &zone_trips[trip_cnt].temperature); in int340x_thermal_read_trips()
75 zone_trips[trip_cnt].type = THERMAL_TRIP_CRITICAL; in int340x_thermal_read_trips()
80 &zone_trips[trip_cnt].temperature); in int340x_thermal_read_trips()
82 zone_trips[trip_cnt].type = THERMAL_TRIP_HOT; in int340x_thermal_read_trips()
87 &zone_trips[trip_cnt].temperature); in int340x_thermal_read_trips()
89 zone_trips[trip_cnt].type = THERMAL_TRIP_PASSIVE; in int340x_thermal_read_trips()
95 &zone_trips[trip_cnt].temperature); in int340x_thermal_read_trips()
99 zone_trips[trip_cnt].type = THERMAL_TRIP_ACTIVE; in int340x_thermal_read_trips()
100 zone_trips[trip_cnt].priv = THERMAL_INT_TO_TRIP_PRIV(i); in int340x_thermal_read_trips()
121 struct thermal_trip *zone_trips; in int340x_thermal_zone_add() local
137 zone_trips = kzalloc(sizeof(*zone_trips) * (trip_cnt + INT340X_THERMAL_MAX_TRIP_COUNT), in int340x_thermal_zone_add()
139 if (!zone_trips) { in int340x_thermal_zone_add()
145 zone_trips[i].type = THERMAL_TRIP_PASSIVE; in int340x_thermal_zone_add()
146 zone_trips[i].temperature = THERMAL_TEMP_INVALID; in int340x_thermal_zone_add()
147 zone_trips[i].flags |= THERMAL_TRIP_FLAG_RW_TEMP; in int340x_thermal_zone_add()
148 zone_trips[i].priv = THERMAL_INT_TO_TRIP_PRIV(i); in int340x_thermal_zone_add()
151 trip_cnt = int340x_thermal_read_trips(adev, zone_trips, trip_cnt); in int340x_thermal_zone_add()
160 zone_trips[i].hysteresis = hyst; in int340x_thermal_zone_add()
166 zone_trips, trip_cnt, in int340x_thermal_zone_add()
171 kfree(zone_trips); in int340x_thermal_zone_add()