Lines Matching refs:used_blocks
781 ai->bad_peb_count - fm->used_blocks)) in ubi_attach_fastmap()
859 int i, used_blocks, pnum, fm_anchor, ret = 0; in ubi_scan_fastmap() local
915 used_blocks = be32_to_cpu(fmsb->used_blocks); in ubi_scan_fastmap()
916 if (used_blocks > UBI_FM_MAX_BLOCKS || used_blocks < 1) { in ubi_scan_fastmap()
918 used_blocks); in ubi_scan_fastmap()
923 fm_size = ubi->leb_size * used_blocks; in ubi_scan_fastmap()
945 for (i = 0; i < used_blocks; i++) { in ubi_scan_fastmap()
1041 fm->used_blocks = used_blocks; in ubi_scan_fastmap()
1050 for (i = 0; i < used_blocks; i++) { in ubi_scan_fastmap()
1179 fmsb->used_blocks = cpu_to_be32(new_fm->used_blocks); in ubi_write_fastmap()
1345 for (i = 0; i < new_fm->used_blocks; i++) { in ubi_write_fastmap()
1355 for (i = 1; i < new_fm->used_blocks; i++) { in ubi_write_fastmap()
1368 for (i = 0; i < new_fm->used_blocks; i++) { in ubi_write_fastmap()
1494 fm->used_blocks = 1; in invalidate_fastmap()
1522 for (i = 0; i < fm->used_blocks; i++) { in return_fm_pebs()
1565 new_fm->used_blocks = ubi->fm_size / ubi->leb_size; in ubi_update_fastmap()
1569 if (new_fm->used_blocks > UBI_FM_MAX_BLOCKS) { in ubi_update_fastmap()
1575 for (i = 1; i < new_fm->used_blocks; i++) { in ubi_update_fastmap()
1618 if (old_fm && new_fm->used_blocks < old_fm->used_blocks) { in ubi_update_fastmap()
1619 for (i = new_fm->used_blocks; i < old_fm->used_blocks; i++) { in ubi_update_fastmap()
1638 for (i = 1; i < new_fm->used_blocks; i++) { in ubi_update_fastmap()
1659 for (i = 1; i < new_fm->used_blocks; i++) { in ubi_update_fastmap()