Lines Matching refs:tt_trip

66 struct tt_trip {  struct
82 struct tt_trip *tt_trip; argument
142 struct tt_trip *tt_trip, *aux; in tt_zone_free_trips() local
144 list_for_each_entry_safe(tt_trip, aux, &tt_zone->trips, list_node) { in tt_zone_free_trips()
145 list_del(&tt_trip->list_node); in tt_zone_free_trips()
146 ida_free(&tt_zone->ida, tt_trip->id); in tt_zone_free_trips()
147 kfree(tt_trip); in tt_zone_free_trips()
315 struct tt_trip *tt_trip = tt_work->tt_trip; in tt_zone_add_trip_work_fn() local
320 snprintf(d_name, TT_MAX_FILE_NAME_LENGTH, "trip_%d_temp", tt_trip->id); in tt_zone_add_trip_work_fn()
322 &tt_trip->trip.temperature, &tt_int_attr); in tt_zone_add_trip_work_fn()
324 snprintf(d_name, TT_MAX_FILE_NAME_LENGTH, "trip_%d_hyst", tt_trip->id); in tt_zone_add_trip_work_fn()
326 &tt_trip->trip.hysteresis, &tt_unsigned_int_attr); in tt_zone_add_trip_work_fn()
334 struct tt_trip *tt_trip __free(kfree) = NULL; in tt_zone_add_trip()
342 tt_trip = kzalloc(sizeof(*tt_trip), GFP_KERNEL); in tt_zone_add_trip()
343 if (!tt_trip) in tt_zone_add_trip()
354 tt_trip->trip.type = THERMAL_TRIP_ACTIVE; in tt_zone_add_trip()
355 tt_trip->trip.temperature = THERMAL_TEMP_INVALID; in tt_zone_add_trip()
356 tt_trip->trip.flags = THERMAL_TRIP_FLAG_RW; in tt_zone_add_trip()
357 tt_trip->id = id; in tt_zone_add_trip()
361 list_add_tail(&tt_trip->list_node, &tt_zone->trips); in tt_zone_add_trip()
366 tt_work->tt_trip = no_free_ptr(tt_trip); in tt_zone_add_trip()
392 struct tt_trip *tt_trip; in tt_zone_register_tz() local
405 list_for_each_entry(tt_trip, &tt_zone->trips, list_node) in tt_zone_register_tz()
406 trips[i++] = tt_trip->trip; in tt_zone_register_tz()