Lines Matching refs:vtbl_slots
96 ubi_assert(idx >= 0 && idx < ubi->vtbl_slots); in ubi_change_vtbl_record()
165 for (i = 0; i < ubi->vtbl_slots; i++) { in vtbl_check()
251 for (i = 0; i < ubi->vtbl_slots - 1; i++) { in vtbl_check()
252 for (n = i + 1; n < ubi->vtbl_slots; n++) { in vtbl_check()
494 for (i = 0; i < ubi->vtbl_slots; i++) in create_empty_lvol()
528 for (i = 0; i < ubi->vtbl_slots; i++) { in init_volumes()
725 if (ai->vols_found > UBI_INT_VOL_COUNT + ubi->vtbl_slots) { in check_attaching_info()
727 ai->vols_found, UBI_INT_VOL_COUNT, ubi->vtbl_slots); in check_attaching_info()
731 if (ai->highest_vol_id >= ubi->vtbl_slots + UBI_INT_VOL_COUNT && in check_attaching_info()
738 for (i = 0; i < ubi->vtbl_slots + UBI_INT_VOL_COUNT; i++) { in check_attaching_info()
750 ubi_assert(i < ubi->vtbl_slots); in check_attaching_info()
800 ubi->vtbl_slots = ubi->leb_size / UBI_VTBL_RECORD_SIZE; in ubi_read_volume_table()
801 if (ubi->vtbl_slots > UBI_MAX_VOLUMES) in ubi_read_volume_table()
802 ubi->vtbl_slots = UBI_MAX_VOLUMES; in ubi_read_volume_table()
804 ubi->vtbl_size = ubi->vtbl_slots * UBI_VTBL_RECORD_SIZE; in ubi_read_volume_table()