Lines Matching refs:ubi_device
14 struct ubi_device *ubi = container_of(wrk, struct ubi_device, fm_work); in update_fastmap_work_fn()
42 static inline void return_unused_peb(struct ubi_device *ubi, in return_unused_peb()
54 static void return_unused_pool_pebs(struct ubi_device *ubi, in return_unused_pool_pebs()
75 struct ubi_wl_entry *ubi_wl_get_fm_peb(struct ubi_device *ubi, int anchor) in ubi_wl_get_fm_peb()
108 static void wait_free_pebs_for_pool(struct ubi_device *ubi) in wait_free_pebs_for_pool()
147 static int left_free_count(struct ubi_device *ubi) in left_free_count()
168 static int can_fill_pools(struct ubi_device *ubi, int free) in can_fill_pools()
185 void ubi_refill_pools_and_lock(struct ubi_device *ubi) in ubi_refill_pools_and_lock()
271 static int produce_free_peb(struct ubi_device *ubi) in produce_free_peb()
294 int ubi_wl_get_peb(struct ubi_device *ubi) in ubi_wl_get_peb()
350 static struct ubi_wl_entry *next_peb_for_wl(struct ubi_device *ubi) in next_peb_for_wl()
370 static bool need_wear_leveling(struct ubi_device *ubi) in need_wear_leveling()
400 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi) in get_peb_for_wl()
426 int ubi_ensure_anchor_pebs(struct ubi_device *ubi) in ubi_ensure_anchor_pebs()
479 int ubi_wl_put_fm_peb(struct ubi_device *ubi, struct ubi_wl_entry *fm_e, in ubi_wl_put_fm_peb()
518 static void ubi_fastmap_close(struct ubi_device *ubi) in ubi_fastmap_close()
545 static struct ubi_wl_entry *may_reserve_for_fm(struct ubi_device *ubi, in may_reserve_for_fm()