Searched refs:fm_anchor (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/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() 383 if (ubi->fm_anchor) { in ubi_ensure_anchor_pebs() 391 ubi->fm_anchor = anchor; in ubi_ensure_anchor_pebs() 474 if (ubi->fm_anchor) { in ubi_fastmap_close() 475 return_unused_peb(ubi, ubi->fm_anchor); in ubi_fastmap_close() 476 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)) { 704 wl_tree_add(ubi->fm_anchor, &ubi->free); 705 ubi->fm_anchor = NULL; 1108 if (!ubi->fm_disabled && !ubi->fm_anchor && 1114 ubi->fm_anchor = e;
|
H A D | ubi.h | 602 struct ubi_wl_entry *fm_anchor; member
|
/openbmc/u-boot/drivers/mtd/ubispl/ |
H A D | ubispl.c | 493 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 D | attach.c | 1336 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 D | ubi.h | 926 int fm_anchor);
|
H A D | fastmap.c | 878 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()
|