Lines Matching defs:ubi
175 static void wl_entry_destroy(struct ubi_device *ubi, struct ubi_wl_entry *e) in wl_entry_destroy()
188 static int do_work(struct ubi_device *ubi) in do_work()
275 static inline int in_pq(const struct ubi_device *ubi, struct ubi_wl_entry *e) in in_pq()
298 static void prot_queue_add(struct ubi_device *ubi, struct ubi_wl_entry *e) in prot_queue_add()
318 static struct ubi_wl_entry *find_wl_entry(struct ubi_device *ubi, in find_wl_entry()
353 static struct ubi_wl_entry *find_mean_wl_entry(struct ubi_device *ubi, in find_mean_wl_entry()
382 static struct ubi_wl_entry *wl_get_wle(struct ubi_device *ubi) in wl_get_wle()
413 static int prot_queue_del(struct ubi_device *ubi, int pnum) in prot_queue_del()
438 static int sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in sync_erase()
498 static void serve_prot_queue(struct ubi_device *ubi) in serve_prot_queue()
542 static void __schedule_ubi_work(struct ubi_device *ubi, struct ubi_work *wrk) in __schedule_ubi_work()
561 static void schedule_ubi_work(struct ubi_device *ubi, struct ubi_work *wrk) in schedule_ubi_work()
583 static int schedule_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in schedule_erase()
620 static int do_sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in do_sync_erase()
647 static int wear_leveling_worker(struct ubi_device *ubi, struct ubi_work *wrk,
1007 static int ensure_wear_leveling(struct ubi_device *ubi, int nested)
1083 static int __erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk)
1209 static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk,
1241 int ubi_wl_put_peb(struct ubi_device *ubi, int vol_id, int lnum,
1333 int ubi_wl_scrub_peb(struct ubi_device *ubi, int pnum)
1398 int ubi_wl_flush(struct ubi_device *ubi, int vol_id, int lnum)
1449 static bool scrub_possible(struct ubi_device *ubi, struct ubi_wl_entry *e)
1482 int ubi_bitflip_check(struct ubi_device *ubi, int pnum, int force)
1598 static void tree_destroy(struct ubi_device *ubi, struct rb_root *root)
1632 struct ubi_device *ubi = u; local
1700 static void shutdown_work(struct ubi_device *ubi)
1719 static int erase_aeb(struct ubi_device *ubi, struct ubi_ainf_peb *aeb, bool sync)
1761 int ubi_wl_init(struct ubi_device *ubi, struct ubi_attach_info *ai)
1930 static void protection_queue_destroy(struct ubi_device *ubi)
1947 void ubi_wl_close(struct ubi_device *ubi)
1970 static int self_check_ec(struct ubi_device *ubi, int pnum, int ec)
2013 static int self_check_in_wl_tree(const struct ubi_device *ubi,
2036 static int self_check_in_pq(const struct ubi_device *ubi,
2051 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi)
2073 static int produce_free_peb(struct ubi_device *ubi)
2099 int ubi_wl_get_peb(struct ubi_device *ubi)