Lines Matching refs:num_trips
428 if (tz->num_trips <= 0) in create_trip_attrs()
431 tz->trip_type_attrs = kcalloc(tz->num_trips, sizeof(*tz->trip_type_attrs), in create_trip_attrs()
436 tz->trip_temp_attrs = kcalloc(tz->num_trips, sizeof(*tz->trip_temp_attrs), in create_trip_attrs()
444 tz->trip_hyst_attrs = kcalloc(tz->num_trips, in create_trip_attrs()
454 attrs = kcalloc(tz->num_trips * 3 + 1, sizeof(*attrs), GFP_KERNEL); in create_trip_attrs()
463 for (indx = 0; indx < tz->num_trips; indx++) { in create_trip_attrs()
490 attrs[indx + tz->num_trips] = &tz->trip_temp_attrs[indx].attr.attr; in create_trip_attrs()
508 attrs[indx + tz->num_trips * 2] = in create_trip_attrs()
511 attrs[tz->num_trips * 3] = NULL; in create_trip_attrs()
552 if (tz->num_trips) { in thermal_zone_create_device_groups()
573 if (tz->num_trips) in thermal_zone_destroy_device_groups()