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()
236 static int in_wl_tree(struct ubi_wl_entry *e, struct rb_root *root) in in_wl_tree()
242 struct ubi_wl_entry *e1; in in_wl_tree()
244 e1 = rb_entry(p, struct ubi_wl_entry, u.rb); in in_wl_tree()
275 static inline int in_pq(const struct ubi_device *ubi, struct ubi_wl_entry *e) in in_pq()
277 struct ubi_wl_entry *p; in in_pq()
298 static void prot_queue_add(struct ubi_device *ubi, struct ubi_wl_entry *e) in prot_queue_add()
318 static struct ubi_wl_entry *find_wl_entry(struct ubi_device *ubi, in find_wl_entry()
322 struct ubi_wl_entry *e; in find_wl_entry()
325 e = rb_entry(rb_first(root), struct ubi_wl_entry, u.rb); in find_wl_entry()
330 struct ubi_wl_entry *e1; in find_wl_entry()
332 e1 = rb_entry(p, struct ubi_wl_entry, u.rb); in find_wl_entry()
353 static struct ubi_wl_entry *find_mean_wl_entry(struct ubi_device *ubi, in find_mean_wl_entry()
356 struct ubi_wl_entry *e, *first, *last; in find_mean_wl_entry()
358 first = rb_entry(rb_first(root), struct ubi_wl_entry, u.rb); in find_mean_wl_entry()
359 last = rb_entry(rb_last(root), struct ubi_wl_entry, u.rb); in find_mean_wl_entry()
362 e = rb_entry(root->rb_node, struct ubi_wl_entry, u.rb); in find_mean_wl_entry()
382 static struct ubi_wl_entry *wl_get_wle(struct ubi_device *ubi) in wl_get_wle()
384 struct ubi_wl_entry *e; in wl_get_wle()
415 struct ubi_wl_entry *e; in prot_queue_del()
438 static int sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in sync_erase()
500 struct ubi_wl_entry *e, *tmp; in serve_prot_queue()
583 static int schedule_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in schedule_erase()
620 static int do_sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in do_sync_erase()
652 struct ubi_wl_entry *e1, *e2;
729 e1 = rb_entry(rb_first(&ubi->used), struct ubi_wl_entry, u.rb);
750 e1 = rb_entry(rb_first(&ubi->scrub), struct ubi_wl_entry, u.rb);
1029 struct ubi_wl_entry *e1;
1030 struct ubi_wl_entry *e2;
1042 e1 = rb_entry(rb_first(&ubi->used), struct ubi_wl_entry, u.rb);
1088 struct ubi_wl_entry *e = wl_wrk->e;
1222 struct ubi_wl_entry *e = wl_wrk->e;
1252 struct ubi_wl_entry *e;
1354 struct ubi_wl_entry *e;
1468 static bool scrub_possible(struct ubi_device *ubi, struct ubi_wl_entry *e)
1504 struct ubi_wl_entry *e;
1620 struct ubi_wl_entry *e;
1629 e = rb_entry(rb, struct ubi_wl_entry, u.rb);
1740 struct ubi_wl_entry *e;
1786 struct ubi_wl_entry *e;
1952 struct ubi_wl_entry *e, *tmp;
2033 struct ubi_wl_entry *e, struct rb_root *root)
2056 struct ubi_wl_entry *e)
2070 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi)
2072 struct ubi_wl_entry *e;
2121 struct ubi_wl_entry *e;