Home
last modified time | relevance | path

Searched refs:vol_type (Results 1 - 25 of 44) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/mtd/ubi/
H A Dvmt.c75 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in vol_attribute_show()
181 (int)req->vol_type, req->name); in ubi_create_volume()
222 vol->vol_type = req->vol_type; in ubi_create_volume()
243 if (vol->vol_type == UBI_DYNAMIC_VOLUME) { in ubi_create_volume()
282 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_create_volume()
283 vtbl_rec.vol_type = UBI_VID_DYNAMIC; in ubi_create_volume()
285 vtbl_rec.vol_type = UBI_VID_STATIC; in ubi_create_volume()
420 if (vol->vol_type == UBI_STATIC_VOLUME && in ubi_resize_volume()
502 if (vol->vol_type in ubi_resize_volume()
642 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker; self_check_volume() local
[all...]
H A Dkapi.c74 vi->vol_type = vol->vol_type; in ubi_do_get_volume_info()
380 if (vol->vol_type == UBI_STATIC_VOLUME) { in leb_read_sanity_check()
439 if (err && mtd_is_eccerr(err) && vol->vol_type == UBI_STATIC_VOLUME) { in ubi_leb_read()
479 if (err && mtd_is_eccerr(err) && vol->vol_type == UBI_STATIC_VOLUME) { in ubi_leb_read_sg()
525 if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) in ubi_leb_write()
570 if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) in ubi_leb_change()
607 if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) in ubi_leb_erase()
667 if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) in ubi_leb_unmap()
703 if (desc->mode == UBI_READONLY || vol->vol_type in ubi_leb_map()
[all...]
H A Dvtbl.c160 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; in vtbl_check() local
172 vol_type = vtbl[i].vol_type; in vtbl_check()
217 if (vol_type != UBI_VID_DYNAMIC && vol_type != UBI_VID_STATIC) { in vtbl_check()
308 vid_hdr->vol_type = UBI_LAYOUT_VOLUME_TYPE; in create_vtbl()
542 vol->vol_type = vtbl[i].vol_type == UBI_VID_DYNAMIC ? in init_volumes()
585 if (vol->vol_type == UBI_DYNAMIC_VOLUME) { in init_volumes()
632 vol->vol_type in init_volumes()
[all...]
H A Dubi-media.h164 * @vol_type: volume type (%UBI_VID_DYNAMIC or %UBI_VID_STATIC)
271 __u8 vol_type; member
323 * @vol_type: volume type (%UBI_DYNAMIC_VOLUME or %UBI_STATIC_VOLUME)
359 __u8 vol_type; member
474 * @vol_type: type of the fastmapped volume
482 __u8 vol_type; member
H A Dattach.c334 int vol_type = vid_hdr->vol_type; in validate_vid_hdr() local
353 if (av->vol_type == UBI_STATIC_VOLUME) in validate_vid_hdr()
358 if (vol_type != av_vol_type) { in validate_vid_hdr()
359 ubi_err(ubi, "inconsistent vol_type"); in validate_vid_hdr()
412 av->vol_type = vid_hdr->vol_type == UBI_VID_DYNAMIC ? UBI_DYNAMIC_VOLUME in add_volume()
1687 av->leb_count < 0 || av->vol_type < 0 || av->used_ebs < 0 || in self_check_ai()
1705 if (av->vol_type != UBI_DYNAMIC_VOLUME && in self_check_ai()
1706 av->vol_type ! in self_check_ai()
1791 int vol_type; self_check_ai() local
[all...]
H A Ddebug.c75 pr_err("\tvol_type %d\n", (int)vid_hdr->vol_type); in ubi_dump_vid_hdr()
102 pr_err("\tvol_type %d\n", vol->vol_type); in ubi_dump_vol_info()
135 pr_err("\tvol_type %d\n", (int)r->vol_type); in ubi_dump_vtbl_record()
166 pr_err("\tvol_type %d\n", av->vol_type); in ubi_dump_av()
201 pr_err("\tvol_type %d\n", req->vol_type); in ubi_dump_mkvol_req()
H A Dcdev.c264 if (vol->vol_type == UBI_STATIC_VOLUME) in vol_cdev_direct_write()
441 vol->vol_type == UBI_STATIC_VOLUME) { in vol_cdev_ioctl()
474 vol->vol_type == UBI_STATIC_VOLUME) { in vol_cdev_ioctl()
598 if (req->bytes < 0 || req->alignment < 0 || req->vol_type < 0 || in verify_mkvol_req()
612 if (req->vol_type != UBI_DYNAMIC_VOLUME && in verify_mkvol_req()
613 req->vol_type != UBI_STATIC_VOLUME) in verify_mkvol_req()
620 req->vol_type != UBI_STATIC_VOLUME) in verify_mkvol_req()
H A Deba.c624 ubi_assert(vol->vol_type != UBI_STATIC_VOLUME); in ubi_eba_read_leb()
632 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_eba_read_leb()
699 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_eba_read_leb()
835 ubi_assert(vid_hdr->vol_type == UBI_VID_DYNAMIC); in try_recover_peb()
1065 vid_hdr->vol_type = UBI_VID_DYNAMIC; in ubi_eba_write_leb()
1154 vid_hdr->vol_type = UBI_VID_STATIC; in ubi_eba_write_leb_st()
1238 vid_hdr->vol_type = UBI_VID_DYNAMIC; in ubi_eba_atomic_leb_change()
1326 if (vid_hdr->vol_type == UBI_VID_STATIC) { in ubi_eba_copy_leb()
1408 if (vid_hdr->vol_type == UBI_VID_DYNAMIC) in ubi_eba_copy_leb()
H A Dfastmap.c114 vh->vol_type = UBI_VID_DYNAMIC; in new_fm_vbuf()
169 * @vol_type: volume type
176 int used_ebs, int data_pad, u8 vol_type, in add_vol()
188 av->vol_type = vol_type; in add_vol()
189 if (av->vol_type == UBI_STATIC_VOLUME) in add_vol()
316 if (av->vol_type == UBI_STATIC_VOLUME) in update_vol()
707 fmvhdr->vol_type, in ubi_attach_fastmap()
1295 fvh->vol_type = vol->vol_type; in ubi_write_fastmap()
175 add_vol(struct ubi_attach_info *ai, int vol_id, int used_ebs, int data_pad, u8 vol_type, int last_eb_bytes) add_vol() argument
[all...]
H A Dio.c835 int vol_type = vid_hdr->vol_type; in validate_vid_hdr() local
874 if (vol_type != UBI_VID_DYNAMIC && vol_type != UBI_VID_STATIC) { in validate_vid_hdr()
875 ubi_err(ubi, "bad vol_type"); in validate_vid_hdr()
889 if (vol_type == UBI_VID_STATIC) { in validate_vid_hdr()
H A Dgluebi.c314 if (vi->vol_type == UBI_DYNAMIC_VOLUME) in gluebi_create()
407 if (vi->vol_type == UBI_STATIC_VOLUME) in gluebi_updated()
H A Dupd.c86 if (vol->vol_type == UBI_STATIC_VOLUME) { in clear_update_marker()
224 if (vol->vol_type == UBI_DYNAMIC_VOLUME) { in write_leb()
/kernel/linux/linux-6.6/drivers/mtd/ubi/
H A Dvmt.c75 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in vol_attribute_show()
181 (int)req->vol_type, req->name); in ubi_create_volume()
222 vol->vol_type = req->vol_type; in ubi_create_volume()
243 if (vol->vol_type == UBI_DYNAMIC_VOLUME) { in ubi_create_volume()
282 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_create_volume()
283 vtbl_rec.vol_type = UBI_VID_DYNAMIC; in ubi_create_volume()
285 vtbl_rec.vol_type = UBI_VID_STATIC; in ubi_create_volume()
419 if (vol->vol_type == UBI_STATIC_VOLUME && in ubi_resize_volume()
497 if (vol->vol_type in ubi_resize_volume()
633 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker; self_check_volume() local
[all...]
H A Dkapi.c74 vi->vol_type = vol->vol_type; in ubi_do_get_volume_info()
381 if (vol->vol_type == UBI_STATIC_VOLUME) { in leb_read_sanity_check()
440 if (err && mtd_is_eccerr(err) && vol->vol_type == UBI_STATIC_VOLUME) { in ubi_leb_read()
480 if (err && mtd_is_eccerr(err) && vol->vol_type == UBI_STATIC_VOLUME) { in ubi_leb_read_sg()
526 if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) in ubi_leb_write()
571 if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) in ubi_leb_change()
608 if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) in ubi_leb_erase()
668 if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) in ubi_leb_unmap()
704 if (desc->mode == UBI_READONLY || vol->vol_type in ubi_leb_map()
[all...]
H A Dvtbl.c160 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; in vtbl_check() local
172 vol_type = vtbl[i].vol_type; in vtbl_check()
217 if (vol_type != UBI_VID_DYNAMIC && vol_type != UBI_VID_STATIC) { in vtbl_check()
308 vid_hdr->vol_type = UBI_LAYOUT_VOLUME_TYPE; in create_vtbl()
542 vol->vol_type = vtbl[i].vol_type == UBI_VID_DYNAMIC ? in init_volumes()
585 if (vol->vol_type == UBI_DYNAMIC_VOLUME) { in init_volumes()
632 vol->vol_type in init_volumes()
[all...]
H A Dubi-media.h164 * @vol_type: volume type (%UBI_VID_DYNAMIC or %UBI_VID_STATIC)
271 __u8 vol_type; member
323 * @vol_type: volume type (%UBI_DYNAMIC_VOLUME or %UBI_STATIC_VOLUME)
359 __u8 vol_type; member
474 * @vol_type: type of the fastmapped volume
482 __u8 vol_type; member
H A Dattach.c334 int vol_type = vid_hdr->vol_type; in validate_vid_hdr() local
353 if (av->vol_type == UBI_STATIC_VOLUME) in validate_vid_hdr()
358 if (vol_type != av_vol_type) { in validate_vid_hdr()
359 ubi_err(ubi, "inconsistent vol_type"); in validate_vid_hdr()
412 av->vol_type = vid_hdr->vol_type == UBI_VID_DYNAMIC ? UBI_DYNAMIC_VOLUME in add_volume()
1687 av->leb_count < 0 || av->vol_type < 0 || av->used_ebs < 0 || in self_check_ai()
1705 if (av->vol_type != UBI_DYNAMIC_VOLUME && in self_check_ai()
1706 av->vol_type ! in self_check_ai()
1791 int vol_type; self_check_ai() local
[all...]
H A Ddebug.c75 pr_err("\tvol_type %d\n", (int)vid_hdr->vol_type); in ubi_dump_vid_hdr()
102 pr_err("\tvol_type %d\n", vol->vol_type); in ubi_dump_vol_info()
135 pr_err("\tvol_type %d\n", (int)r->vol_type); in ubi_dump_vtbl_record()
166 pr_err("\tvol_type %d\n", av->vol_type); in ubi_dump_av()
201 pr_err("\tvol_type %d\n", req->vol_type); in ubi_dump_mkvol_req()
H A Dcdev.c264 if (vol->vol_type == UBI_STATIC_VOLUME) in vol_cdev_direct_write()
441 vol->vol_type == UBI_STATIC_VOLUME) { in vol_cdev_ioctl()
474 vol->vol_type == UBI_STATIC_VOLUME) { in vol_cdev_ioctl()
598 if (req->bytes < 0 || req->alignment < 0 || req->vol_type < 0 || in verify_mkvol_req()
612 if (req->vol_type != UBI_DYNAMIC_VOLUME && in verify_mkvol_req()
613 req->vol_type != UBI_STATIC_VOLUME) in verify_mkvol_req()
620 req->vol_type != UBI_STATIC_VOLUME) in verify_mkvol_req()
H A Deba.c623 ubi_assert(vol->vol_type != UBI_STATIC_VOLUME); in ubi_eba_read_leb()
631 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_eba_read_leb()
698 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_eba_read_leb()
834 ubi_assert(vid_hdr->vol_type == UBI_VID_DYNAMIC); in try_recover_peb()
1064 vid_hdr->vol_type = UBI_VID_DYNAMIC; in ubi_eba_write_leb()
1153 vid_hdr->vol_type = UBI_VID_STATIC; in ubi_eba_write_leb_st()
1237 vid_hdr->vol_type = UBI_VID_DYNAMIC; in ubi_eba_atomic_leb_change()
1325 if (vid_hdr->vol_type == UBI_VID_STATIC) { in ubi_eba_copy_leb()
1407 if (vid_hdr->vol_type == UBI_VID_DYNAMIC) in ubi_eba_copy_leb()
H A Dfastmap.c114 vh->vol_type = UBI_VID_DYNAMIC; in new_fm_vbuf()
169 * @vol_type: volume type
176 int used_ebs, int data_pad, u8 vol_type, in add_vol()
188 av->vol_type = vol_type; in add_vol()
189 if (av->vol_type == UBI_STATIC_VOLUME) in add_vol()
316 if (av->vol_type == UBI_STATIC_VOLUME) in update_vol()
707 fmvhdr->vol_type, in ubi_attach_fastmap()
1305 fvh->vol_type = vol->vol_type; in ubi_write_fastmap()
175 add_vol(struct ubi_attach_info *ai, int vol_id, int used_ebs, int data_pad, u8 vol_type, int last_eb_bytes) add_vol() argument
[all...]
H A Dio.c842 int vol_type = vid_hdr->vol_type; in validate_vid_hdr() local
881 if (vol_type != UBI_VID_DYNAMIC && vol_type != UBI_VID_STATIC) { in validate_vid_hdr()
882 ubi_err(ubi, "bad vol_type"); in validate_vid_hdr()
896 if (vol_type == UBI_VID_STATIC) { in validate_vid_hdr()
H A Dupd.c86 if (vol->vol_type == UBI_STATIC_VOLUME) { in clear_update_marker()
224 if (vol->vol_type == UBI_DYNAMIC_VOLUME) { in write_leb()
H A Dgluebi.c314 if (vi->vol_type == UBI_DYNAMIC_VOLUME) in gluebi_create()
407 if (vi->vol_type == UBI_STATIC_VOLUME) in gluebi_updated()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/mtd/
H A Dubi-user.h55 __s8 vol_type; member

Completed in 29 milliseconds

12