Searched refs:used_ebs (Results 1 – 12 of 12) sorted by relevance
/drivers/mtd/ubi/ |
D | vtbl.c | 321 vid_hdr->data_size = vid_hdr->used_ebs = in create_vtbl() 583 vol->used_ebs = vol->reserved_pebs; in init_volumes() 586 (long long)vol->used_ebs * vol->usable_leb_size; in init_volumes() 604 if (av->leb_count != av->used_ebs) { in init_volumes() 610 av->vol_id, av->used_ebs - av->leb_count); in init_volumes() 615 vol->used_ebs = av->used_ebs; in init_volumes() 617 (long long)(vol->used_ebs - 1) * vol->usable_leb_size; in init_volumes() 633 vol->used_ebs = vol->reserved_pebs; in init_volumes() 636 (long long)vol->used_ebs * (ubi->leb_size - vol->data_pad); in init_volumes() 685 if (av->used_ebs > vol->reserved_pebs) { in check_av()
|
D | vmt.c | 254 vol->used_ebs = vol->reserved_pebs; in ubi_create_volume() 257 (long long)vol->used_ebs * vol->usable_leb_size; in ubi_create_volume() 259 vol->used_ebs = div_u64_rem(vol->used_bytes, in ubi_create_volume() 263 vol->used_ebs += 1; in ubi_create_volume() 448 reserved_pebs < vol->used_ebs) { in ubi_resize_volume() 450 reserved_pebs, vol->used_ebs); in ubi_resize_volume() 533 vol->used_ebs = reserved_pebs; in ubi_resize_volume() 536 (long long)vol->used_ebs * vol->usable_leb_size; in ubi_resize_volume() 740 n = (long long)vol->used_ebs * vol->usable_leb_size; in self_check_volume() 746 if (vol->used_ebs != vol->reserved_pebs) { in self_check_volume() [all …]
|
D | attach.c | 232 int used_ebs = be32_to_cpu(vid_hdr->used_ebs); in validate_vid_hdr() local 259 if (used_ebs != av->used_ebs) { in validate_vid_hdr() 323 av->used_ebs = be32_to_cpu(vid_hdr->used_ebs); in add_volume() 1601 av->leb_count < 0 || av->vol_type < 0 || av->used_ebs < 0 || in self_check_ai() 1661 if (aeb->lnum >= av->used_ebs) { in self_check_ai() 1666 if (av->used_ebs != 0) { in self_check_ai() 1747 if (av->used_ebs != be32_to_cpu(vidh->used_ebs)) { in self_check_ai() 1748 ubi_err(ubi, "bad used_ebs %d", av->used_ebs); in self_check_ai()
|
D | upd.c | 102 vol->used_ebs = div_u64_rem(bytes, vol->usable_leb_size, in clear_update_marker() 105 vol->used_ebs += 1; in clear_update_marker() 233 void *buf, int len, int used_ebs) in write_leb() argument 259 err = ubi_eba_write_leb_st(ubi, vol, lnum, buf, len, used_ebs); in write_leb()
|
D | misc.c | 74 for (i = 0; i < vol->used_ebs; i++) { in ubi_check_volume() 79 if (i == vol->used_ebs - 1) in ubi_check_volume()
|
D | ubi-media.h | 288 __be32 used_ebs; member 495 __be32 used_ebs; member
|
D | io.c | 886 int used_ebs = be32_to_cpu(vid_hdr->used_ebs); in validate_vid_hdr() local 896 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()
|
D | fastmap.c | 183 int used_ebs, int data_pad, u8 vol_type, in add_vol() argument 205 av->highest_lnum = av->leb_count = av->used_ebs = 0; in add_vol() 213 av->used_ebs = used_ebs; in add_vol() 349 av->used_ebs = be32_to_cpu(new_vh->used_ebs); in update_vol() 748 be32_to_cpu(fmvhdr->used_ebs), in ubi_attach_fastmap() 1291 fvh->used_ebs = cpu_to_be32(vol->used_ebs); in ubi_write_fastmap()
|
D | debug.c | 93 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()
|
D | eba.c | 536 ubi_assert(lnum < be32_to_cpu(vid_hdr->used_ebs)); in ubi_eba_read_leb() 909 int lnum, const void *buf, int len, int used_ebs) in ubi_eba_write_leb_st() argument 918 if (lnum == used_ebs - 1) in ubi_eba_write_leb_st() 943 vid_hdr->used_ebs = cpu_to_be32(used_ebs); in ubi_eba_write_leb_st() 956 len, vol_id, lnum, pnum, used_ebs); in ubi_eba_write_leb_st()
|
D | ubi.h | 329 int used_ebs; member 686 int used_ebs; member 845 int lnum, const void *buf, int len, int used_ebs);
|
D | kapi.c | 386 lnum >= vol->used_ebs || offset < 0 || len < 0 || in leb_read_sanity_check() 391 if (vol->used_ebs == 0) in leb_read_sanity_check() 394 if (lnum == vol->used_ebs - 1 && in leb_read_sanity_check()
|