Home
last modified time | relevance | path

Searched refs:ubi_wl_entry (Results 1 – 14 of 14) sorted by relevance

/openbmc/linux/drivers/mtd/ubi/
H A Dwl.h6 static struct ubi_wl_entry *find_anchor_wl_entry(struct rb_root *root);
7 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi);
8 static struct ubi_wl_entry *next_peb_for_wl(struct ubi_device *ubi,
18 static struct ubi_wl_entry *may_reserve_for_fm(struct ubi_device *ubi,
19 struct ubi_wl_entry *e,
22 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi);
25 static struct ubi_wl_entry *may_reserve_for_fm(struct ubi_device *ubi, in may_reserve_for_fm()
26 struct ubi_wl_entry *e, in may_reserve_for_fm()
H A Dfastmap-wl.c26 static struct ubi_wl_entry *find_anchor_wl_entry(struct rb_root *root) in find_anchor_wl_entry()
29 struct ubi_wl_entry *e, *victim = NULL; in find_anchor_wl_entry()
43 struct ubi_wl_entry *e) in return_unused_peb()
58 struct ubi_wl_entry *e; in return_unused_pool_pebs()
75 struct ubi_wl_entry *ubi_wl_get_fm_peb(struct ubi_device *ubi, int anchor) in ubi_wl_get_fm_peb()
77 struct ubi_wl_entry *e = NULL; in ubi_wl_get_fm_peb()
135 struct ubi_wl_entry *e; in ubi_refill_pools()
287 static struct ubi_wl_entry *next_peb_for_wl(struct ubi_device *ubi, in next_peb_for_wl()
322 struct ubi_wl_entry *e; in need_wear_leveling()
340 e = rb_entry(rb_first(&ubi->used), struct ubi_wl_entry, u.rb); in need_wear_leveling()
[all …]
H A Dwl.c127 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()
[all …]
H A Dubi.h178 struct ubi_wl_entry { struct
241 struct ubi_wl_entry *e[UBI_FM_MAX_BLOCKS];
602 struct ubi_wl_entry *fm_anchor;
617 struct ubi_wl_entry **lookuptbl;
618 struct ubi_wl_entry *move_from;
619 struct ubi_wl_entry *move_to;
805 struct ubi_wl_entry *e;
913 struct ubi_wl_entry *ubi_wl_get_fm_peb(struct ubi_device *ubi, int anchor);
914 int ubi_wl_put_fm_peb(struct ubi_device *ubi, struct ubi_wl_entry *used_e,
1213 static inline struct ubi_wl_entry *ubi_find_fm_block(const struct ubi_device *ubi, in ubi_find_fm_block()
H A Dfastmap.c1061 struct ubi_wl_entry *e; in ubi_scan_fastmap()
1141 struct ubi_wl_entry *wl_e; in ubi_write_fastmap()
1456 struct ubi_wl_entry *e; in invalidate_fastmap()
1540 struct ubi_wl_entry *tmp_e; in ubi_update_fastmap()
H A Dbuild.c597 dbg_gen("sizeof(struct ubi_wl_entry) %zu", sizeof(struct ubi_wl_entry)); in io_init()
1243 sizeof(struct ubi_wl_entry), in ubi_init()
H A Ddebug.c424 struct ubi_wl_entry *wl; in eraseblk_count_seq_show()
/openbmc/u-boot/drivers/mtd/ubi/
H A Dwl.h10 static struct ubi_wl_entry *find_anchor_wl_entry(struct rb_root *root);
11 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi);
21 static struct ubi_wl_entry *may_reserve_for_fm(struct ubi_device *ubi,
22 struct ubi_wl_entry *e,
25 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi);
28 static struct ubi_wl_entry *may_reserve_for_fm(struct ubi_device *ubi, in may_reserve_for_fm()
29 struct ubi_wl_entry *e, in may_reserve_for_fm()
H A Dwl.c132 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()
[all …]
H A Dfastmap-wl.c33 static struct ubi_wl_entry *find_anchor_wl_entry(struct rb_root *root) in find_anchor_wl_entry()
36 struct ubi_wl_entry *e, *victim = NULL; in find_anchor_wl_entry()
58 struct ubi_wl_entry *e; in return_unused_pool_pebs()
70 struct ubi_wl_entry *e; in anchor_pebs_avalible()
88 struct ubi_wl_entry *ubi_wl_get_fm_peb(struct ubi_device *ubi, int anchor) in ubi_wl_get_fm_peb()
90 struct ubi_wl_entry *e = NULL; in ubi_wl_get_fm_peb()
121 struct ubi_wl_entry *e; in ubi_refill_pools()
258 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi) in get_peb_for_wl()
325 int ubi_wl_put_fm_peb(struct ubi_device *ubi, struct ubi_wl_entry *fm_e, in ubi_wl_put_fm_peb()
328 struct ubi_wl_entry *e; in ubi_wl_put_fm_peb()
[all …]
H A Dubi.h172 struct ubi_wl_entry { struct
235 struct ubi_wl_entry *e[UBI_FM_MAX_BLOCKS];
363 struct ubi_wl_entry;
588 struct ubi_wl_entry **lookuptbl;
589 struct ubi_wl_entry *move_from;
590 struct ubi_wl_entry *move_to;
767 struct ubi_wl_entry *e;
874 struct ubi_wl_entry *ubi_wl_get_fm_peb(struct ubi_device *ubi, int anchor);
875 int ubi_wl_put_fm_peb(struct ubi_device *ubi, struct ubi_wl_entry *used_e,
H A Dfastmap.c1052 struct ubi_wl_entry *e; in ubi_scan_fastmap()
1112 struct ubi_wl_entry *wl_e; in ubi_write_fastmap()
1416 struct ubi_wl_entry *e; in invalidate_fastmap()
1497 struct ubi_wl_entry *tmp_e; in ubi_update_fastmap()
H A Dbuild.c652 dbg_gen("sizeof(struct ubi_wl_entry) %zu", sizeof(struct ubi_wl_entry)); in io_init()
1270 sizeof(struct ubi_wl_entry), in ubi_init()
/openbmc/u-boot/drivers/mtd/ubispl/
H A Dubi-wrapper.h79 struct ubi_wl_entry *e[UBI_FM_MAX_BLOCKS];