Lines Matching refs:trip_cnt
68 int trip_cnt) 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()
76 trip_cnt++; 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()
83 trip_cnt++; 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()
90 trip_cnt++; 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()
101 trip_cnt++; in int340x_thermal_read_trips()
104 return trip_cnt; in int340x_thermal_read_trips()
122 unsigned long long trip_cnt = 0; in int340x_thermal_zone_add() local
133 status = acpi_evaluate_integer(adev->handle, "PATC", NULL, &trip_cnt); in int340x_thermal_zone_add()
135 int34x_zone->aux_trip_nr = trip_cnt; in int340x_thermal_zone_add()
137 zone_trips = kzalloc(sizeof(*zone_trips) * (trip_cnt + INT340X_THERMAL_MAX_TRIP_COUNT), in int340x_thermal_zone_add()
144 for (i = 0; i < trip_cnt; i++) { in int340x_thermal_zone_add()
151 trip_cnt = int340x_thermal_read_trips(adev, zone_trips, trip_cnt); in int340x_thermal_zone_add()
159 for (i = 0; i < trip_cnt; ++i) in int340x_thermal_zone_add()
166 zone_trips, trip_cnt, in int340x_thermal_zone_add()