Lines Matching refs:used_blocks

791 		    ai->bad_peb_count - fm->used_blocks))  in ubi_attach_fastmap()
869 int i, used_blocks, pnum, fm_anchor, ret = 0; in ubi_scan_fastmap() local
925 used_blocks = be32_to_cpu(fmsb->used_blocks); in ubi_scan_fastmap()
926 if (used_blocks > UBI_FM_MAX_BLOCKS || used_blocks < 1) { in ubi_scan_fastmap()
928 used_blocks); in ubi_scan_fastmap()
933 fm_size = ubi->leb_size * used_blocks; in ubi_scan_fastmap()
955 for (i = 0; i < used_blocks; i++) { in ubi_scan_fastmap()
1051 fm->used_blocks = used_blocks; in ubi_scan_fastmap()
1060 for (i = 0; i < used_blocks; i++) { in ubi_scan_fastmap()
1188 fmsb->used_blocks = cpu_to_be32(new_fm->used_blocks); in ubi_write_fastmap()
1343 for (i = 0; i < new_fm->used_blocks; i++) { in ubi_write_fastmap()
1353 for (i = 1; i < new_fm->used_blocks; i++) { in ubi_write_fastmap()
1366 for (i = 0; i < new_fm->used_blocks; i++) { in ubi_write_fastmap()
1445 fm->used_blocks = 1; in invalidate_fastmap()
1473 for (i = 0; i < fm->used_blocks; i++) { in return_fm_pebs()
1512 new_fm->used_blocks = ubi->fm_size / ubi->leb_size; in ubi_update_fastmap()
1516 if (new_fm->used_blocks > UBI_FM_MAX_BLOCKS) { in ubi_update_fastmap()
1522 for (i = 1; i < new_fm->used_blocks; i++) { in ubi_update_fastmap()
1565 if (old_fm && new_fm->used_blocks < old_fm->used_blocks) { in ubi_update_fastmap()
1566 for (i = new_fm->used_blocks; i < old_fm->used_blocks; i++) { in ubi_update_fastmap()
1585 for (i = 1; i < new_fm->used_blocks; i++) { in ubi_update_fastmap()
1605 for (i = 1; i < new_fm->used_blocks; i++) { in ubi_update_fastmap()