Home
last modified time | relevance | path

Searched refs:vtbl_slots (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/drivers/mtd/ubi/
H A Dvtbl.c96 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 in check_attaching_info()
[all...]
H A Dkapi.c137 if (vol_id < 0 || vol_id >= ubi->vtbl_slots) { in ubi_open_volume()
257 for (i = 0; i < ubi->vtbl_slots; i++) { in ubi_open_volume_nm()
375 if (vol_id < 0 || vol_id >= ubi->vtbl_slots || lnum < 0 || in leb_read_sanity_check()
522 if (vol_id < 0 || vol_id >= ubi->vtbl_slots) in ubi_leb_write()
567 if (vol_id < 0 || vol_id >= ubi->vtbl_slots) in ubi_leb_change()
H A Dbuild.c194 for (i = 0; i < ubi->vtbl_slots; i++) { in ubi_notify_all()
369 ret = sprintf(buf, "%d\n", ubi->vtbl_slots); in dev_attribute_show()
416 for (i = 0; i < ubi->vtbl_slots; i++) in kill_volumes()
445 * number and ubi->vtbl_slots + 1 minor numbers. in uif_init()
447 err = alloc_chrdev_region(&dev, 0, ubi->vtbl_slots + 1, ubi->ubi_name); in uif_init()
465 for (i = 0; i < ubi->vtbl_slots; i++) in uif_init()
481 unregister_chrdev_region(ubi->cdev.dev, ubi->vtbl_slots + 1); in uif_init()
499 unregister_chrdev_region(ubi->cdev.dev, ubi->vtbl_slots + 1); in uif_close()
511 for (i = from; i < ubi->vtbl_slots + UBI_INT_VOL_COUNT; i++) { in ubi_free_volumes_from()
536 ubi_free_volumes_from(ubi, ubi->vtbl_slots); in ubi_free_internal_volumes()
[all...]
H A Dubi.h466 * @vtbl_slots: how many slots are available in the volume table
577 int vtbl_slots; member
1173 return vol_id - UBI_INTERNAL_VOL_START + ubi->vtbl_slots; in vol_id2idx()
1185 if (idx >= ubi->vtbl_slots) in idx2vol_id()
1186 return idx - ubi->vtbl_slots + UBI_INTERNAL_VOL_START; in idx2vol_id()
H A Dcdev.c602 if ((req->vol_id < 0 || req->vol_id >= ubi->vtbl_slots) && in verify_mkvol_req()
663 if (req->vol_id < 0 || req->vol_id >= ubi->vtbl_slots) in verify_rsvol_req()
695 req->ents[i].vol_id >= ubi->vtbl_slots) in rename_volumes()
H A Dvmt.c165 for (i = 0; i < ubi->vtbl_slots; i++) in ubi_create_volume()
191 for (i = 0; i < ubi->vtbl_slots; i++) in ubi_create_volume()
799 for (i = 0; i < ubi->vtbl_slots; i++) { in self_check_volumes()
H A Deba.c1533 num_volumes = ubi->vtbl_slots + UBI_INT_VOL_COUNT; in self_check_eba()
1634 num_volumes = ubi->vtbl_slots + UBI_INT_VOL_COUNT; in ubi_eba_init()
/kernel/linux/linux-6.6/drivers/mtd/ubi/
H A Dvtbl.c96 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 in check_attaching_info()
[all...]
H A Dkapi.c138 if (vol_id < 0 || vol_id >= ubi->vtbl_slots) { in ubi_open_volume()
258 for (i = 0; i < ubi->vtbl_slots; i++) { in ubi_open_volume_nm()
376 if (vol_id < 0 || vol_id >= ubi->vtbl_slots || lnum < 0 || in leb_read_sanity_check()
523 if (vol_id < 0 || vol_id >= ubi->vtbl_slots) in ubi_leb_write()
568 if (vol_id < 0 || vol_id >= ubi->vtbl_slots) in ubi_leb_change()
H A Dbuild.c196 for (i = 0; i < ubi->vtbl_slots; i++) { in ubi_notify_all()
371 ret = sprintf(buf, "%d\n", ubi->vtbl_slots); in dev_attribute_show()
418 for (i = 0; i < ubi->vtbl_slots; i++) in kill_volumes()
447 * number and ubi->vtbl_slots + 1 minor numbers. in uif_init()
449 err = alloc_chrdev_region(&dev, 0, ubi->vtbl_slots + 1, ubi->ubi_name); in uif_init()
467 for (i = 0; i < ubi->vtbl_slots; i++) in uif_init()
483 unregister_chrdev_region(ubi->cdev.dev, ubi->vtbl_slots + 1); in uif_init()
501 unregister_chrdev_region(ubi->cdev.dev, ubi->vtbl_slots + 1); in uif_close()
513 for (i = from; i < ubi->vtbl_slots + UBI_INT_VOL_COUNT; i++) { in ubi_free_volumes_from()
538 ubi_free_volumes_from(ubi, ubi->vtbl_slots); in ubi_free_internal_volumes()
[all...]
H A Dubi.h464 * @vtbl_slots: how many slots are available in the volume table
575 int vtbl_slots; member
1172 return vol_id - UBI_INTERNAL_VOL_START + ubi->vtbl_slots; in vol_id2idx()
1184 if (idx >= ubi->vtbl_slots) in idx2vol_id()
1185 return idx - ubi->vtbl_slots + UBI_INTERNAL_VOL_START; in idx2vol_id()
H A Dvmt.c165 for (i = 0; i < ubi->vtbl_slots; i++) in ubi_create_volume()
191 for (i = 0; i < ubi->vtbl_slots; i++) in ubi_create_volume()
790 for (i = 0; i < ubi->vtbl_slots; i++) { in self_check_volumes()
H A Dcdev.c602 if ((req->vol_id < 0 || req->vol_id >= ubi->vtbl_slots) && in verify_mkvol_req()
663 if (req->vol_id < 0 || req->vol_id >= ubi->vtbl_slots) in verify_rsvol_req()
695 req->ents[i].vol_id >= ubi->vtbl_slots) in rename_volumes()
H A Deba.c1533 num_volumes = ubi->vtbl_slots + UBI_INT_VOL_COUNT; in self_check_eba()
1634 num_volumes = ubi->vtbl_slots + UBI_INT_VOL_COUNT; in ubi_eba_init()

Completed in 18 milliseconds