Lines Matching refs:indx
416 int indx; in create_trip_attrs() local
454 for (indx = 0; indx < tz->trips; indx++) { in create_trip_attrs()
456 snprintf(tz->trip_type_attrs[indx].name, THERMAL_NAME_LENGTH, in create_trip_attrs()
457 "trip_point_%d_type", indx); in create_trip_attrs()
459 sysfs_attr_init(&tz->trip_type_attrs[indx].attr.attr); in create_trip_attrs()
460 tz->trip_type_attrs[indx].attr.attr.name = in create_trip_attrs()
461 tz->trip_type_attrs[indx].name; in create_trip_attrs()
462 tz->trip_type_attrs[indx].attr.attr.mode = S_IRUGO; in create_trip_attrs()
463 tz->trip_type_attrs[indx].attr.show = trip_point_type_show; in create_trip_attrs()
464 attrs[indx] = &tz->trip_type_attrs[indx].attr.attr; in create_trip_attrs()
467 snprintf(tz->trip_temp_attrs[indx].name, THERMAL_NAME_LENGTH, in create_trip_attrs()
468 "trip_point_%d_temp", indx); in create_trip_attrs()
470 sysfs_attr_init(&tz->trip_temp_attrs[indx].attr.attr); in create_trip_attrs()
471 tz->trip_temp_attrs[indx].attr.attr.name = in create_trip_attrs()
472 tz->trip_temp_attrs[indx].name; in create_trip_attrs()
473 tz->trip_temp_attrs[indx].attr.attr.mode = S_IRUGO; in create_trip_attrs()
474 tz->trip_temp_attrs[indx].attr.show = trip_point_temp_show; in create_trip_attrs()
476 mask & (1 << indx)) { in create_trip_attrs()
477 tz->trip_temp_attrs[indx].attr.attr.mode |= S_IWUSR; in create_trip_attrs()
478 tz->trip_temp_attrs[indx].attr.store = in create_trip_attrs()
481 attrs[indx + tz->trips] = &tz->trip_temp_attrs[indx].attr.attr; in create_trip_attrs()
486 snprintf(tz->trip_hyst_attrs[indx].name, THERMAL_NAME_LENGTH, in create_trip_attrs()
487 "trip_point_%d_hyst", indx); in create_trip_attrs()
489 sysfs_attr_init(&tz->trip_hyst_attrs[indx].attr.attr); in create_trip_attrs()
490 tz->trip_hyst_attrs[indx].attr.attr.name = in create_trip_attrs()
491 tz->trip_hyst_attrs[indx].name; in create_trip_attrs()
492 tz->trip_hyst_attrs[indx].attr.attr.mode = S_IRUGO; in create_trip_attrs()
493 tz->trip_hyst_attrs[indx].attr.show = trip_point_hyst_show; in create_trip_attrs()
495 tz->trip_hyst_attrs[indx].attr.attr.mode |= S_IWUSR; in create_trip_attrs()
496 tz->trip_hyst_attrs[indx].attr.store = in create_trip_attrs()
499 attrs[indx + tz->trips * 2] = in create_trip_attrs()
500 &tz->trip_hyst_attrs[indx].attr.attr; in create_trip_attrs()