Searched refs:fm_anchor (Results 1 - 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/drivers/mtd/ubi/ |
H A D | fastmap-wl.c | 146 if (ubi->fm_anchor) { in ubi_refill_pools() 147 wl_tree_add(ubi->fm_anchor, &ubi->free); in ubi_refill_pools() 149 ubi->fm_anchor = NULL; in ubi_refill_pools() 157 ubi->fm_anchor = ubi_wl_get_fm_peb(ubi, 1); in ubi_refill_pools() 318 if (ubi->fm_anchor) { in ubi_ensure_anchor_pebs() 326 ubi->fm_anchor = anchor; in ubi_ensure_anchor_pebs() 409 if (ubi->fm_anchor) { in ubi_fastmap_close() 410 return_unused_peb(ubi, ubi->fm_anchor); in ubi_fastmap_close() 411 ubi->fm_anchor = NULL; in ubi_fastmap_close()
|
H A D | fastmap.c | 851 int i, used_blocks, pnum, fm_anchor, ret = 0; in ubi_scan_fastmap() local 856 fm_anchor = find_fm_anchor(scan_ai); in ubi_scan_fastmap() 857 if (fm_anchor < 0) in ubi_scan_fastmap() 883 ret = ubi_io_read_data(ubi, fmsb, fm_anchor, 0, sizeof(*fmsb)); in ubi_scan_fastmap() 943 if (i == 0 && pnum != fm_anchor) { in ubi_scan_fastmap() 945 pnum, fm_anchor); in ubi_scan_fastmap() 1615 tmp_e = ubi->fm_anchor; in ubi_update_fastmap() 1616 ubi->fm_anchor = NULL; in ubi_update_fastmap()
|
H A D | wl.c | 692 if (e1 && ubi->fm_anchor && 693 (ubi->fm_anchor->ec - e1->ec >= UBI_WL_THRESHOLD)) { 696 * fm_anchor is no longer considered a good anchor. 700 wl_tree_add(ubi->fm_anchor, &ubi->free); 701 ubi->fm_anchor = NULL; 1091 if (!ubi->fm_disabled && !ubi->fm_anchor && 1097 ubi->fm_anchor = e;
|
H A D | ubi.h | 494 * @fm_anchor: The next anchor PEB to use for fastmap 604 struct ubi_wl_entry *fm_anchor; member
|
/kernel/linux/linux-6.6/drivers/mtd/ubi/ |
H A D | fastmap-wl.c | 146 if (ubi->fm_anchor) { in ubi_refill_pools() 147 wl_tree_add(ubi->fm_anchor, &ubi->free); in ubi_refill_pools() 149 ubi->fm_anchor = NULL; in ubi_refill_pools() 157 ubi->fm_anchor = ubi_wl_get_fm_peb(ubi, 1); in ubi_refill_pools() 370 if (ubi->fm_anchor) { in ubi_ensure_anchor_pebs() 378 ubi->fm_anchor = anchor; in ubi_ensure_anchor_pebs() 461 if (ubi->fm_anchor) { in ubi_fastmap_close() 462 return_unused_peb(ubi, ubi->fm_anchor); in ubi_fastmap_close() 463 ubi->fm_anchor = NULL; in ubi_fastmap_close()
|
H A D | fastmap.c | 869 int i, used_blocks, pnum, fm_anchor, ret = 0; in ubi_scan_fastmap() local 874 fm_anchor = find_fm_anchor(scan_ai); in ubi_scan_fastmap() 875 if (fm_anchor < 0) in ubi_scan_fastmap() 905 ret = ubi_io_read_data(ubi, fmsb, fm_anchor, 0, sizeof(*fmsb)); in ubi_scan_fastmap() 965 if (i == 0 && pnum != fm_anchor) { in ubi_scan_fastmap() 967 pnum, fm_anchor); in ubi_scan_fastmap() 1625 tmp_e = ubi->fm_anchor; in ubi_update_fastmap() 1626 ubi->fm_anchor = NULL; in ubi_update_fastmap()
|
H A D | wl.c | 696 if (e1 && ubi->fm_anchor && 697 (ubi->fm_anchor->ec - e1->ec >= UBI_WL_THRESHOLD)) { 700 * fm_anchor is no longer considered a good anchor. 704 wl_tree_add(ubi->fm_anchor, &ubi->free); 705 ubi->fm_anchor = NULL; 1101 if (!ubi->fm_disabled && !ubi->fm_anchor && 1107 ubi->fm_anchor = e;
|
H A D | ubi.h | 492 * @fm_anchor: The next anchor PEB to use for fastmap 602 struct ubi_wl_entry *fm_anchor; member
|
Completed in 15 milliseconds