• Home
  • Raw
  • Download

Lines Matching refs:fm

606 			      struct ubi_fastmap_layout *fm)  in ubi_attach_fastmap()  argument
665 fm->max_pool_size = be16_to_cpu(fmpl->max_size); in ubi_attach_fastmap()
666 fm->max_wl_pool_size = be16_to_cpu(fmpl_wl->max_size); in ubi_attach_fastmap()
679 if (fm->max_pool_size > UBI_FM_MAX_POOL_SIZE || in ubi_attach_fastmap()
680 fm->max_pool_size < 0) { in ubi_attach_fastmap()
681 ubi_err(ubi, "bad maximal pool size: %i", fm->max_pool_size); in ubi_attach_fastmap()
685 if (fm->max_wl_pool_size > UBI_FM_MAX_POOL_SIZE || in ubi_attach_fastmap()
686 fm->max_wl_pool_size < 0) { in ubi_attach_fastmap()
688 fm->max_wl_pool_size); in ubi_attach_fastmap()
840 ai->bad_peb_count - fm->used_blocks)) in ubi_attach_fastmap()
844 ai->bad_peb_count - fm->used_blocks) { in ubi_attach_fastmap()
883 struct ubi_fastmap_layout *fm; in ubi_scan_fastmap() local
898 fm = kzalloc(sizeof(*fm), GFP_KERNEL); in ubi_scan_fastmap()
899 if (!fm) { in ubi_scan_fastmap()
909 fm->to_be_tortured[0] = 1; in ubi_scan_fastmap()
971 fm->to_be_tortured[i] = 1; in ubi_scan_fastmap()
1042 fm->used_blocks = used_blocks; in ubi_scan_fastmap()
1044 ret = ubi_attach_fastmap(ubi, ai, fm); in ubi_scan_fastmap()
1057 kfree(fm->e[i]); in ubi_scan_fastmap()
1065 fm->e[i] = e; in ubi_scan_fastmap()
1068 ubi->fm = fm; in ubi_scan_fastmap()
1069 ubi->fm_pool.max_size = ubi->fm->max_pool_size; in ubi_scan_fastmap()
1070 ubi->fm_wl_pool.max_size = ubi->fm->max_wl_pool_size; in ubi_scan_fastmap()
1090 kfree(fm); in ubi_scan_fastmap()
1340 ubi->fm = new_fm; in ubi_write_fastmap()
1415 struct ubi_fastmap_layout *fm; in invalidate_fastmap() local
1419 if (!ubi->fm) in invalidate_fastmap()
1422 ubi->fm = NULL; in invalidate_fastmap()
1425 fm = kzalloc(sizeof(*fm), GFP_KERNEL); in invalidate_fastmap()
1426 if (!fm) in invalidate_fastmap()
1449 fm->used_blocks = 1; in invalidate_fastmap()
1450 fm->e[0] = e; in invalidate_fastmap()
1452 ubi->fm = fm; in invalidate_fastmap()
1459 kfree(fm); in invalidate_fastmap()
1470 struct ubi_fastmap_layout *fm) in return_fm_pebs() argument
1474 if (!fm) in return_fm_pebs()
1477 for (i = 0; i < fm->used_blocks; i++) { in return_fm_pebs()
1478 if (fm->e[i]) { in return_fm_pebs()
1479 ubi_wl_put_fm_peb(ubi, fm->e[i], i, in return_fm_pebs()
1480 fm->to_be_tortured[i]); in return_fm_pebs()
1481 fm->e[i] = NULL; in return_fm_pebs()
1521 old_fm = ubi->fm; in ubi_update_fastmap()
1522 ubi->fm = NULL; in ubi_update_fastmap()