Lines Matching refs:pebs
61 e = ubi->lookuptbl[pool->pebs[i]];
101 * has_enough_free_count - whether ubi has enough free pebs to fill fm pools
105 * This helper function checks whether there are enough free pebs (deducted
106 * by fastmap pebs) to fill fm_pool and fm_wl_pool, above rule works after
107 * there is at least one of free pebs is filled into fm_wl_pool.
108 * For wear leveling pool, UBI should also reserve free pebs for bad pebs
109 * handling, because there maybe no enough free pebs for user volumes after
110 * producing new bad pebs.
114 int fm_used = 0; // fastmap non anchor pebs.
169 pool->pebs[pool->size] = e->pnum;
183 wl_pool->pebs[wl_pool->size] = e->pnum;
273 ret = pool->pebs[pool->used++];
302 pnum = pool->pebs[pool->used++];