Home
last modified time | relevance | path

Searched refs:used_ebs (Results 1 – 12 of 12) sorted by relevance

/drivers/mtd/ubi/
Dvtbl.c323 vid_hdr->data_size = vid_hdr->used_ebs = in create_vtbl()
585 vol->used_ebs = vol->reserved_pebs; in init_volumes()
588 (long long)vol->used_ebs * vol->usable_leb_size; in init_volumes()
606 if (av->leb_count != av->used_ebs) { in init_volumes()
612 av->vol_id, av->used_ebs - av->leb_count); in init_volumes()
617 vol->used_ebs = av->used_ebs; in init_volumes()
619 (long long)(vol->used_ebs - 1) * vol->usable_leb_size; in init_volumes()
635 vol->used_ebs = vol->reserved_pebs; in init_volumes()
638 (long long)vol->used_ebs * (ubi->leb_size - vol->data_pad); in init_volumes()
686 if (av->used_ebs > vol->reserved_pebs) { in check_av()
Dvmt.c297 vol->used_ebs = vol->reserved_pebs; in ubi_create_volume()
300 (long long)vol->used_ebs * vol->usable_leb_size; in ubi_create_volume()
302 vol->used_ebs = div_u64_rem(vol->used_bytes, in ubi_create_volume()
306 vol->used_ebs += 1; in ubi_create_volume()
489 reserved_pebs < vol->used_ebs) { in ubi_resize_volume()
491 reserved_pebs, vol->used_ebs); in ubi_resize_volume()
563 vol->used_ebs = reserved_pebs; in ubi_resize_volume()
566 (long long)vol->used_ebs * vol->usable_leb_size; in ubi_resize_volume()
775 n = (long long)vol->used_ebs * vol->usable_leb_size; in self_check_volume()
781 if (vol->used_ebs != vol->reserved_pebs) { in self_check_volume()
[all …]
Dattach.c196 int used_ebs = be32_to_cpu(vid_hdr->used_ebs); in validate_vid_hdr() local
223 if (used_ebs != av->used_ebs) { in validate_vid_hdr()
287 av->used_ebs = be32_to_cpu(vid_hdr->used_ebs); in add_volume()
1520 av->leb_count < 0 || av->vol_type < 0 || av->used_ebs < 0 || in self_check_ai()
1580 if (aeb->lnum >= av->used_ebs) { in self_check_ai()
1585 if (av->used_ebs != 0) { in self_check_ai()
1665 if (av->used_ebs != be32_to_cpu(vidh->used_ebs)) { in self_check_ai()
1666 ubi_err("bad used_ebs %d", av->used_ebs); in self_check_ai()
Dupd.c102 vol->used_ebs = div_u64_rem(bytes, vol->usable_leb_size, in clear_update_marker()
105 vol->used_ebs += 1; in clear_update_marker()
231 void *buf, int len, int used_ebs) in write_leb() argument
257 err = ubi_eba_write_leb_st(ubi, vol, lnum, buf, len, used_ebs); in write_leb()
Dmisc.c74 for (i = 0; i < vol->used_ebs; i++) { in ubi_check_volume()
77 if (i == vol->used_ebs - 1) in ubi_check_volume()
Dubi-media.h288 __be32 used_ebs; member
497 __be32 used_ebs; member
Dio.c891 int used_ebs = be32_to_cpu(vid_hdr->used_ebs); in validate_vid_hdr() local
901 if (vol_id < 0 || lnum < 0 || data_size < 0 || used_ebs < 0 || in validate_vid_hdr()
941 if (used_ebs == 0) { in validate_vid_hdr()
949 if (lnum < used_ebs - 1) { in validate_vid_hdr()
954 } else if (lnum == used_ebs - 1) { in validate_vid_hdr()
979 if (used_ebs != 0) { in validate_vid_hdr()
Ddebug.c93 pr_err("\tused_ebs %d\n", be32_to_cpu(vid_hdr->used_ebs)); in ubi_dump_vid_hdr()
117 pr_err("\tused_ebs %d\n", vol->used_ebs); in ubi_dump_vol_info()
178 pr_err("\tused_ebs %d\n", av->used_ebs); in ubi_dump_av()
Deba.c435 ubi_assert(lnum < be32_to_cpu(vid_hdr->used_ebs)); in ubi_eba_read_leb()
729 int lnum, const void *buf, int len, int used_ebs) in ubi_eba_write_leb_st() argument
738 if (lnum == used_ebs - 1) in ubi_eba_write_leb_st()
763 vid_hdr->used_ebs = cpu_to_be32(used_ebs); in ubi_eba_write_leb_st()
775 len, vol_id, lnum, pnum, used_ebs); in ubi_eba_write_leb_st()
Dfastmap.c118 int used_ebs, int data_pad, u8 vol_type, in add_vol() argument
140 av->used_ebs = used_ebs; in add_vol()
280 av->used_ebs = be32_to_cpu(new_vh->used_ebs); in update_vol()
697 be32_to_cpu(fmvhdr->used_ebs), in ubi_attach_fastmap()
1210 fvh->used_ebs = cpu_to_be32(vol->used_ebs); in ubi_write_fastmap()
Dubi.h316 int used_ebs; member
646 int used_ebs; member
795 int lnum, const void *buf, int len, int used_ebs);
Dkapi.c394 lnum >= vol->used_ebs || offset < 0 || len < 0 || in ubi_leb_read()
399 if (vol->used_ebs == 0) in ubi_leb_read()
402 if (lnum == vol->used_ebs - 1 && in ubi_leb_read()