Searched refs:fm_pool (Results 1 - 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/drivers/mtd/ubi/ |
H A D | fastmap-wl.c | 106 * by fastmap pebs) to fill fm_pool and fm_wl_pool, above rule works after 134 struct ubi_fm_pool *pool = &ubi->fm_pool; in ubi_refill_pools() 233 struct ubi_fm_pool *pool = &ubi->fm_pool; in ubi_wl_get_peb() 406 return_unused_pool_pebs(ubi, &ubi->fm_pool); in ubi_fastmap_close()
|
H A D | build.c | 935 ubi->fm_pool.used = ubi->fm_pool.size = 0; in ubi_attach_mtd_dev() 939 * fm_pool.max_size is 5% of the total number of PEBs but it's also in ubi_attach_mtd_dev() 942 ubi->fm_pool.max_size = min(((int)mtd_div_by_eb(ubi->mtd->size, in ubi_attach_mtd_dev() 944 ubi->fm_pool.max_size = max(ubi->fm_pool.max_size, in ubi_attach_mtd_dev() 947 ubi->fm_wl_pool.max_size = ubi->fm_pool.max_size / 2; in ubi_attach_mtd_dev() 959 ubi_msg(ubi, "default fastmap pool size: %d", ubi->fm_pool.max_size); in ubi_attach_mtd_dev()
|
H A D | fastmap.c | 1067 ubi->fm_pool.max_size = ubi->fm->max_pool_size; in ubi_scan_fastmap() 1070 ubi_msg(ubi, "fastmap pool size: %d", ubi->fm_pool.max_size); in ubi_scan_fastmap() 1192 fmpl->size = cpu_to_be16(ubi->fm_pool.size); in ubi_write_fastmap() 1193 fmpl->max_size = cpu_to_be16(ubi->fm_pool.max_size); in ubi_write_fastmap() 1195 for (i = 0; i < ubi->fm_pool.size; i++) { in ubi_write_fastmap() 1196 fmpl->pebs[i] = cpu_to_be32(ubi->fm_pool.pebs[i]); in ubi_write_fastmap() 1197 set_seen(ubi, ubi->fm_pool.pebs[i], seen_pebs); in ubi_write_fastmap()
|
H A D | ubi.h | 483 * @fm_pool: in-memory data structure of the fastmap pool 507 * @erroneous, @erroneous_peb_count, @fm_work_scheduled, @fm_pool, 595 struct ubi_fm_pool fm_pool; member
|
/kernel/linux/linux-6.6/drivers/mtd/ubi/ |
H A D | build.c | 941 ubi->fm_pool.used = ubi->fm_pool.size = 0; in ubi_attach_mtd_dev() 945 * fm_pool.max_size is 5% of the total number of PEBs but it's also in ubi_attach_mtd_dev() 948 ubi->fm_pool.max_size = min(((int)mtd_div_by_eb(ubi->mtd->size, in ubi_attach_mtd_dev() 950 ubi->fm_pool.max_size = max(ubi->fm_pool.max_size, in ubi_attach_mtd_dev() 953 ubi->fm_wl_pool.max_size = ubi->fm_pool.max_size / 2; in ubi_attach_mtd_dev() 965 ubi_msg(ubi, "default fastmap pool size: %d", ubi->fm_pool.max_size); in ubi_attach_mtd_dev()
|
H A D | fastmap-wl.c | 106 * by fastmap pebs) to fill fm_pool and fm_wl_pool, above rule works after 134 struct ubi_fm_pool *pool = &ubi->fm_pool; in ubi_refill_pools() 233 struct ubi_fm_pool *pool = &ubi->fm_pool; in ubi_wl_get_peb() 458 return_unused_pool_pebs(ubi, &ubi->fm_pool); in ubi_fastmap_close()
|
H A D | fastmap.c | 1078 ubi->fm_pool.max_size = ubi->fm->max_pool_size; in ubi_scan_fastmap() 1081 ubi_msg(ubi, "fastmap pool size: %d", ubi->fm_pool.max_size); in ubi_scan_fastmap() 1202 fmpl->size = cpu_to_be16(ubi->fm_pool.size); in ubi_write_fastmap() 1203 fmpl->max_size = cpu_to_be16(ubi->fm_pool.max_size); in ubi_write_fastmap() 1205 for (i = 0; i < ubi->fm_pool.size; i++) { in ubi_write_fastmap() 1206 fmpl->pebs[i] = cpu_to_be32(ubi->fm_pool.pebs[i]); in ubi_write_fastmap() 1207 set_seen(ubi, ubi->fm_pool.pebs[i], seen_pebs); in ubi_write_fastmap()
|
H A D | ubi.h | 481 * @fm_pool: in-memory data structure of the fastmap pool 505 * @erroneous, @erroneous_peb_count, @fm_work_scheduled, @fm_pool, 593 struct ubi_fm_pool fm_pool; member
|
Completed in 13 milliseconds