Lines Matching refs:indx
497 int indx; in create_trip_attrs() local
535 for (indx = 0; indx < tz->trips; indx++) { in create_trip_attrs()
537 snprintf(tz->trip_type_attrs[indx].name, THERMAL_NAME_LENGTH, in create_trip_attrs()
538 "trip_point_%d_type", indx); in create_trip_attrs()
540 sysfs_attr_init(&tz->trip_type_attrs[indx].attr.attr); in create_trip_attrs()
541 tz->trip_type_attrs[indx].attr.attr.name = in create_trip_attrs()
542 tz->trip_type_attrs[indx].name; in create_trip_attrs()
543 tz->trip_type_attrs[indx].attr.attr.mode = S_IRUGO; in create_trip_attrs()
544 tz->trip_type_attrs[indx].attr.show = trip_point_type_show; in create_trip_attrs()
545 attrs[indx] = &tz->trip_type_attrs[indx].attr.attr; in create_trip_attrs()
548 snprintf(tz->trip_temp_attrs[indx].name, THERMAL_NAME_LENGTH, in create_trip_attrs()
549 "trip_point_%d_temp", indx); in create_trip_attrs()
551 sysfs_attr_init(&tz->trip_temp_attrs[indx].attr.attr); in create_trip_attrs()
552 tz->trip_temp_attrs[indx].attr.attr.name = in create_trip_attrs()
553 tz->trip_temp_attrs[indx].name; in create_trip_attrs()
554 tz->trip_temp_attrs[indx].attr.attr.mode = S_IRUGO; in create_trip_attrs()
555 tz->trip_temp_attrs[indx].attr.show = trip_point_temp_show; in create_trip_attrs()
557 mask & (1 << indx)) { in create_trip_attrs()
558 tz->trip_temp_attrs[indx].attr.attr.mode |= S_IWUSR; in create_trip_attrs()
559 tz->trip_temp_attrs[indx].attr.store = in create_trip_attrs()
562 attrs[indx + tz->trips] = &tz->trip_temp_attrs[indx].attr.attr; in create_trip_attrs()
567 snprintf(tz->trip_hyst_attrs[indx].name, THERMAL_NAME_LENGTH, in create_trip_attrs()
568 "trip_point_%d_hyst", indx); in create_trip_attrs()
570 sysfs_attr_init(&tz->trip_hyst_attrs[indx].attr.attr); in create_trip_attrs()
571 tz->trip_hyst_attrs[indx].attr.attr.name = in create_trip_attrs()
572 tz->trip_hyst_attrs[indx].name; in create_trip_attrs()
573 tz->trip_hyst_attrs[indx].attr.attr.mode = S_IRUGO; in create_trip_attrs()
574 tz->trip_hyst_attrs[indx].attr.show = trip_point_hyst_show; in create_trip_attrs()
576 tz->trip_hyst_attrs[indx].attr.attr.mode |= S_IWUSR; in create_trip_attrs()
577 tz->trip_hyst_attrs[indx].attr.store = in create_trip_attrs()
580 attrs[indx + tz->trips * 2] = in create_trip_attrs()
581 &tz->trip_hyst_attrs[indx].attr.attr; in create_trip_attrs()