Home
last modified time | relevance | path

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

/linux/drivers/mtd/ubi/
H A 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()
447 if (ubi->fm_anchor) { in ubi_ensure_anchor_pebs()
455 ubi->fm_anchor = anchor; in ubi_ensure_anchor_pebs()
538 if (ubi->fm_anchor) { in ubi_fastmap_close()
539 return_unused_peb(ubi, ubi->fm_anchor); in ubi_fastmap_close()
540 ubi->fm_anchor = NULL; in ubi_fastmap_close()
561 if (e && !ubi->fm_disabled && !ubi->fm && !ubi->fm_anchor && in may_reserve_for_fm()
H A 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()
H A Dwl.c711 if (e1 && ubi->fm_anchor &&
712 (ubi->fm_anchor->ec - e1->ec >= UBI_WL_THRESHOLD)) {
719 wl_tree_add(ubi->fm_anchor, &ubi->free);
720 ubi->fm_anchor = NULL;
1123 if (!ubi->fm_disabled && !ubi->fm_anchor &&
1129 ubi->fm_anchor = e;
H A Dubi.h602 struct ubi_wl_entry *fm_anchor; member