Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/mtd/ubi/
Dvtbl.c311 vid_hdr->data_size = vid_hdr->used_ebs = in create_vtbl()
586 vol->used_ebs = vol->reserved_pebs; in init_volumes()
589 (long long)vol->used_ebs * vol->usable_leb_size; in init_volumes()
607 if (av->leb_count != av->used_ebs) { in init_volumes()
613 av->vol_id, av->used_ebs - av->leb_count); in init_volumes()
618 vol->used_ebs = av->used_ebs; in init_volumes()
620 (long long)(vol->used_ebs - 1) * vol->usable_leb_size; in init_volumes()
636 vol->used_ebs = vol->reserved_pebs; in init_volumes()
639 (long long)vol->used_ebs * (ubi->leb_size - vol->data_pad); in init_volumes()
691 if (av->used_ebs > vol->reserved_pebs) { in check_av()
Dvmt.c244 vol->used_ebs = vol->reserved_pebs; in ubi_create_volume()
247 (long long)vol->used_ebs * vol->usable_leb_size; in ubi_create_volume()
249 vol->used_ebs = div_u64_rem(vol->used_bytes, in ubi_create_volume()
253 vol->used_ebs += 1; in ubi_create_volume()
420 reserved_pebs < vol->used_ebs) { in ubi_resize_volume()
422 reserved_pebs, vol->used_ebs); in ubi_resize_volume()
498 vol->used_ebs = reserved_pebs; in ubi_resize_volume()
501 (long long)vol->used_ebs * vol->usable_leb_size; in ubi_resize_volume()
705 n = (long long)vol->used_ebs * vol->usable_leb_size; in self_check_volume()
711 if (vol->used_ebs != vol->reserved_pebs) { in self_check_volume()
[all …]
Dupd.c89 vol->used_ebs = div_u64_rem(bytes, vol->usable_leb_size, in clear_update_marker()
92 vol->used_ebs += 1; in clear_update_marker()
220 void *buf, int len, int used_ebs) in write_leb() argument
246 err = ubi_eba_write_leb_st(ubi, vol, lnum, buf, len, used_ebs); in write_leb()
Dmisc.c61 for (i = 0; i < vol->used_ebs; i++) { in ubi_check_volume()
66 if (i == vol->used_ebs - 1) in ubi_check_volume()
Dattach.c336 int used_ebs = be32_to_cpu(vid_hdr->used_ebs); in validate_vid_hdr() local
363 if (used_ebs != av->used_ebs) { in validate_vid_hdr()
409 av->used_ebs = be32_to_cpu(vid_hdr->used_ebs); in add_volume()
1687 av->leb_count < 0 || av->vol_type < 0 || av->used_ebs < 0 || in self_check_ai()
1747 if (aeb->lnum >= av->used_ebs) { in self_check_ai()
1752 if (av->used_ebs != 0) { in self_check_ai()
1833 if (av->used_ebs != be32_to_cpu(vidh->used_ebs)) { in self_check_ai()
1834 ubi_err(ubi, "bad used_ebs %d", av->used_ebs); in self_check_ai()
Dubi-media.h278 __be32 used_ebs; member
485 __be32 used_ebs; member
Dio.c848 int used_ebs = be32_to_cpu(vid_hdr->used_ebs); in validate_vid_hdr() local
858 if (vol_id < 0 || lnum < 0 || data_size < 0 || used_ebs < 0 || in validate_vid_hdr()
903 if (used_ebs == 0) { in validate_vid_hdr()
911 if (lnum < used_ebs - 1) { in validate_vid_hdr()
916 } else if (lnum > used_ebs - 1) { in validate_vid_hdr()
936 if (used_ebs != 0) { in validate_vid_hdr()
Ddebug.c81 pr_err("\tused_ebs %d\n", be32_to_cpu(vid_hdr->used_ebs)); in ubi_dump_vid_hdr()
105 pr_err("\tused_ebs %d\n", vol->used_ebs); in ubi_dump_vol_info()
167 pr_err("\tused_ebs %d\n", av->used_ebs); in ubi_dump_av()
Dfastmap.c175 int used_ebs, int data_pad, u8 vol_type, in add_vol() argument
189 av->used_ebs = used_ebs; in add_vol()
316 av->used_ebs = be32_to_cpu(new_vh->used_ebs); in update_vol()
704 be32_to_cpu(fmvhdr->used_ebs), in ubi_attach_fastmap()
1305 fvh->used_ebs = cpu_to_be32(vol->used_ebs); in ubi_write_fastmap()
Dkapi.c376 lnum >= vol->used_ebs || offset < 0 || len < 0 || in leb_read_sanity_check()
381 if (vol->used_ebs == 0) in leb_read_sanity_check()
384 if (lnum == vol->used_ebs - 1 && in leb_read_sanity_check()
Dubi.h352 int used_ebs; member
715 int used_ebs; member
894 int lnum, const void *buf, int len, int used_ebs);
Deba.c686 ubi_assert(lnum < be32_to_cpu(vid_hdr->used_ebs)); in ubi_eba_read_leb()
1111 int lnum, const void *buf, int len, int used_ebs) in ubi_eba_write_leb_st() argument
1121 if (lnum == used_ebs - 1) in ubi_eba_write_leb_st()
1146 vid_hdr->used_ebs = cpu_to_be32(used_ebs); in ubi_eba_write_leb_st()
/linux-6.1.9/include/linux/mtd/
Dubi.h104 int used_ebs; member