Lines Matching refs:fm
475 struct ubi_fastmap_layout *fm) in ubi_attach_fastmap() argument
525 fm->max_pool_size = be16_to_cpu(fmpl1->max_size); in ubi_attach_fastmap()
526 fm->max_wl_pool_size = be16_to_cpu(fmpl2->max_size); in ubi_attach_fastmap()
538 if (fm->max_pool_size > UBI_FM_MAX_POOL_SIZE || in ubi_attach_fastmap()
539 fm->max_pool_size < 0) { in ubi_attach_fastmap()
540 ubi_err("bad maximal pool size: %i", fm->max_pool_size); in ubi_attach_fastmap()
544 if (fm->max_wl_pool_size > UBI_FM_MAX_POOL_SIZE || in ubi_attach_fastmap()
545 fm->max_wl_pool_size < 0) { in ubi_attach_fastmap()
546 ubi_err("bad maximal WL pool size: %i", fm->max_wl_pool_size); in ubi_attach_fastmap()
671 ai->bad_peb_count - fm->used_blocks)) in ubi_attach_fastmap()
689 struct ubi_fastmap_layout *fm; in ubi_scan_fastmap() local
696 fm = &ubi->fm_layout; in ubi_scan_fastmap()
702 fm->to_be_tortured[0] = 1; in ubi_scan_fastmap()
753 fm->to_be_tortured[i] = 1; in ubi_scan_fastmap()
781 memcpy(vh, ubi->blockinfo + pnum, sizeof(*fm)); in ubi_scan_fastmap()
828 fm->used_blocks = used_blocks; in ubi_scan_fastmap()
830 ret = ubi_attach_fastmap(ubi, ai, fm); in ubi_scan_fastmap()
837 ubi->fm = fm; in ubi_scan_fastmap()
838 ubi->fm_pool.max_size = ubi->fm->max_pool_size; in ubi_scan_fastmap()
839 ubi->fm_wl_pool.max_size = ubi->fm->max_wl_pool_size; in ubi_scan_fastmap()