Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/mtd/ubi/
Dvtbl.c328 vid_hdr->data_size = vid_hdr->used_ebs = in create_vtbl()
590 vol->used_ebs = vol->reserved_pebs; in init_volumes()
593 (long long)vol->used_ebs * vol->usable_leb_size; in init_volumes()
611 if (sv->leb_count != sv->used_ebs) { in init_volumes()
617 sv->vol_id, sv->used_ebs - sv->leb_count); in init_volumes()
622 vol->used_ebs = sv->used_ebs; in init_volumes()
624 (long long)(vol->used_ebs - 1) * vol->usable_leb_size; in init_volumes()
640 vol->used_ebs = vol->reserved_pebs; in init_volumes()
643 (long long)vol->used_ebs * (ubi->leb_size - vol->data_pad); in init_volumes()
691 if (sv->used_ebs > vol->reserved_pebs) { in check_sv()
Dvmt.c301 vol->used_ebs = vol->reserved_pebs; in ubi_create_volume()
304 (long long)vol->used_ebs * vol->usable_leb_size; in ubi_create_volume()
306 vol->used_ebs = div_u64_rem(vol->used_bytes, in ubi_create_volume()
310 vol->used_ebs += 1; in ubi_create_volume()
502 reserved_pebs < vol->used_ebs) { in ubi_resize_volume()
504 reserved_pebs, vol->used_ebs); in ubi_resize_volume()
584 vol->used_ebs = reserved_pebs; in ubi_resize_volume()
587 (long long)vol->used_ebs * vol->usable_leb_size; in ubi_resize_volume()
800 n = (long long)vol->used_ebs * vol->usable_leb_size; in paranoid_check_volume()
806 if (vol->used_ebs != vol->reserved_pebs) { in paranoid_check_volume()
[all …]
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()
Dscan.c191 int used_ebs = be32_to_cpu(vid_hdr->used_ebs); in validate_vid_hdr() local
218 if (used_ebs != sv->used_ebs) { in validate_vid_hdr()
282 sv->used_ebs = be32_to_cpu(vid_hdr->used_ebs); in add_volume()
1369 sv->leb_count < 0 || sv->vol_type < 0 || sv->used_ebs < 0 || in paranoid_check_si()
1429 if (seb->lnum >= sv->used_ebs) { in paranoid_check_si()
1434 if (sv->used_ebs != 0) { in paranoid_check_si()
1514 if (sv->used_ebs != be32_to_cpu(vidh->used_ebs)) { in paranoid_check_si()
1515 ubi_err("bad used_ebs %d", sv->used_ebs); in paranoid_check_si()
Dupd.c104 vol->used_ebs = div_u64_rem(bytes, vol->usable_leb_size, in clear_update_marker()
107 vol->used_ebs += 1; in clear_update_marker()
235 void *buf, int len, int used_ebs) in write_leb() argument
263 UBI_UNKNOWN, used_ebs); in write_leb()
Dio.c902 int used_ebs = be32_to_cpu(vid_hdr->used_ebs); in validate_vid_hdr() local
912 if (vol_id < 0 || lnum < 0 || data_size < 0 || used_ebs < 0 || in validate_vid_hdr()
952 if (used_ebs == 0) { in validate_vid_hdr()
960 if (lnum < used_ebs - 1) { in validate_vid_hdr()
965 } else if (lnum == used_ebs - 1) { in validate_vid_hdr()
990 if (used_ebs != 0) { in validate_vid_hdr()
Ddebug.c74 printk(KERN_DEBUG "\tused_ebs %d\n", be32_to_cpu(vid_hdr->used_ebs)); in ubi_dbg_dump_vid_hdr()
98 printk(KERN_DEBUG "\tused_ebs %d\n", vol->used_ebs); in ubi_dbg_dump_vol_info()
160 printk(KERN_DEBUG "\tused_ebs %d\n", sv->used_ebs); in ubi_dbg_dump_sv()
Dubi-media.h288 __be32 used_ebs; member
Deba.c434 ubi_assert(lnum < be32_to_cpu(vid_hdr->used_ebs)); in ubi_eba_read_leb()
728 int used_ebs) in ubi_eba_write_leb_st() argument
737 if (lnum == used_ebs - 1) in ubi_eba_write_leb_st()
762 vid_hdr->used_ebs = cpu_to_be32(used_ebs); in ubi_eba_write_leb_st()
774 len, vol_id, lnum, pnum, used_ebs); in ubi_eba_write_leb_st()
Dscan.h80 int used_ebs; member
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()
Dubi.h263 int used_ebs; member
531 int used_ebs);
/linux-3.4.99/include/linux/mtd/
Dubi.h104 int used_ebs; member