Searched refs:used_blocks (Results 1 – 4 of 4) sorted by relevance
827 ai->bad_peb_count - fm->used_blocks)) in ubi_attach_fastmap()855 int i, used_blocks, pnum, ret = 0; in ubi_scan_fastmap() local896 used_blocks = be32_to_cpu(fmsb->used_blocks); in ubi_scan_fastmap()897 if (used_blocks > UBI_FM_MAX_BLOCKS || used_blocks < 1) { in ubi_scan_fastmap()898 ubi_err("number of fastmap blocks is invalid: %i", used_blocks); in ubi_scan_fastmap()903 fm_size = ubi->leb_size * used_blocks; in ubi_scan_fastmap()923 for (i = 0; i < used_blocks; i++) { in ubi_scan_fastmap()1004 fm->used_blocks = used_blocks; in ubi_scan_fastmap()1013 for (i = 0; i < used_blocks; i++) { in ubi_scan_fastmap()1109 fmsb->used_blocks = cpu_to_be32(new_fm->used_blocks); in ubi_write_fastmap()[all …]
424 __be32 used_blocks; member
230 int used_blocks; member
166 for (i = 0; i < ubi->fm->used_blocks; i++) in ubi_is_fm_block()1966 found_pebs + ubi->fm->used_blocks);