Lines Matching full:trips
442 /* We expose passive only if passive trips are present */
459 for (count = 0; count < tz->trips && !passive; count++) { in thermal_zone_passive_is_visible()
500 if (tz->trips <= 0) in create_trip_attrs()
503 tz->trip_type_attrs = kcalloc(tz->trips, sizeof(*tz->trip_type_attrs), in create_trip_attrs()
508 tz->trip_temp_attrs = kcalloc(tz->trips, sizeof(*tz->trip_temp_attrs), in create_trip_attrs()
516 tz->trip_hyst_attrs = kcalloc(tz->trips, in create_trip_attrs()
526 attrs = kcalloc(tz->trips * 3 + 1, sizeof(*attrs), GFP_KERNEL); in create_trip_attrs()
535 for (indx = 0; indx < tz->trips; indx++) { in create_trip_attrs()
562 attrs[indx + tz->trips] = &tz->trip_temp_attrs[indx].attr.attr; in create_trip_attrs()
580 attrs[indx + tz->trips * 2] = in create_trip_attrs()
583 attrs[tz->trips * 3] = NULL; in create_trip_attrs()
614 /* we need one extra for trips and the NULL to terminate the array */ in thermal_zone_create_device_groups()
624 if (tz->trips) { in thermal_zone_create_device_groups()
645 if (tz->trips) in thermal_zone_destroy_device_groups()