Lines Matching refs:used
60 for (i = pool->used; i < pool->size; i++) { in return_unused_pool_pebs()
192 wl_pool->used = 0; in ubi_refill_pools()
193 pool->used = 0; in ubi_refill_pools()
242 if (pool->used == pool->size || wl_pool->used == wl_pool->size) { in ubi_wl_get_peb()
255 if (pool->used == pool->size) { in ubi_wl_get_peb()
272 ubi_assert(pool->used < pool->size); in ubi_wl_get_peb()
273 ret = pool->pebs[pool->used++]; in ubi_wl_get_peb()
291 if (pool->used == pool->size) in next_peb_for_wl()
294 pnum = pool->pebs[pool->used]; in next_peb_for_wl()
311 if (!ubi->used.rb_node) in need_wear_leveling()
327 e = rb_entry(rb_first(&ubi->used), struct ubi_wl_entry, u.rb); in need_wear_leveling()
343 if (pool->used == pool->size) { in get_peb_for_wl()
354 pnum = pool->pebs[pool->used++]; in get_peb_for_wl()