Home
last modified time | relevance | path

Searched refs:fm_wl_pool (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/drivers/mtd/ubi/
H A Dfastmap-wl.c106 * by fastmap pebs) to fill fm_pool and fm_wl_pool, above rule works after
107 * there is at least one of free pebs is filled into fm_wl_pool.
121 if (ubi->fm_wl_pool.size > 0 && !(ubi->ro_mode || ubi->fm_disabled)) in has_enough_free_count()
133 struct ubi_fm_pool *wl_pool = &ubi->fm_wl_pool; in ubi_refill_pools()
234 struct ubi_fm_pool *wl_pool = &ubi->fm_wl_pool; in ubi_wl_get_peb()
286 struct ubi_fm_pool *pool = &ubi->fm_wl_pool; in get_peb_for_wl()
407 return_unused_pool_pebs(ubi, &ubi->fm_wl_pool); in ubi_fastmap_close()
H A Dfastmap.c1068 ubi->fm_wl_pool.max_size = ubi->fm->max_wl_pool_size; in ubi_scan_fastmap()
1072 ubi->fm_wl_pool.max_size); in ubi_scan_fastmap()
1203 fmpl_wl->size = cpu_to_be16(ubi->fm_wl_pool.size); in ubi_write_fastmap()
1204 fmpl_wl->max_size = cpu_to_be16(ubi->fm_wl_pool.max_size); in ubi_write_fastmap()
1206 for (i = 0; i < ubi->fm_wl_pool.size; i++) { in ubi_write_fastmap()
1207 fmpl_wl->pebs[i] = cpu_to_be32(ubi->fm_wl_pool.pebs[i]); in ubi_write_fastmap()
1208 set_seen(ubi, ubi->fm_wl_pool.pebs[i], seen_pebs); in ubi_write_fastmap()
H A Dbuild.c936 ubi->fm_wl_pool.used = ubi->fm_wl_pool.size = 0; in ubi_attach_mtd_dev()
947 ubi->fm_wl_pool.max_size = ubi->fm_pool.max_size / 2; in ubi_attach_mtd_dev()
961 ubi->fm_wl_pool.max_size); in ubi_attach_mtd_dev()
H A Dubi.h484 * @fm_wl_pool: in-memory data structure of the fastmap pool used by the WL
508 * and @fm_wl_pool fields
596 struct ubi_fm_pool fm_wl_pool; member
/kernel/linux/linux-6.6/drivers/mtd/ubi/
H A Dfastmap-wl.c106 * by fastmap pebs) to fill fm_pool and fm_wl_pool, above rule works after
107 * there is at least one of free pebs is filled into fm_wl_pool.
121 if (ubi->fm_wl_pool.size > 0 && !(ubi->ro_mode || ubi->fm_disabled)) in has_enough_free_count()
133 struct ubi_fm_pool *wl_pool = &ubi->fm_wl_pool; in ubi_refill_pools()
234 struct ubi_fm_pool *wl_pool = &ubi->fm_wl_pool; in ubi_wl_get_peb()
288 struct ubi_fm_pool *pool = &ubi->fm_wl_pool; in next_peb_for_wl()
338 struct ubi_fm_pool *pool = &ubi->fm_wl_pool; in get_peb_for_wl()
459 return_unused_pool_pebs(ubi, &ubi->fm_wl_pool); in ubi_fastmap_close()
H A Dfastmap.c1079 ubi->fm_wl_pool.max_size = ubi->fm->max_wl_pool_size; in ubi_scan_fastmap()
1083 ubi->fm_wl_pool.max_size); in ubi_scan_fastmap()
1213 fmpl_wl->size = cpu_to_be16(ubi->fm_wl_pool.size); in ubi_write_fastmap()
1214 fmpl_wl->max_size = cpu_to_be16(ubi->fm_wl_pool.max_size); in ubi_write_fastmap()
1216 for (i = 0; i < ubi->fm_wl_pool.size; i++) { in ubi_write_fastmap()
1217 fmpl_wl->pebs[i] = cpu_to_be32(ubi->fm_wl_pool.pebs[i]); in ubi_write_fastmap()
1218 set_seen(ubi, ubi->fm_wl_pool.pebs[i], seen_pebs); in ubi_write_fastmap()
H A Dbuild.c942 ubi->fm_wl_pool.used = ubi->fm_wl_pool.size = 0; in ubi_attach_mtd_dev()
953 ubi->fm_wl_pool.max_size = ubi->fm_pool.max_size / 2; in ubi_attach_mtd_dev()
967 ubi->fm_wl_pool.max_size); in ubi_attach_mtd_dev()
H A Dubi.h482 * @fm_wl_pool: in-memory data structure of the fastmap pool used by the WL
506 * and @fm_wl_pool fields
594 struct ubi_fm_pool fm_wl_pool; member

Completed in 13 milliseconds