Lines Matching defs:anchor
23 * find_anchor_wl_entry - find wear-leveling entry to used as anchor PEB.
69 * @anchor: This PEB will be used as anchor PEB by fastmap
75 struct ubi_wl_entry *ubi_wl_get_fm_peb(struct ubi_device *ubi, int anchor)
82 if (anchor)
114 int fm_used = 0; // fastmap non anchor pebs.
155 * the best anchor PEBs.
307 * ubi_ensure_anchor_pebs - schedule wear-leveling to produce an anchor PEB.
313 struct ubi_wl_entry *anchor;
317 /* Do we already have an anchor? */
323 /* See if we can find an anchor PEB on the list of free PEBs */
324 anchor = ubi_wl_get_fm_peb(ubi, 1);
325 if (anchor) {
326 ubi->fm_anchor = anchor;
332 /* No luck, trigger wear leveling to produce a new anchor PEB. */