Lines Matching refs:ubi_wl_entry

132 				 struct ubi_wl_entry *e, struct rb_root *root);
134 struct ubi_wl_entry *e);
144 static void wl_tree_add(struct ubi_wl_entry *e, struct rb_root *root) in wl_tree_add()
150 struct ubi_wl_entry *e1; in wl_tree_add()
153 e1 = rb_entry(parent, struct ubi_wl_entry, u.rb); in wl_tree_add()
180 static void wl_entry_destroy(struct ubi_device *ubi, struct ubi_wl_entry *e) in wl_entry_destroy()
241 static int in_wl_tree(struct ubi_wl_entry *e, struct rb_root *root) in in_wl_tree()
247 struct ubi_wl_entry *e1; in in_wl_tree()
249 e1 = rb_entry(p, struct ubi_wl_entry, u.rb); in in_wl_tree()
282 static void prot_queue_add(struct ubi_device *ubi, struct ubi_wl_entry *e) in prot_queue_add()
302 static struct ubi_wl_entry *find_wl_entry(struct ubi_device *ubi, in find_wl_entry()
306 struct ubi_wl_entry *e, *prev_e = NULL; in find_wl_entry()
309 e = rb_entry(rb_first(root), struct ubi_wl_entry, u.rb); in find_wl_entry()
314 struct ubi_wl_entry *e1; in find_wl_entry()
316 e1 = rb_entry(p, struct ubi_wl_entry, u.rb); in find_wl_entry()
345 static struct ubi_wl_entry *find_mean_wl_entry(struct ubi_device *ubi, in find_mean_wl_entry()
348 struct ubi_wl_entry *e, *first, *last; in find_mean_wl_entry()
350 first = rb_entry(rb_first(root), struct ubi_wl_entry, u.rb); in find_mean_wl_entry()
351 last = rb_entry(rb_last(root), struct ubi_wl_entry, u.rb); in find_mean_wl_entry()
354 e = rb_entry(root->rb_node, struct ubi_wl_entry, u.rb); in find_mean_wl_entry()
374 static struct ubi_wl_entry *wl_get_wle(struct ubi_device *ubi) in wl_get_wle()
376 struct ubi_wl_entry *e; in wl_get_wle()
407 struct ubi_wl_entry *e; in prot_queue_del()
430 static int sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in sync_erase()
492 struct ubi_wl_entry *e, *tmp; in serve_prot_queue()
603 static int schedule_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in schedule_erase()
640 static int do_sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in do_sync_erase()
678 struct ubi_wl_entry *e1, *e2;
736 e1 = rb_entry(rb_first(&ubi->used), struct ubi_wl_entry, u.rb);
757 e1 = rb_entry(rb_first(&ubi->scrub), struct ubi_wl_entry, u.rb);
983 struct ubi_wl_entry *e1;
984 struct ubi_wl_entry *e2;
1007 e1 = rb_entry(rb_first(&ubi->used), struct ubi_wl_entry, u.rb);
1063 struct ubi_wl_entry *e = wl_wrk->e;
1202 struct ubi_wl_entry *e;
1292 struct ubi_wl_entry *e;
1414 struct ubi_wl_entry *e;
1423 e = rb_entry(rb, struct ubi_wl_entry, u.rb);
1533 struct ubi_wl_entry *e;
1668 struct ubi_wl_entry *e, *tmp;
1749 struct ubi_wl_entry *e, struct rb_root *root)
1772 struct ubi_wl_entry *e)
1774 struct ubi_wl_entry *p;
1791 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi)
1793 struct ubi_wl_entry *e;
1842 struct ubi_wl_entry *e;