Home
last modified time | relevance | path

Searched refs:vol_type (Results 1 – 14 of 14) sorted by relevance

/drivers/mtd/ubi/
Dvmt.c93 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in vol_attribute_show()
235 (int)req->vol_type, req->name); in ubi_create_volume()
274 vol->vol_type = req->vol_type; in ubi_create_volume()
296 if (vol->vol_type == UBI_DYNAMIC_VOLUME) { in ubi_create_volume()
343 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_create_volume()
344 vtbl_rec.vol_type = UBI_VID_DYNAMIC; in ubi_create_volume()
346 vtbl_rec.vol_type = UBI_VID_STATIC; in ubi_create_volume()
488 if (vol->vol_type == UBI_STATIC_VOLUME && in ubi_resize_volume()
562 if (vol->vol_type == UBI_DYNAMIC_VOLUME) { in ubi_resize_volume()
702 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker; in self_check_volume() local
[all …]
Dvtbl.c175 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; in vtbl_check() local
187 vol_type = vtbl[i].vol_type; in vtbl_check()
232 if (vol_type != UBI_VID_DYNAMIC && vol_type != UBI_VID_STATIC) { in vtbl_check()
320 vid_hdr->vol_type = UBI_LAYOUT_VOLUME_TYPE; in create_vtbl()
554 vol->vol_type = vtbl[i].vol_type == UBI_VID_DYNAMIC ? in init_volumes()
584 if (vol->vol_type == UBI_DYNAMIC_VOLUME) { in init_volumes()
631 vol->vol_type = UBI_DYNAMIC_VOLUME; in init_volumes()
682 if (av->vol_type != vol->vol_type) { in check_av()
Dkapi.c87 vi->vol_type = vol->vol_type; in ubi_do_get_volume_info()
398 if (vol->vol_type == UBI_STATIC_VOLUME) { in ubi_leb_read()
413 if (err && mtd_is_eccerr(err) && vol->vol_type == UBI_STATIC_VOLUME) { in ubi_leb_read()
459 if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) in ubi_leb_write()
504 if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) in ubi_leb_change()
541 if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) in ubi_leb_erase()
601 if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) in ubi_leb_unmap()
637 if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) in ubi_leb_map()
Dattach.c194 int vol_type = vid_hdr->vol_type; in validate_vid_hdr() local
213 if (av->vol_type == UBI_STATIC_VOLUME) in validate_vid_hdr()
218 if (vol_type != av_vol_type) { in validate_vid_hdr()
290 av->vol_type = vid_hdr->vol_type == UBI_VID_DYNAMIC ? UBI_DYNAMIC_VOLUME in add_volume()
1520 av->leb_count < 0 || av->vol_type < 0 || av->used_ebs < 0 || in self_check_ai()
1538 if (av->vol_type != UBI_DYNAMIC_VOLUME && in self_check_ai()
1539 av->vol_type != UBI_STATIC_VOLUME) { in self_check_ai()
1579 if (av->vol_type == UBI_STATIC_VOLUME) { in self_check_ai()
1624 int vol_type; in self_check_ai() local
1638 vol_type = vidh->vol_type == UBI_VID_DYNAMIC ? in self_check_ai()
[all …]
Dubi-media.h281 __u8 vol_type; member
369 __u8 vol_type; member
494 __u8 vol_type; member
Ddebug.c87 pr_err("\tvol_type %d\n", (int)vid_hdr->vol_type); in ubi_dump_vid_hdr()
114 pr_err("\tvol_type %d\n", vol->vol_type); in ubi_dump_vol_info()
146 pr_err("\tvol_type %d\n", (int)r->vol_type); in ubi_dump_vtbl_record()
177 pr_err("\tvol_type %d\n", av->vol_type); in ubi_dump_av()
212 pr_err("\tvol_type %d\n", req->vol_type); in ubi_dump_mkvol_req()
Deba.c393 ubi_assert(vol->vol_type != UBI_STATIC_VOLUME); in ubi_eba_read_leb()
401 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_eba_read_leb()
448 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_eba_read_leb()
638 vid_hdr->vol_type = UBI_VID_DYNAMIC; in ubi_eba_write_leb()
761 vid_hdr->vol_type = UBI_VID_STATIC; in ubi_eba_write_leb_st()
880 vid_hdr->vol_type = UBI_VID_DYNAMIC; in ubi_eba_atomic_leb_change()
1001 if (vid_hdr->vol_type == UBI_VID_STATIC) { in ubi_eba_copy_leb()
1083 if (vid_hdr->vol_type == UBI_VID_DYNAMIC) in ubi_eba_copy_leb()
Dfastmap.c54 new->vol_type = UBI_VID_DYNAMIC; in new_fm_vhdr()
118 int used_ebs, int data_pad, u8 vol_type, in add_vol() argument
144 av->vol_type = vol_type; in add_vol()
279 if (av->vol_type == UBI_STATIC_VOLUME) in update_vol()
699 fmvhdr->vol_type, in ubi_attach_fastmap()
1209 fvh->vol_type = vol->vol_type; in ubi_write_fastmap()
1214 ubi_assert(vol->vol_type == UBI_DYNAMIC_VOLUME || in ubi_write_fastmap()
1215 vol->vol_type == UBI_STATIC_VOLUME); in ubi_write_fastmap()
Dcdev.c299 if (vol->vol_type == UBI_STATIC_VOLUME) in vol_cdev_direct_write()
470 vol->vol_type == UBI_STATIC_VOLUME) { in vol_cdev_ioctl()
503 vol->vol_type == UBI_STATIC_VOLUME) { in vol_cdev_ioctl()
607 if (req->bytes < 0 || req->alignment < 0 || req->vol_type < 0 || in verify_mkvol_req()
621 if (req->vol_type != UBI_DYNAMIC_VOLUME && in verify_mkvol_req()
622 req->vol_type != UBI_STATIC_VOLUME) in verify_mkvol_req()
Dio.c885 int vol_type = vid_hdr->vol_type; in validate_vid_hdr() local
924 if (vol_type != UBI_VID_DYNAMIC && vol_type != UBI_VID_STATIC) { in validate_vid_hdr()
934 if (vol_type == UBI_VID_STATIC) { in validate_vid_hdr()
Dupd.c99 if (vol->vol_type == UBI_STATIC_VOLUME) { in clear_update_marker()
235 if (vol->vol_type == UBI_DYNAMIC_VOLUME) { in write_leb()
Dmisc.c67 if (vol->vol_type != UBI_STATIC_VOLUME) in ubi_check_volume()
Dgluebi.c335 if (vi->vol_type == UBI_DYNAMIC_VOLUME) in gluebi_create()
428 if (vi->vol_type == UBI_STATIC_VOLUME) in gluebi_updated()
Dubi.h314 int vol_type; member
645 int vol_type; member