Lines Matching refs:ubi_wl_entry
127 struct ubi_wl_entry *e, struct rb_root *root);
129 struct ubi_wl_entry *e);
139 static void wl_tree_add(struct ubi_wl_entry *e, struct rb_root *root) in wl_tree_add()
145 struct ubi_wl_entry *e1; in wl_tree_add()
148 e1 = rb_entry(parent, struct ubi_wl_entry, u.rb); in wl_tree_add()
175 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()
281 static inline int in_pq(const struct ubi_device *ubi, struct ubi_wl_entry *e) in in_pq()
283 struct ubi_wl_entry *p; 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()
330 struct ubi_wl_entry *e; in find_wl_entry()
333 e = rb_entry(rb_first(root), struct ubi_wl_entry, u.rb); in find_wl_entry()
338 struct ubi_wl_entry *e1; in find_wl_entry()
340 e1 = rb_entry(p, struct ubi_wl_entry, u.rb); in find_wl_entry()
363 static struct ubi_wl_entry *find_mean_wl_entry(struct ubi_device *ubi, in find_mean_wl_entry()
366 struct ubi_wl_entry *e, *first, *last; in find_mean_wl_entry()
368 first = rb_entry(rb_first(root), struct ubi_wl_entry, u.rb); in find_mean_wl_entry()
369 last = rb_entry(rb_last(root), struct ubi_wl_entry, u.rb); in find_mean_wl_entry()
372 e = rb_entry(root->rb_node, struct ubi_wl_entry, u.rb); in find_mean_wl_entry()
395 static struct ubi_wl_entry *wl_get_wle(struct ubi_device *ubi) in wl_get_wle()
397 struct ubi_wl_entry *e; in wl_get_wle()
428 struct ubi_wl_entry *e; in prot_queue_del()
451 int ubi_sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, int torture) in ubi_sync_erase()
512 struct ubi_wl_entry *e, *tmp; in serve_prot_queue()
595 static int schedule_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in schedule_erase()
632 static int do_sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in do_sync_erase()
664 struct ubi_wl_entry *e1, *e2;
741 e1 = rb_entry(rb_first(&ubi->used), struct ubi_wl_entry, u.rb);
762 e1 = rb_entry(rb_first(&ubi->scrub), struct ubi_wl_entry, u.rb);
1041 struct ubi_wl_entry *e1;
1042 struct ubi_wl_entry *e2;
1054 e1 = rb_entry(rb_first(&ubi->used), struct ubi_wl_entry, u.rb);
1100 struct ubi_wl_entry *e = wl_wrk->e;
1234 struct ubi_wl_entry *e = wl_wrk->e;
1264 struct ubi_wl_entry *e;
1366 struct ubi_wl_entry *e;
1480 static bool scrub_possible(struct ubi_device *ubi, struct ubi_wl_entry *e)
1516 struct ubi_wl_entry *e;
1632 struct ubi_wl_entry *e;
1641 e = rb_entry(rb, struct ubi_wl_entry, u.rb);
1752 struct ubi_wl_entry *e;
1798 struct ubi_wl_entry *e;
1964 struct ubi_wl_entry *e, *tmp;
2045 struct ubi_wl_entry *e, struct rb_root *root)
2068 struct ubi_wl_entry *e)
2082 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi)
2084 struct ubi_wl_entry *e;
2133 struct ubi_wl_entry *e;