Lines Matching refs:used
23 * find_anchor_wl_entry - find wear-leveling entry to used as anchor PEB.
60 for (i = pool->used; i < pool->size; i++) {
69 * @anchor: This PEB will be used as anchor PEB by fastmap
192 wl_pool->used = 0;
193 pool->used = 0;
242 if (pool->used == pool->size || wl_pool->used == wl_pool->size) {
255 if (pool->used == pool->size) {
272 ubi_assert(pool->used < pool->size);
273 ret = pool->pebs[pool->used++];
281 * next_peb_for_wl - returns next PEB to be used internally by the
291 if (pool->used == pool->size)
294 pnum = pool->pebs[pool->used];
311 if (!ubi->used.rb_node)
327 e = rb_entry(rb_first(&ubi->used), struct ubi_wl_entry, u.rb);
332 /* get_peb_for_wl - returns a PEB to be used internally by the WL sub-system.
343 if (pool->used == pool->size) {
354 pnum = pool->pebs[pool->used++];
406 * ubi_wl_put_fm_peb - returns a PEB used in a fastmap to the wear-leveling
412 * @lnum: the last used logical eraseblock number for the PEB
431 * has never seen any PEB used by the original fastmap.