Home
last modified time | relevance | path

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

/openbmc/linux/drivers/mtd/ubi/
H A Dfastmap-wl.c146 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 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()
1625 tmp_e = ubi->fm_anchor; in ubi_update_fastmap()
1626 ubi->fm_anchor = NULL; in ubi_update_fastmap()
H A Dwl.c696 if (e1 && ubi->fm_anchor &&
697 (ubi->fm_anchor->ec - e1->ec >= UBI_WL_THRESHOLD)) {
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 Dubi.h602 struct ubi_wl_entry *fm_anchor; member
/openbmc/u-boot/drivers/mtd/ubispl/
H A Dubispl.c493 int fm_anchor) in ubi_scan_fastmap() argument
506 ret = ubi_io_read(ubi, fmsb, fm_anchor, ubi->leb_start, sizeof(*fmsb)); in ubi_scan_fastmap()
588 if (pnum == fm_anchor) in ubi_scan_fastmap()
/openbmc/u-boot/drivers/mtd/ubi/
H A Dattach.c1336 int err, pnum, fm_anchor = -1; in scan_fast() local
1361 fm_anchor = pnum; in scan_fast()
1368 if (fm_anchor < 0) in scan_fast()
1376 return ubi_scan_fastmap(ubi, *ai, fm_anchor); in scan_fast()
H A Dubi.h926 int fm_anchor);
H A Dfastmap.c878 int fm_anchor) in ubi_scan_fastmap() argument
905 ret = ubi_io_read(ubi, fmsb, fm_anchor, ubi->leb_start, sizeof(*fmsb)); in ubi_scan_fastmap()