• Home
  • Raw
  • Download

Lines Matching refs:used_blocks

840 		    ai->bad_peb_count - fm->used_blocks))  in ubi_attach_fastmap()
844 ai->bad_peb_count - fm->used_blocks) { in ubi_attach_fastmap()
884 int i, used_blocks, pnum, 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()
953 for (i = 0; i < used_blocks; i++) { in ubi_scan_fastmap()
1042 fm->used_blocks = used_blocks; in ubi_scan_fastmap()
1051 for (i = 0; i < used_blocks; i++) { in ubi_scan_fastmap()
1155 fmsb->used_blocks = cpu_to_be32(new_fm->used_blocks); in ubi_write_fastmap()
1306 for (i = 0; i < new_fm->used_blocks; i++) { in ubi_write_fastmap()
1316 for (i = 1; i < new_fm->used_blocks; i++) { in ubi_write_fastmap()
1329 for (i = 0; i < new_fm->used_blocks; i++) { in ubi_write_fastmap()
1449 fm->used_blocks = 1; in invalidate_fastmap()
1477 for (i = 0; i < fm->used_blocks; i++) { in return_fm_pebs()
1520 new_fm->used_blocks = ubi->fm_size / ubi->leb_size; in ubi_update_fastmap()
1524 if (new_fm->used_blocks > UBI_FM_MAX_BLOCKS) { in ubi_update_fastmap()
1530 for (i = 1; i < new_fm->used_blocks; i++) { in ubi_update_fastmap()
1573 if (old_fm && new_fm->used_blocks < old_fm->used_blocks) { in ubi_update_fastmap()
1574 for (i = new_fm->used_blocks; i < old_fm->used_blocks; i++) { in ubi_update_fastmap()
1592 for (i = 1; i < new_fm->used_blocks; i++) { in ubi_update_fastmap()
1613 for (i = 1; i < new_fm->used_blocks; i++) { in ubi_update_fastmap()