Lines Matching refs:indx

437 	int indx;  in create_trip_attrs()  local
472 for (indx = 0; indx < tz->num_trips; indx++) { in create_trip_attrs()
474 snprintf(tz->trip_type_attrs[indx].name, THERMAL_NAME_LENGTH, in create_trip_attrs()
475 "trip_point_%d_type", indx); in create_trip_attrs()
477 sysfs_attr_init(&tz->trip_type_attrs[indx].attr.attr); in create_trip_attrs()
478 tz->trip_type_attrs[indx].attr.attr.name = in create_trip_attrs()
479 tz->trip_type_attrs[indx].name; in create_trip_attrs()
480 tz->trip_type_attrs[indx].attr.attr.mode = S_IRUGO; in create_trip_attrs()
481 tz->trip_type_attrs[indx].attr.show = trip_point_type_show; in create_trip_attrs()
482 attrs[indx] = &tz->trip_type_attrs[indx].attr.attr; in create_trip_attrs()
485 snprintf(tz->trip_temp_attrs[indx].name, THERMAL_NAME_LENGTH, in create_trip_attrs()
486 "trip_point_%d_temp", indx); in create_trip_attrs()
488 sysfs_attr_init(&tz->trip_temp_attrs[indx].attr.attr); in create_trip_attrs()
489 tz->trip_temp_attrs[indx].attr.attr.name = in create_trip_attrs()
490 tz->trip_temp_attrs[indx].name; in create_trip_attrs()
491 tz->trip_temp_attrs[indx].attr.attr.mode = S_IRUGO; in create_trip_attrs()
492 tz->trip_temp_attrs[indx].attr.show = trip_point_temp_show; in create_trip_attrs()
494 mask & (1 << indx)) { in create_trip_attrs()
495 tz->trip_temp_attrs[indx].attr.attr.mode |= S_IWUSR; in create_trip_attrs()
496 tz->trip_temp_attrs[indx].attr.store = in create_trip_attrs()
499 attrs[indx + tz->num_trips] = &tz->trip_temp_attrs[indx].attr.attr; in create_trip_attrs()
501 snprintf(tz->trip_hyst_attrs[indx].name, THERMAL_NAME_LENGTH, in create_trip_attrs()
502 "trip_point_%d_hyst", indx); in create_trip_attrs()
504 sysfs_attr_init(&tz->trip_hyst_attrs[indx].attr.attr); in create_trip_attrs()
505 tz->trip_hyst_attrs[indx].attr.attr.name = in create_trip_attrs()
506 tz->trip_hyst_attrs[indx].name; in create_trip_attrs()
507 tz->trip_hyst_attrs[indx].attr.attr.mode = S_IRUGO; in create_trip_attrs()
508 tz->trip_hyst_attrs[indx].attr.show = trip_point_hyst_show; in create_trip_attrs()
510 tz->trip_hyst_attrs[indx].attr.attr.mode |= S_IWUSR; in create_trip_attrs()
511 tz->trip_hyst_attrs[indx].attr.store = in create_trip_attrs()
514 attrs[indx + tz->num_trips * 2] = in create_trip_attrs()
515 &tz->trip_hyst_attrs[indx].attr.attr; in create_trip_attrs()