Lines Matching refs:ubi_wl_entry

133 				 struct ubi_wl_entry *e, struct rb_root *root);
135 struct ubi_wl_entry *e);
145 static void wl_tree_add(struct ubi_wl_entry *e, struct rb_root *root) in wl_tree_add()
151 struct ubi_wl_entry *e1; in wl_tree_add()
154 e1 = rb_entry(parent, struct ubi_wl_entry, u.rb); in wl_tree_add()
181 static void wl_entry_destroy(struct ubi_device *ubi, struct ubi_wl_entry *e) in wl_entry_destroy()
242 static int in_wl_tree(struct ubi_wl_entry *e, struct rb_root *root) in in_wl_tree()
248 struct ubi_wl_entry *e1; in in_wl_tree()
250 e1 = rb_entry(p, struct ubi_wl_entry, u.rb); in in_wl_tree()
283 static void prot_queue_add(struct ubi_device *ubi, struct ubi_wl_entry *e) in prot_queue_add()
303 static struct ubi_wl_entry *find_wl_entry(struct ubi_device *ubi, in find_wl_entry()
307 struct ubi_wl_entry *e, *prev_e = NULL; in find_wl_entry()
310 e = rb_entry(rb_first(root), struct ubi_wl_entry, u.rb); in find_wl_entry()
315 struct ubi_wl_entry *e1; in find_wl_entry()
317 e1 = rb_entry(p, struct ubi_wl_entry, u.rb); in find_wl_entry()
346 static struct ubi_wl_entry *find_mean_wl_entry(struct ubi_device *ubi, in find_mean_wl_entry()
349 struct ubi_wl_entry *e, *first, *last; in find_mean_wl_entry()
351 first = rb_entry(rb_first(root), struct ubi_wl_entry, u.rb); in find_mean_wl_entry()
352 last = rb_entry(rb_last(root), struct ubi_wl_entry, u.rb); in find_mean_wl_entry()
355 e = rb_entry(root->rb_node, struct ubi_wl_entry, u.rb); in find_mean_wl_entry()
375 static struct ubi_wl_entry *wl_get_wle(struct ubi_device *ubi) in wl_get_wle()
377 struct ubi_wl_entry *e; in wl_get_wle()
408 struct ubi_wl_entry *e; in prot_queue_del()
431 static int sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in sync_erase()
493 struct ubi_wl_entry *e, *tmp; in serve_prot_queue()
604 static int schedule_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in schedule_erase()
641 static int do_sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in do_sync_erase()
679 struct ubi_wl_entry *e1, *e2;
737 e1 = rb_entry(rb_first(&ubi->used), struct ubi_wl_entry, u.rb);
758 e1 = rb_entry(rb_first(&ubi->scrub), struct ubi_wl_entry, u.rb);
984 struct ubi_wl_entry *e1;
985 struct ubi_wl_entry *e2;
1008 e1 = rb_entry(rb_first(&ubi->used), struct ubi_wl_entry, u.rb);
1064 struct ubi_wl_entry *e = wl_wrk->e;
1203 struct ubi_wl_entry *e;
1293 struct ubi_wl_entry *e;
1415 struct ubi_wl_entry *e;
1424 e = rb_entry(rb, struct ubi_wl_entry, u.rb);
1534 struct ubi_wl_entry *e;
1669 struct ubi_wl_entry *e, *tmp;
1750 struct ubi_wl_entry *e, struct rb_root *root)
1773 struct ubi_wl_entry *e)
1775 struct ubi_wl_entry *p;
1792 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi)
1794 struct ubi_wl_entry *e;
1843 struct ubi_wl_entry *e;