Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/mtd/ubi/
Dvtbl.c90 ubi_assert(idx >= 0 && idx < ubi->vtbl_slots); in ubi_change_vtbl_record()
175 for (i = 0; i < ubi->vtbl_slots; i++) { in vtbl_check()
261 for (i = 0; i < ubi->vtbl_slots - 1; i++) { in vtbl_check()
262 for (n = i + 1; n < ubi->vtbl_slots; n++) { in vtbl_check()
501 for (i = 0; i < ubi->vtbl_slots; i++) in create_empty_lvol()
535 for (i = 0; i < ubi->vtbl_slots; i++) { in init_volumes()
716 if (ai->vols_found > UBI_INT_VOL_COUNT + ubi->vtbl_slots) { in check_attaching_info()
718 ai->vols_found, UBI_INT_VOL_COUNT, ubi->vtbl_slots); in check_attaching_info()
722 if (ai->highest_vol_id >= ubi->vtbl_slots + UBI_INT_VOL_COUNT && in check_attaching_info()
729 for (i = 0; i < ubi->vtbl_slots + UBI_INT_VOL_COUNT; i++) { in check_attaching_info()
[all …]
Dbuild.c196 for (i = 0; i < ubi->vtbl_slots; i++) { in ubi_notify_all()
374 ret = sprintf(buf, "%d\n", ubi->vtbl_slots); in dev_attribute_show()
479 for (i = 0; i < ubi->vtbl_slots; i++) in kill_volumes()
518 err = alloc_chrdev_region(&dev, 0, ubi->vtbl_slots + 1, ubi->ubi_name); in uif_init()
539 for (i = 0; i < ubi->vtbl_slots; i++) in uif_init()
558 unregister_chrdev_region(ubi->cdev.dev, ubi->vtbl_slots + 1); in uif_init()
577 unregister_chrdev_region(ubi->cdev.dev, ubi->vtbl_slots + 1); in uif_close()
588 for (i = ubi->vtbl_slots; in ubi_free_internal_volumes()
589 i < ubi->vtbl_slots + UBI_INT_VOL_COUNT; i++) { in ubi_free_internal_volumes()
1036 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()
385 if (vol_id < 0 || vol_id >= ubi->vtbl_slots || lnum < 0 || in leb_read_sanity_check()
532 if (vol_id < 0 || vol_id >= ubi->vtbl_slots) in ubi_leb_write()
577 if (vol_id < 0 || vol_id >= ubi->vtbl_slots) in ubi_leb_change()
Dubi.h548 int vtbl_slots; member
1086 return vol_id - UBI_INTERNAL_VOL_START + ubi->vtbl_slots; in vol_id2idx()
1098 if (idx >= ubi->vtbl_slots) in idx2vol_id()
1099 return idx - ubi->vtbl_slots + UBI_INTERNAL_VOL_START; in idx2vol_id()
Dvmt.c219 for (i = 0; i < ubi->vtbl_slots; i++) in ubi_create_volume()
245 for (i = 0; i < ubi->vtbl_slots; i++) in ubi_create_volume()
856 for (i = 0; i < ubi->vtbl_slots; i++) { in self_check_volumes()
Dcdev.c611 if ((req->vol_id < 0 || req->vol_id >= ubi->vtbl_slots) && in verify_mkvol_req()
665 if (req->vol_id < 0 || req->vol_id >= ubi->vtbl_slots) in verify_rsvol_req()
697 req->ents[i].vol_id >= ubi->vtbl_slots) in rename_volumes()
Deba.c1323 num_volumes = ubi->vtbl_slots + UBI_INT_VOL_COUNT; in self_check_eba()
1422 num_volumes = ubi->vtbl_slots + UBI_INT_VOL_COUNT; in ubi_eba_init()