Home
last modified time | relevance | path

Searched refs:ubi_device (Results 1 – 25 of 35) sorted by relevance

12

/openbmc/linux/drivers/mtd/ubi/
H A Dubi.h39 struct ubi_device;
341 struct ubi_device *ubi;
557 struct ubi_device { struct
905 int ubi_wl_get_peb(struct ubi_device *ubi);
911 void ubi_wl_close(struct ubi_device *ubi);
917 void ubi_refill_pools(struct ubi_device *ubi);
943 struct ubi_device *ubi_get_device(int ubi_num);
944 void ubi_put_device(struct ubi_device *ubi);
945 struct ubi_device *ubi_get_by_major(int major);
965 size_t ubi_calc_fm_size(struct ubi_device *ubi);
[all …]
H A Dwl.h7 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);
9 static bool need_wear_leveling(struct ubi_device *ubi);
10 static void ubi_fastmap_close(struct ubi_device *ubi);
11 static inline void ubi_fastmap_init(struct ubi_device *ubi, int *count) in ubi_fastmap_init()
17 static struct ubi_wl_entry *may_reserve_for_fm(struct ubi_device *ubi,
21 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi);
22 static inline void ubi_fastmap_close(struct ubi_device *ubi) { } in ubi_fastmap_close()
23 static inline void ubi_fastmap_init(struct ubi_device *ubi, int *count) { } in ubi_fastmap_init()
24 static struct ubi_wl_entry *may_reserve_for_fm(struct ubi_device *ubi, in may_reserve_for_fm()
H A Ddebug.h11 void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len);
48 int ubi_self_check_all_ff(struct ubi_device *ubi, int pnum, int offset,
52 int ubi_debugfs_init_dev(struct ubi_device *ubi);
53 void ubi_debugfs_exit_dev(struct ubi_device *ubi);
62 static inline int ubi_dbg_is_bgt_disabled(const struct ubi_device *ubi) in ubi_dbg_is_bgt_disabled()
73 static inline int ubi_dbg_is_bitflip(const struct ubi_device *ubi) in ubi_dbg_is_bitflip()
108 static inline int ubi_dbg_chk_io(const struct ubi_device *ubi) in ubi_dbg_chk_io()
113 static inline int ubi_dbg_chk_gen(const struct ubi_device *ubi) in ubi_dbg_chk_gen()
118 static inline int ubi_dbg_chk_fastmap(const struct ubi_device *ubi) in ubi_dbg_chk_fastmap()
123 static inline void ubi_enable_dbg_chk_fastmap(struct ubi_device *ubi) in ubi_enable_dbg_chk_fastmap()
[all …]
H A Dfastmap-wl.c14 struct ubi_device *ubi = container_of(wrk, struct ubi_device, fm_work); in update_fastmap_work_fn()
42 static inline void return_unused_peb(struct ubi_device *ubi, in return_unused_peb()
54 static void return_unused_pool_pebs(struct ubi_device *ubi, in return_unused_pool_pebs()
131 void ubi_refill_pools(struct ubi_device *ubi) in ubi_refill_pools()
207 static int produce_free_peb(struct ubi_device *ubi) in produce_free_peb()
230 int ubi_wl_get_peb(struct ubi_device *ubi) in ubi_wl_get_peb()
286 static struct ubi_wl_entry *next_peb_for_wl(struct ubi_device *ubi) in next_peb_for_wl()
306 static bool need_wear_leveling(struct ubi_device *ubi) in need_wear_leveling()
336 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi) in get_peb_for_wl()
362 int ubi_ensure_anchor_pebs(struct ubi_device *ubi) in ubi_ensure_anchor_pebs()
[all …]
H A Dmisc.c22 int ubi_calc_data_len(const struct ubi_device *ubi, const void *buf, in ubi_calc_data_len()
48 int ubi_check_volume(struct ubi_device *ubi, int vol_id) in ubi_check_volume()
92 void ubi_update_reserved(struct ubi_device *ubi) in ubi_update_reserved()
111 void ubi_calculate_reserved(struct ubi_device *ubi) in ubi_calculate_reserved()
145 void ubi_msg(const struct ubi_device *ubi, const char *fmt, ...) in ubi_msg()
161 void ubi_warn(const struct ubi_device *ubi, const char *fmt, ...) in ubi_warn()
178 void ubi_err(const struct ubi_device *ubi, const char *fmt, ...) in ubi_err()
H A Dio.c307 static int do_sync_erase(struct ubi_device *ubi, int pnum) in do_sync_erase()
363 static int torture_peb(struct ubi_device *ubi, int pnum) in torture_peb()
449 static int nor_erase_prepare(struct ubi_device *ubi, int pnum) in nor_erase_prepare()
572 int ubi_io_is_bad(const struct ubi_device *ubi, int pnum) in ubi_io_is_bad()
601 int ubi_io_mark_bad(const struct ubi_device *ubi, int pnum) in ubi_io_mark_bad()
630 static int validate_ec_hdr(const struct ubi_device *ubi, in validate_ec_hdr()
694 int ubi_io_read_ec_hdr(struct ubi_device *ubi, int pnum, in ubi_io_read_ec_hdr()
803 int ubi_io_write_ec_hdr(struct ubi_device *ubi, int pnum, in ubi_io_write_ec_hdr()
839 static int validate_vid_hdr(const struct ubi_device *ubi, in validate_vid_hdr()
966 int ubi_io_read_vid_hdr(struct ubi_device *ubi, int pnum, in ubi_io_read_vid_hdr()
[all …]
H A Dwl.c128 static int self_check_in_pq(const struct ubi_device *ubi,
188 static int do_work(struct ubi_device *ubi) in do_work()
413 static int prot_queue_del(struct ubi_device *ubi, int pnum) in prot_queue_del()
498 static void serve_prot_queue(struct ubi_device *ubi) in serve_prot_queue()
1352 int ubi_wl_scrub_peb(struct ubi_device *ubi, int pnum)
1651 struct ubi_device *ubi = u;
1719 static void shutdown_work(struct ubi_device *ubi)
1966 void ubi_wl_close(struct ubi_device *ubi)
2055 static int self_check_in_pq(const struct ubi_device *ubi,
2092 static int produce_free_peb(struct ubi_device *ubi)
[all …]
H A Dkapi.c48 struct ubi_device *ubi; in ubi_get_device_info()
119 struct ubi_device *ubi; in ubi_open_volume()
237 struct ubi_device *ubi; in ubi_open_volume_nm()
329 struct ubi_device *ubi = vol->ubi; in ubi_close_volume()
373 struct ubi_device *ubi = vol->ubi; in leb_read_sanity_check()
427 struct ubi_device *ubi = vol->ubi; in ubi_leb_read()
467 struct ubi_device *ubi = vol->ubi; in ubi_leb_read_sg()
518 struct ubi_device *ubi = vol->ubi; in ubi_leb_write()
563 struct ubi_device *ubi = vol->ubi; in ubi_leb_change()
762 struct ubi_device *ubi; in ubi_sync()
[all …]
H A Dbuild.c236 struct ubi_device *ubi = ubi_devices[i]; in ubi_enumerate_volumes()
255 struct ubi_device *ubi_get_device(int ubi_num) in ubi_get_device()
257 struct ubi_device *ubi; in ubi_get_device()
275 void ubi_put_device(struct ubi_device *ubi) in ubi_put_device()
293 struct ubi_device *ubi; in ubi_get_by_major()
325 struct ubi_device *ubi = ubi_devices[i]; in ubi_major2num()
342 struct ubi_device *ubi; in dev_attribute_show()
405 struct ubi_device *ubi = container_of(dev, struct ubi_device, dev); in dev_release()
434 static int uif_init(struct ubi_device *ubi) in uif_init()
845 struct ubi_device *ubi; in ubi_attach_mtd_dev()
[all …]
H A Deba.c71 unsigned long long ubi_next_sqnum(struct ubi_device *ubi) in ubi_next_sqnum()
90 static int ubi_get_compat(const struct ubi_device *ubi, int vol_id) in ubi_get_compat()
249 static struct ubi_ltree_entry *ltree_add_entry(struct ubi_device *ubi, in ltree_add_entry()
319 static int leb_read_lock(struct ubi_device *ubi, int vol_id, int lnum) in leb_read_lock()
361 static int leb_write_lock(struct ubi_device *ubi, int vol_id, int lnum) in leb_write_lock()
450 int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_eba_unmap_leb()
810 struct ubi_device *ubi = vol->ubi; in try_recover_peb()
948 struct ubi_device *ubi = vol->ubi; in try_write_vid_and_data()
1310 int ubi_eba_copy_leb(struct ubi_device *ubi, int from, int to, in ubi_eba_copy_leb()
1490 static void print_rsvd_warning(struct ubi_device *ubi, in print_rsvd_warning()
[all …]
H A Dvtbl.c54 static void self_vtbl_check(const struct ubi_device *ubi);
63 static int ubi_update_layout_vol(struct ubi_device *ubi) in ubi_update_layout_vol()
90 int ubi_change_vtbl_record(struct ubi_device *ubi, int idx, in ubi_change_vtbl_record()
121 int ubi_vtbl_rename_volumes(struct ubi_device *ubi, in ubi_vtbl_rename_volumes()
157 static int vtbl_check(const struct ubi_device *ubi, in vtbl_check()
285 static int create_vtbl(struct ubi_device *ubi, struct ubi_attach_info *ai, in create_vtbl()
361 static struct ubi_vtbl_record *process_lvol(struct ubi_device *ubi, in process_lvol()
484 static struct ubi_vtbl_record *create_empty_lvol(struct ubi_device *ubi, in create_empty_lvol()
520 static int init_volumes(struct ubi_device *ubi, in init_volumes()
718 static int check_attaching_info(const struct ubi_device *ubi, in check_attaching_info()
[all …]
H A Dupd.c41 static int set_update_marker(struct ubi_device *ubi, struct ubi_volume *vol) in set_update_marker()
74 static int clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, in clear_update_marker()
114 int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_start_update()
168 int ubi_start_leb_change(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_start_leb_change()
219 static int write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, in write_leb()
265 int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_more_update_data()
380 int ubi_more_leb_change_data(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_more_leb_change_data()
H A Ddebug.c22 void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len) in ubi_dump_flash()
253 struct ubi_device *ubi; in dfs_file_read()
316 struct ubi_device *ubi; in dfs_file_write()
394 struct ubi_device *ubi = s->private; in eraseblk_count_seq_start()
407 struct ubi_device *ubi = s->private; in eraseblk_count_seq_next()
423 struct ubi_device *ubi = s->private; in eraseblk_count_seq_show()
481 struct ubi_device *ubi = s->private; in eraseblk_count_release()
503 int ubi_debugfs_init_dev(struct ubi_device *ubi) in ubi_debugfs_init_dev()
569 void ubi_debugfs_exit_dev(struct ubi_device *ubi) in ubi_debugfs_exit_dev()
582 int ubi_dbg_power_cut(struct ubi_device *ubi, int caller) in ubi_dbg_power_cut()
/openbmc/u-boot/drivers/mtd/ubi/
H A Dubi.h314 struct ubi_device *ubi;
529 struct ubi_device { struct
866 int ubi_wl_get_peb(struct ubi_device *ubi);
872 void ubi_wl_close(struct ubi_device *ubi);
878 void ubi_refill_pools(struct ubi_device *ubi);
902 struct ubi_device *ubi_get_device(int ubi_num);
903 void ubi_put_device(struct ubi_device *ubi);
904 struct ubi_device *ubi_get_by_major(int major);
923 size_t ubi_calc_fm_size(struct ubi_device *ubi);
924 int ubi_update_fastmap(struct ubi_device *ubi);
[all …]
H A Ddebug.h11 void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len);
52 int ubi_self_check_all_ff(struct ubi_device *ubi, int pnum, int offset,
56 int ubi_debugfs_init_dev(struct ubi_device *ubi);
57 void ubi_debugfs_exit_dev(struct ubi_device *ubi);
66 static inline int ubi_dbg_is_bgt_disabled(const struct ubi_device *ubi) in ubi_dbg_is_bgt_disabled()
77 static inline int ubi_dbg_is_bitflip(const struct ubi_device *ubi) in ubi_dbg_is_bitflip()
112 static inline int ubi_dbg_chk_io(const struct ubi_device *ubi) in ubi_dbg_chk_io()
117 static inline int ubi_dbg_chk_gen(const struct ubi_device *ubi) in ubi_dbg_chk_gen()
122 static inline int ubi_dbg_chk_fastmap(const struct ubi_device *ubi) in ubi_dbg_chk_fastmap()
127 static inline void ubi_enable_dbg_chk_fastmap(struct ubi_device *ubi) in ubi_enable_dbg_chk_fastmap()
[all …]
H A Dwl.h8 void update_fastmap_work_fn(struct ubi_device *ubi);
11 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi);
12 static void ubi_fastmap_close(struct ubi_device *ubi);
13 static inline void ubi_fastmap_init(struct ubi_device *ubi, int *count) in ubi_fastmap_init()
21 static struct ubi_wl_entry *may_reserve_for_fm(struct ubi_device *ubi,
25 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi);
26 static inline void ubi_fastmap_close(struct ubi_device *ubi) { } in ubi_fastmap_close()
27 static inline void ubi_fastmap_init(struct ubi_device *ubi, int *count) { } in ubi_fastmap_init()
28 static struct ubi_wl_entry *may_reserve_for_fm(struct ubi_device *ubi, in may_reserve_for_fm()
H A Dfastmap-wl.c16 void update_fastmap_work_fn(struct ubi_device *ubi) in update_fastmap_work_fn()
20 struct ubi_device *ubi = container_of(wrk, struct ubi_device, fm_work); in update_fastmap_work_fn()
54 static void return_unused_pool_pebs(struct ubi_device *ubi, in return_unused_pool_pebs()
88 struct ubi_wl_entry *ubi_wl_get_fm_peb(struct ubi_device *ubi, int anchor) in ubi_wl_get_fm_peb()
117 void ubi_refill_pools(struct ubi_device *ubi) in ubi_refill_pools()
181 static int produce_free_peb(struct ubi_device *ubi) in produce_free_peb()
204 int ubi_wl_get_peb(struct ubi_device *ubi) in ubi_wl_get_peb()
258 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi) in get_peb_for_wl()
289 int ubi_ensure_anchor_pebs(struct ubi_device *ubi) in ubi_ensure_anchor_pebs()
364 static void ubi_fastmap_close(struct ubi_device *ubi) in ubi_fastmap_close()
[all …]
H A Dio.c325 static int do_sync_erase(struct ubi_device *ubi, int pnum) in do_sync_erase()
405 static int torture_peb(struct ubi_device *ubi, int pnum) in torture_peb()
491 static int nor_erase_prepare(struct ubi_device *ubi, int pnum) in nor_erase_prepare()
603 int ubi_io_is_bad(const struct ubi_device *ubi, int pnum) in ubi_io_is_bad()
632 int ubi_io_mark_bad(const struct ubi_device *ubi, int pnum) in ubi_io_mark_bad()
661 static int validate_ec_hdr(const struct ubi_device *ubi, in validate_ec_hdr()
725 int ubi_io_read_ec_hdr(struct ubi_device *ubi, int pnum, in ubi_io_read_ec_hdr()
834 int ubi_io_write_ec_hdr(struct ubi_device *ubi, int pnum, in ubi_io_write_ec_hdr()
870 static int validate_vid_hdr(const struct ubi_device *ubi, in validate_vid_hdr()
998 int ubi_io_read_vid_hdr(struct ubi_device *ubi, int pnum, in ubi_io_read_vid_hdr()
[all …]
H A Dwl.c133 static int self_check_in_pq(const struct ubi_device *ubi,
193 static int do_work(struct ubi_device *ubi) in do_work()
405 static int prot_queue_del(struct ubi_device *ubi, int pnum) in prot_queue_del()
490 static void serve_prot_queue(struct ubi_device *ubi) in serve_prot_queue()
527 void ubi_do_worker(struct ubi_device *ubi) in ubi_do_worker()
1290 int ubi_wl_scrub_peb(struct ubi_device *ubi, int pnum)
1445 struct ubi_device *ubi = u;
1499 static void shutdown_work(struct ubi_device *ubi)
1682 void ubi_wl_close(struct ubi_device *ubi)
1813 static int produce_free_peb(struct ubi_device *ubi)
[all …]
H A Dkapi.c55 struct ubi_device *ubi; in ubi_get_device_info()
125 struct ubi_device *ubi; in ubi_open_volume()
243 struct ubi_device *ubi; in ubi_open_volume_nm()
334 struct ubi_device *ubi = vol->ubi; in ubi_close_volume()
378 struct ubi_device *ubi = vol->ubi; in leb_read_sanity_check()
432 struct ubi_device *ubi = vol->ubi; in ubi_leb_read()
472 struct ubi_device *ubi = vol->ubi; in ubi_leb_read_sg()
524 struct ubi_device *ubi = vol->ubi; in ubi_leb_write()
569 struct ubi_device *ubi = vol->ubi; in ubi_leb_change()
768 struct ubi_device *ubi; in ubi_sync()
[all …]
H A Dbuild.c114 struct ubi_device *ubi_devices[UBI_MAX_DEVICES];
267 struct ubi_device *ubi = ubi_devices[i]; in ubi_enumerate_volumes()
286 struct ubi_device *ubi_get_device(int ubi_num) in ubi_get_device()
288 struct ubi_device *ubi; in ubi_get_device()
306 void ubi_put_device(struct ubi_device *ubi) in ubi_put_device()
324 struct ubi_device *ubi; in ubi_get_by_major()
356 struct ubi_device *ubi = ubi_devices[i]; in ubi_major2num()
374 struct ubi_device *ubi; in dev_attribute_show()
438 struct ubi_device *ubi = container_of(dev, struct ubi_device, dev); in dev_release()
882 struct ubi_device *ubi; in ubi_attach_mtd_dev()
[all …]
H A Dmisc.c23 int ubi_calc_data_len(const struct ubi_device *ubi, const void *buf, in ubi_calc_data_len()
49 int ubi_check_volume(struct ubi_device *ubi, int vol_id) in ubi_check_volume()
93 void ubi_update_reserved(struct ubi_device *ubi) in ubi_update_reserved()
112 void ubi_calculate_reserved(struct ubi_device *ubi) in ubi_calculate_reserved()
H A Dvtbl.c60 static void self_vtbl_check(const struct ubi_device *ubi);
69 static int ubi_update_layout_vol(struct ubi_device *ubi) in ubi_update_layout_vol()
96 int ubi_change_vtbl_record(struct ubi_device *ubi, int idx, in ubi_change_vtbl_record()
127 int ubi_vtbl_rename_volumes(struct ubi_device *ubi, in ubi_vtbl_rename_volumes()
163 static int vtbl_check(const struct ubi_device *ubi,
295 static int create_vtbl(struct ubi_device *ubi, struct ubi_attach_info *ai,
368 static struct ubi_vtbl_record *process_lvol(struct ubi_device *ubi,
491 static struct ubi_vtbl_record *create_empty_lvol(struct ubi_device *ubi,
527 static int init_volumes(struct ubi_device *ubi,
708 static int check_attaching_info(const struct ubi_device *ubi,
[all …]
H A Dupd.c47 static int set_update_marker(struct ubi_device *ubi, struct ubi_volume *vol) in set_update_marker()
80 static int clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, in clear_update_marker()
120 int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_start_update()
174 int ubi_start_leb_change(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_start_leb_change()
225 static int write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, in write_leb()
271 int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_more_update_data()
391 int ubi_more_leb_change_data(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_more_leb_change_data()
H A Deba.c52 unsigned long long ubi_next_sqnum(struct ubi_device *ubi) in ubi_next_sqnum()
71 static int ubi_get_compat(const struct ubi_device *ubi, int vol_id) in ubi_get_compat()
127 static struct ubi_ltree_entry *ltree_add_entry(struct ubi_device *ubi, in ltree_add_entry()
197 static int leb_read_lock(struct ubi_device *ubi, int vol_id, int lnum) in leb_read_lock()
214 static void leb_read_unlock(struct ubi_device *ubi, int vol_id, int lnum) in leb_read_unlock()
239 static int leb_write_lock(struct ubi_device *ubi, int vol_id, int lnum) in leb_write_lock()
316 int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_eba_unmap_leb()
491 int ubi_eba_read_leb_sg(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_eba_read_leb_sg()
1053 int ubi_eba_copy_leb(struct ubi_device *ubi, int from, int to, in ubi_eba_copy_leb()
1257 static void print_rsvd_warning(struct ubi_device *ubi, in print_rsvd_warning()
[all …]

12