Home
last modified time | relevance | path

Searched refs:leb_count (Results 1 – 10 of 10) sorted by relevance

/OK3568_Linux_fs/u-boot/drivers/mtd/ubi/
H A Dvtbl.c590 if (!av || !av->leb_count) {
602 if (av->leb_count != av->used_ebs) {
608 av->vol_id, av->used_ebs - av->leb_count);
674 if (av->leb_count > vol->reserved_pebs) {
811 if (av->leb_count > UBI_LAYOUT_VOLUME_EBS) {
814 av->leb_count);
H A Dattach.c197 if (av->leb_count != 0) { in validate_vid_hdr()
282 av->highest_lnum = av->leb_count = 0; in add_volume()
587 av->leb_count += 1; in ubi_add_to_av()
1515 int leb_count = 0; in self_check_ai() local
1527 av->leb_count < 0 || av->vol_type < 0 || av->used_ebs < 0 || in self_check_ai()
1561 leb_count += 1; in self_check_ai()
1604 if (av->leb_count != leb_count) { in self_check_ai()
1606 leb_count); in self_check_ai()
H A Dfastmap.c207 av->highest_lnum = av->leb_count = av->used_ebs = 0; in add_vol()
257 av->leb_count++; in assign_aeb_to_av()
352 av->leb_count++; in update_vol()
434 av->leb_count--; in unmap_peb()
H A Ddebug.c166 pr_err("\tleb_count %d\n", av->leb_count); in ubi_dump_av()
H A Dubi.h685 int leb_count; member
/OK3568_Linux_fs/kernel/drivers/mtd/ubi/
H A Dvtbl.c595 if (!av || !av->leb_count) { 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()
683 if (av->leb_count > vol->reserved_pebs) { in check_av()
820 if (av->leb_count > UBI_LAYOUT_VOLUME_EBS) { in ubi_read_volume_table()
823 av->leb_count); in ubi_read_volume_table()
H A Dattach.c339 if (av->leb_count != 0) { in validate_vid_hdr()
703 av->leb_count += 1; in ubi_add_to_av()
1675 int leb_count = 0; in self_check_ai() local
1687 av->leb_count < 0 || av->vol_type < 0 || av->used_ebs < 0 || in self_check_ai()
1721 leb_count += 1; in self_check_ai()
1764 if (av->leb_count != leb_count) { in self_check_ai()
1766 leb_count); in self_check_ai()
H A Dubi.h715 int leb_count; member
970 int ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count);
974 static inline int ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count) { return 0; } in ubi_fastmap_init_checkmap() argument
H A Dfastmap.c226 av->leb_count++; in assign_aeb_to_av()
319 av->leb_count++; in update_vol()
380 av->leb_count--; in unmap_peb()
1104 int ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count) in ubi_fastmap_init_checkmap() argument
1111 vol->checkmap = kcalloc(BITS_TO_LONGS(leb_count), sizeof(unsigned long), in ubi_fastmap_init_checkmap()
H A Ddebug.c164 pr_err("\tleb_count %d\n", av->leb_count); in ubi_dump_av()