Lines Matching defs:ubi
182 static void wl_entry_destroy(struct ubi_device *ubi, struct ubi_wl_entry *e) in wl_entry_destroy()
195 static int do_work(struct ubi_device *ubi) in do_work()
284 static void prot_queue_add(struct ubi_device *ubi, struct ubi_wl_entry *e) in prot_queue_add()
304 static struct ubi_wl_entry *find_wl_entry(struct ubi_device *ubi, in find_wl_entry()
347 static struct ubi_wl_entry *find_mean_wl_entry(struct ubi_device *ubi, in find_mean_wl_entry()
376 static struct ubi_wl_entry *wl_get_wle(struct ubi_device *ubi) in wl_get_wle()
407 static int prot_queue_del(struct ubi_device *ubi, int pnum) in prot_queue_del()
432 static int sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in sync_erase()
492 static void serve_prot_queue(struct ubi_device *ubi) in serve_prot_queue()
529 void ubi_do_worker(struct ubi_device *ubi) in ubi_do_worker()
563 static void __schedule_ubi_work(struct ubi_device *ubi, struct ubi_work *wrk) in __schedule_ubi_work()
584 static void schedule_ubi_work(struct ubi_device *ubi, struct ubi_work *wrk) in schedule_ubi_work()
605 static int schedule_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in schedule_erase()
642 static int do_sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in do_sync_erase()
672 static int wear_leveling_worker(struct ubi_device *ubi, struct ubi_work *wrk,
982 static int ensure_wear_leveling(struct ubi_device *ubi, int nested)
1062 static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk,
1200 int ubi_wl_put_peb(struct ubi_device *ubi, int vol_id, int lnum,
1292 int ubi_wl_scrub_peb(struct ubi_device *ubi, int pnum)
1357 int ubi_wl_flush(struct ubi_device *ubi, int vol_id, int lnum)
1413 static void tree_destroy(struct ubi_device *ubi, struct rb_root *root)
1447 struct ubi_device *ubi = u; local
1501 static void shutdown_work(struct ubi_device *ubi)
1529 int ubi_wl_init(struct ubi_device *ubi, struct ubi_attach_info *ai)
1667 static void protection_queue_destroy(struct ubi_device *ubi)
1684 void ubi_wl_close(struct ubi_device *ubi)
1707 static int self_check_ec(struct ubi_device *ubi, int pnum, int ec)
1750 static int self_check_in_wl_tree(const struct ubi_device *ubi,
1773 static int self_check_in_pq(const struct ubi_device *ubi,
1793 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi)
1815 static int produce_free_peb(struct ubi_device *ubi)
1841 int ubi_wl_get_peb(struct ubi_device *ubi)