Lines Matching refs:ubi_device
125 static int self_check_ec(struct ubi_device *ubi, int pnum, int ec);
126 static int self_check_in_wl_tree(const struct ubi_device *ubi,
128 static int self_check_in_pq(const struct ubi_device *ubi,
175 static void wl_entry_destroy(struct ubi_device *ubi, struct ubi_wl_entry *e) in wl_entry_destroy()
190 static int do_work(struct ubi_device *ubi, int *executed) in do_work()
281 static inline int in_pq(const struct ubi_device *ubi, struct ubi_wl_entry *e) in in_pq()
304 static void prot_queue_add(struct ubi_device *ubi, struct ubi_wl_entry *e) in prot_queue_add()
325 static struct ubi_wl_entry *find_wl_entry(struct ubi_device *ubi, in find_wl_entry()
363 static struct ubi_wl_entry *find_mean_wl_entry(struct ubi_device *ubi, in find_mean_wl_entry()
395 static struct ubi_wl_entry *wl_get_wle(struct ubi_device *ubi) in wl_get_wle()
426 static int prot_queue_del(struct ubi_device *ubi, int pnum) in prot_queue_del()
451 int ubi_sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, int torture) in ubi_sync_erase()
510 static void serve_prot_queue(struct ubi_device *ubi) in serve_prot_queue()
554 static void __schedule_ubi_work(struct ubi_device *ubi, struct ubi_work *wrk) in __schedule_ubi_work()
573 static void schedule_ubi_work(struct ubi_device *ubi, struct ubi_work *wrk) in schedule_ubi_work()
580 static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk,
595 static int schedule_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in schedule_erase()
622 static int __erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk);
632 static int do_sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in do_sync_erase()
647 static int ensure_wear_leveling(struct ubi_device *ubi, int nested);
659 static int wear_leveling_worker(struct ubi_device *ubi, struct ubi_work *wrk,
1022 static int ensure_wear_leveling(struct ubi_device *ubi, int nested)
1098 static int __erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk)
1228 static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk,
1260 int ubi_wl_put_peb(struct ubi_device *ubi, int vol_id, int lnum,
1364 int ubi_wl_scrub_peb(struct ubi_device *ubi, int pnum)
1429 int ubi_wl_flush(struct ubi_device *ubi, int vol_id, int lnum)
1480 static bool scrub_possible(struct ubi_device *ubi, struct ubi_wl_entry *e)
1513 int ubi_bitflip_check(struct ubi_device *ubi, int pnum, int force)
1629 static void tree_destroy(struct ubi_device *ubi, struct rb_root *root)
1663 struct ubi_device *ubi = u;
1731 static void shutdown_work(struct ubi_device *ubi)
1750 static int erase_aeb(struct ubi_device *ubi, struct ubi_ainf_peb *aeb, bool sync)
1792 int ubi_wl_init(struct ubi_device *ubi, struct ubi_attach_info *ai)
1961 static void protection_queue_destroy(struct ubi_device *ubi)
1978 void ubi_wl_close(struct ubi_device *ubi)
2001 static int self_check_ec(struct ubi_device *ubi, int pnum, int ec)
2044 static int self_check_in_wl_tree(const struct ubi_device *ubi,
2067 static int self_check_in_pq(const struct ubi_device *ubi,
2082 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi)
2104 static int produce_free_peb(struct ubi_device *ubi)
2130 int ubi_wl_get_peb(struct ubi_device *ubi)