Lines Matching refs:fm_size
562 size_t fm_pos = 0, fm_size = ubi->fm_size; in ubi_attach_fastmap() local
573 if (fm_pos >= fm_size) in ubi_attach_fastmap()
578 if (fm_pos >= fm_size) in ubi_attach_fastmap()
589 if (fm_pos >= fm_size) in ubi_attach_fastmap()
599 if (fm_pos >= fm_size) in ubi_attach_fastmap()
640 if (fm_pos >= fm_size) in ubi_attach_fastmap()
653 if (fm_pos >= fm_size) in ubi_attach_fastmap()
666 if (fm_pos >= fm_size) in ubi_attach_fastmap()
679 if (fm_pos >= fm_size) in ubi_attach_fastmap()
695 if (fm_pos >= fm_size) in ubi_attach_fastmap()
725 if (fm_pos >= fm_size) in ubi_attach_fastmap()
870 size_t fm_size; in ubi_scan_fastmap() local
890 memset(ubi->fm_buf, 0, ubi->fm_size); in ubi_scan_fastmap()
933 fm_size = ubi->leb_size * used_blocks; in ubi_scan_fastmap()
934 if (fm_size != ubi->fm_size) { in ubi_scan_fastmap()
936 fm_size, ubi->fm_size); in ubi_scan_fastmap()
1040 crc = crc32(UBI_CRC32_INIT, ubi->fm_buf, fm_size); in ubi_scan_fastmap()
1152 memset(ubi->fm_buf, 0, ubi->fm_size); in ubi_write_fastmap()
1180 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()
1184 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()
1230 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()
1243 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()
1255 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()
1268 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()
1286 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()
1301 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()
1315 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()
1351 ubi->fm_size)); in ubi_write_fastmap()
1512 new_fm->used_blocks = ubi->fm_size / ubi->leb_size; in ubi_update_fastmap()