Home
last modified time | relevance | path

Searched refs:vtbl_slots (Results 1 – 7 of 7) sorted by relevance

/Linux-v4.19/drivers/mtd/ubi/
Dvtbl.c109 ubi_assert(idx >= 0 && idx < ubi->vtbl_slots); in ubi_change_vtbl_record()
178 for (i = 0; i < ubi->vtbl_slots; i++) { in vtbl_check()
264 for (i = 0; i < ubi->vtbl_slots - 1; i++) { in vtbl_check()
265 for (n = i + 1; n < ubi->vtbl_slots; n++) { in vtbl_check()
507 for (i = 0; i < ubi->vtbl_slots; i++) in create_empty_lvol()
541 for (i = 0; i < ubi->vtbl_slots; i++) { in init_volumes()
738 if (ai->vols_found > UBI_INT_VOL_COUNT + ubi->vtbl_slots) { in check_attaching_info()
740 ai->vols_found, UBI_INT_VOL_COUNT, ubi->vtbl_slots); in check_attaching_info()
744 if (ai->highest_vol_id >= ubi->vtbl_slots + UBI_INT_VOL_COUNT && in check_attaching_info()
751 for (i = 0; i < ubi->vtbl_slots + UBI_INT_VOL_COUNT; i++) { in check_attaching_info()
[all …]
Dbuild.c207 for (i = 0; i < ubi->vtbl_slots; i++) { in ubi_notify_all()
385 ret = sprintf(buf, "%d\n", ubi->vtbl_slots); in dev_attribute_show()
433 for (i = 0; i < ubi->vtbl_slots; i++) in kill_volumes()
464 err = alloc_chrdev_region(&dev, 0, ubi->vtbl_slots + 1, ubi->ubi_name); in uif_init()
482 for (i = 0; i < ubi->vtbl_slots; i++) in uif_init()
497 unregister_chrdev_region(ubi->cdev.dev, ubi->vtbl_slots + 1); in uif_init()
515 unregister_chrdev_region(ubi->cdev.dev, ubi->vtbl_slots + 1); in uif_close()
526 for (i = ubi->vtbl_slots; in ubi_free_internal_volumes()
527 i < ubi->vtbl_slots + UBI_INT_VOL_COUNT; i++) { in ubi_free_internal_volumes()
1003 ubi->vtbl_slots); in ubi_attach_mtd_dev()
Dkapi.c150 if (vol_id < 0 || vol_id >= ubi->vtbl_slots) { in ubi_open_volume()
270 for (i = 0; i < ubi->vtbl_slots; i++) { in ubi_open_volume_nm()
388 if (vol_id < 0 || vol_id >= ubi->vtbl_slots || lnum < 0 || in leb_read_sanity_check()
535 if (vol_id < 0 || vol_id >= ubi->vtbl_slots) in ubi_leb_write()
580 if (vol_id < 0 || vol_id >= ubi->vtbl_slots) in ubi_leb_change()
Dubi.h588 int vtbl_slots; member
1182 return vol_id - UBI_INTERNAL_VOL_START + ubi->vtbl_slots; in vol_id2idx()
1194 if (idx >= ubi->vtbl_slots) in idx2vol_id()
1195 return idx - ubi->vtbl_slots + UBI_INTERNAL_VOL_START; in idx2vol_id()
Dvmt.c184 for (i = 0; i < ubi->vtbl_slots; i++) in ubi_create_volume()
210 for (i = 0; i < ubi->vtbl_slots; i++) in ubi_create_volume()
808 for (i = 0; i < ubi->vtbl_slots; i++) { in self_check_volumes()
Dcdev.c615 if ((req->vol_id < 0 || req->vol_id >= ubi->vtbl_slots) && in verify_mkvol_req()
676 if (req->vol_id < 0 || req->vol_id >= ubi->vtbl_slots) in verify_rsvol_req()
708 req->ents[i].vol_id >= ubi->vtbl_slots) in rename_volumes()
Deba.c1537 num_volumes = ubi->vtbl_slots + UBI_INT_VOL_COUNT; in self_check_eba()
1638 num_volumes = ubi->vtbl_slots + UBI_INT_VOL_COUNT; in ubi_eba_init()