Home
last modified time | relevance | path

Searched refs:fm_anchor (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/drivers/mtd/ubi/
Dfastmap-wl.c207 if (ubi->fm_anchor) { in ubi_refill_pools_and_lock()
208 wl_tree_add(ubi->fm_anchor, &ubi->free); in ubi_refill_pools_and_lock()
210 ubi->fm_anchor = NULL; in ubi_refill_pools_and_lock()
218 ubi->fm_anchor = ubi_wl_get_fm_peb(ubi, 1); in ubi_refill_pools_and_lock()
434 if (ubi->fm_anchor) { in ubi_ensure_anchor_pebs()
442 ubi->fm_anchor = anchor; in ubi_ensure_anchor_pebs()
525 if (ubi->fm_anchor) { in ubi_fastmap_close()
526 return_unused_peb(ubi, ubi->fm_anchor); in ubi_fastmap_close()
527 ubi->fm_anchor = NULL; in ubi_fastmap_close()
548 if (e && !ubi->fm_disabled && !ubi->fm && !ubi->fm_anchor && in may_reserve_for_fm()
Dfastmap.c869 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()
1574 tmp_e = ubi->fm_anchor; in ubi_update_fastmap()
1575 ubi->fm_anchor = NULL; in ubi_update_fastmap()
Dwl.c708 if (e1 && ubi->fm_anchor &&
709 (ubi->fm_anchor->ec - e1->ec >= UBI_WL_THRESHOLD)) {
716 wl_tree_add(ubi->fm_anchor, &ubi->free);
717 ubi->fm_anchor = NULL;
1113 if (!ubi->fm_disabled && !ubi->fm_anchor &&
1119 ubi->fm_anchor = e;
Dubi.h601 struct ubi_wl_entry *fm_anchor; member