Searched refs:used_ebs (Results 1 – 13 of 13) sorted by relevance
/linux-6.12.1/drivers/mtd/ubi/ |
D | vtbl.c | 311 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()
|
D | vmt.c | 270 vol->used_ebs = vol->reserved_pebs; in ubi_create_volume() 273 (long long)vol->used_ebs * vol->usable_leb_size; in ubi_create_volume() 275 vol->used_ebs = div_u64_rem(vol->used_bytes, in ubi_create_volume() 279 vol->used_ebs += 1; in ubi_create_volume() 460 reserved_pebs < vol->used_ebs) { in ubi_resize_volume() 462 reserved_pebs, vol->used_ebs); in ubi_resize_volume() 542 vol->used_ebs = reserved_pebs; in ubi_resize_volume() 545 (long long)vol->used_ebs * vol->usable_leb_size; in ubi_resize_volume() 756 n = (long long)vol->used_ebs * vol->usable_leb_size; in self_check_volume() 762 if (vol->used_ebs != vol->reserved_pebs) { in self_check_volume() [all …]
|
D | upd.c | 89 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()
|
D | attach.c | 336 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()
|
D | misc.c | 61 for (i = 0; i < vol->used_ebs; i++) { in ubi_check_volume() 66 if (i == vol->used_ebs - 1) in ubi_check_volume()
|
D | ubi-media.h | 278 __be32 used_ebs; member 485 __be32 used_ebs; member
|
D | io.c | 892 int used_ebs = be32_to_cpu(vid_hdr->used_ebs); in validate_vid_hdr() local 902 if (vol_id < 0 || lnum < 0 || data_size < 0 || used_ebs < 0 || in validate_vid_hdr() 947 if (used_ebs == 0) { in validate_vid_hdr() 955 if (lnum < used_ebs - 1) { in validate_vid_hdr() 960 } else if (lnum > used_ebs - 1) { in validate_vid_hdr() 980 if (used_ebs != 0) { in validate_vid_hdr()
|
D | fastmap.c | 176 int used_ebs, int data_pad, u8 vol_type, in add_vol() argument 190 av->used_ebs = used_ebs; in add_vol() 317 av->used_ebs = be32_to_cpu(new_vh->used_ebs); in update_vol() 705 be32_to_cpu(fmvhdr->used_ebs), in ubi_attach_fastmap() 1306 fvh->used_ebs = cpu_to_be32(vol->used_ebs); in ubi_write_fastmap()
|
D | kapi.c | 397 lnum >= vol->used_ebs || offset < 0 || len < 0 || in leb_read_sanity_check() 402 if (vol->used_ebs == 0) in leb_read_sanity_check() 405 if (lnum == vol->used_ebs - 1 && in leb_read_sanity_check()
|
D | debug.c | 111 pr_err("\tused_ebs %d\n", be32_to_cpu(vid_hdr->used_ebs)); in ubi_dump_vid_hdr() 135 pr_err("\tused_ebs %d\n", vol->used_ebs); in ubi_dump_vol_info() 197 pr_err("\tused_ebs %d\n", av->used_ebs); in ubi_dump_av()
|
D | ubi.h | 345 int used_ebs; member 715 int used_ebs; member 894 int lnum, const void *buf, int len, int used_ebs);
|
D | eba.c | 683 ubi_assert(lnum < be32_to_cpu(vid_hdr->used_ebs)); in ubi_eba_read_leb() 1117 int lnum, const void *buf, int len, int used_ebs) in ubi_eba_write_leb_st() argument 1127 if (lnum == used_ebs - 1) in ubi_eba_write_leb_st() 1152 vid_hdr->used_ebs = cpu_to_be32(used_ebs); in ubi_eba_write_leb_st()
|
/linux-6.12.1/include/linux/mtd/ |
D | ubi.h | 104 int used_ebs; member
|