Home
last modified time | relevance | path

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

/external/u-boot/drivers/mtd/ubi/
Dubi.h317 struct ubi_device *ubi;
533 struct ubi_device { struct
769 int (*func)(struct ubi_device *ubi, struct ubi_work *wrk, int shutdown);
789 int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum,
794 struct ubi_ainf_peb *ubi_early_get_peb(struct ubi_device *ubi,
796 int ubi_attach(struct ubi_device *ubi, int force_scan);
800 int ubi_change_vtbl_record(struct ubi_device *ubi, int idx,
802 int ubi_vtbl_rename_volumes(struct ubi_device *ubi,
804 int ubi_read_volume_table(struct ubi_device *ubi, struct ubi_attach_info *ai);
807 int ubi_create_volume(struct ubi_device *ubi, struct ubi_mkvol_req *req);
[all …]
Ddebug.h11 void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len);
62 int ubi_self_check_all_ff(struct ubi_device *ubi, int pnum, int offset,
66 int ubi_debugfs_init_dev(struct ubi_device *ubi);
67 void ubi_debugfs_exit_dev(struct ubi_device *ubi);
76 static inline int ubi_dbg_is_bgt_disabled(const struct ubi_device *ubi) in ubi_dbg_is_bgt_disabled()
87 static inline int ubi_dbg_is_bitflip(const struct ubi_device *ubi) in ubi_dbg_is_bitflip()
101 static inline int ubi_dbg_is_write_failure(const struct ubi_device *ubi) in ubi_dbg_is_write_failure()
115 static inline int ubi_dbg_is_erase_failure(const struct ubi_device *ubi) in ubi_dbg_is_erase_failure()
122 static inline int ubi_dbg_chk_io(const struct ubi_device *ubi) in ubi_dbg_chk_io()
127 static inline int ubi_dbg_chk_gen(const struct ubi_device *ubi) in ubi_dbg_chk_gen()
[all …]
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()
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()
325 int ubi_wl_put_fm_peb(struct ubi_device *ubi, struct ubi_wl_entry *fm_e, in ubi_wl_put_fm_peb()
[all …]
Dio.c88 static int self_check_not_bad(const struct ubi_device *ubi, int pnum);
89 static int self_check_peb_ec_hdr(const struct ubi_device *ubi, int pnum);
90 static int self_check_ec_hdr(const struct ubi_device *ubi, int pnum,
92 static int self_check_peb_vid_hdr(const struct ubi_device *ubi, int pnum);
93 static int self_check_vid_hdr(const struct ubi_device *ubi, int pnum,
95 static int self_check_write(struct ubi_device *ubi, const void *buf, int pnum,
120 int ubi_io_read(const struct ubi_device *ubi, void *buf, int pnum, int offset, in ubi_io_read()
229 int ubi_io_write(struct ubi_device *ubi, const void *buf, int pnum, int offset, in ubi_io_write()
326 static int do_sync_erase(struct ubi_device *ubi, int pnum) in do_sync_erase()
406 static int torture_peb(struct ubi_device *ubi, int pnum) in torture_peb()
[all …]
Dwl.c130 static int self_check_ec(struct ubi_device *ubi, int pnum, int ec);
131 static int self_check_in_wl_tree(const struct ubi_device *ubi,
133 static int self_check_in_pq(const struct ubi_device *ubi,
180 static void wl_entry_destroy(struct ubi_device *ubi, struct ubi_wl_entry *e) in wl_entry_destroy()
193 static int do_work(struct ubi_device *ubi) in do_work()
282 static void prot_queue_add(struct ubi_device *ubi, struct ubi_wl_entry *e) in prot_queue_add()
302 static struct ubi_wl_entry *find_wl_entry(struct ubi_device *ubi, in find_wl_entry()
345 static struct ubi_wl_entry *find_mean_wl_entry(struct ubi_device *ubi, in find_mean_wl_entry()
374 static struct ubi_wl_entry *wl_get_wle(struct ubi_device *ubi) in wl_get_wle()
405 static int prot_queue_del(struct ubi_device *ubi, int pnum) in prot_queue_del()
[all …]
Dbuild.c112 static struct ubi_device *ubi_devices[UBI_MAX_DEVICES];
114 struct ubi_device *ubi_devices[UBI_MAX_DEVICES];
182 int ubi_volume_notify(struct ubi_device *ubi, struct ubi_volume *vol, int ntype) in ubi_volume_notify()
214 int ubi_notify_all(struct ubi_device *ubi, int ntype, struct notifier_block *nb) in ubi_notify_all()
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()
321 struct ubi_device *ubi_get_by_major(int major) in ubi_get_by_major()
324 struct ubi_device *ubi; in ubi_get_by_major()
[all …]
Dkapi.c31 void ubi_do_get_device_info(struct ubi_device *ubi, struct ubi_device_info *di) in ubi_do_get_device_info()
55 struct ubi_device *ubi; in ubi_get_device_info()
74 void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_do_get_volume_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()
[all …]
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()
Dvtbl.c61 static void self_vtbl_check(const struct ubi_device *ubi);
70 static int ubi_update_layout_vol(struct ubi_device *ubi) in ubi_update_layout_vol()
97 int ubi_change_vtbl_record(struct ubi_device *ubi, int idx, in ubi_change_vtbl_record()
128 int ubi_vtbl_rename_volumes(struct ubi_device *ubi, in ubi_vtbl_rename_volumes()
164 static int vtbl_check(const struct ubi_device *ubi,
296 static int create_vtbl(struct ubi_device *ubi, struct ubi_attach_info *ai,
369 static struct ubi_vtbl_record *process_lvol(struct ubi_device *ubi,
492 static struct ubi_vtbl_record *create_empty_lvol(struct ubi_device *ubi,
528 static int init_volumes(struct ubi_device *ubi,
712 static int check_attaching_info(const struct ubi_device *ubi,
[all …]
Deba.c53 unsigned long long ubi_next_sqnum(struct ubi_device *ubi) in ubi_next_sqnum()
72 static int ubi_get_compat(const struct ubi_device *ubi, int vol_id) in ubi_get_compat()
89 static struct ubi_ltree_entry *ltree_lookup(struct ubi_device *ubi, int vol_id, in ltree_lookup()
128 static struct ubi_ltree_entry *ltree_add_entry(struct ubi_device *ubi, in ltree_add_entry()
198 static int leb_read_lock(struct ubi_device *ubi, int vol_id, int lnum) in leb_read_lock()
215 static void leb_read_unlock(struct ubi_device *ubi, int vol_id, int lnum) in leb_read_unlock()
240 static int leb_write_lock(struct ubi_device *ubi, int vol_id, int lnum) in leb_write_lock()
262 static int leb_write_trylock(struct ubi_device *ubi, int vol_id, int lnum) in leb_write_trylock()
291 static void leb_write_unlock(struct ubi_device *ubi, int vol_id, int lnum) in leb_write_unlock()
317 int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_eba_unmap_leb()
[all …]
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()
Ddebug.c24 void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len) in ubi_dump_flash()
256 struct ubi_device *ubi; in dfs_file_read()
319 struct ubi_device *ubi; in dfs_file_write()
396 int ubi_debugfs_init_dev(struct ubi_device *ubi) in ubi_debugfs_init_dev()
500 void ubi_debugfs_exit_dev(struct ubi_device *ubi) in ubi_debugfs_exit_dev()
513 int ubi_dbg_power_cut(struct ubi_device *ubi, int caller) in ubi_dbg_power_cut()
548 int ubi_debugfs_init_dev(struct ubi_device *ubi) in ubi_debugfs_init_dev()
553 void ubi_debugfs_exit_dev(struct ubi_device *ubi) in ubi_debugfs_exit_dev()
557 int ubi_dbg_power_cut(struct ubi_device *ubi, int caller) in ubi_dbg_power_cut()
Dvmt.c25 static int self_check_volumes(struct ubi_device *ubi);
66 struct ubi_device *ubi; in vol_attribute_show()
151 int ubi_create_volume(struct ubi_device *ubi, struct ubi_mkvol_req *req) in ubi_create_volume()
364 struct ubi_device *ubi = vol->ubi; in ubi_remove_volume()
436 struct ubi_device *ubi = vol->ubi; in ubi_resize_volume()
552 int ubi_rename_volumes(struct ubi_device *ubi, struct list_head *rename_list) in ubi_rename_volumes()
591 int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol) in ubi_add_volume()
637 void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol) in ubi_free_volume()
653 static int self_check_volume(struct ubi_device *ubi, int vol_id) in self_check_volume()
806 static int self_check_volumes(struct ubi_device *ubi) in self_check_volumes()
Dattach.c88 static int self_check_ai(struct ubi_device *ubi, struct ubi_attach_info *ai);
188 static int validate_vid_hdr(const struct ubi_device *ubi, in validate_vid_hdr()
320 int ubi_compare_lebs(struct ubi_device *ubi, const struct ubi_ainf_peb *aeb, in ubi_compare_lebs()
445 int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, in ubi_add_to_av()
658 static int early_erase_peb(struct ubi_device *ubi, in early_erase_peb()
705 struct ubi_ainf_peb *ubi_early_get_peb(struct ubi_device *ubi, in ubi_early_get_peb()
759 static int check_corruption(struct ubi_device *ubi, struct ubi_vid_hdr *vid_hdr, in check_corruption()
815 static int scan_peb(struct ubi_device *ubi, struct ubi_attach_info *ai, in scan_peb()
1064 static int late_analysis(struct ubi_device *ubi, struct ubi_attach_info *ai) in late_analysis()
1223 static int scan_all(struct ubi_device *ubi, struct ubi_attach_info *ai, in scan_all()
[all …]
Dfastmap.c26 static inline int *init_seen(struct ubi_device *ubi) in init_seen()
55 static inline void set_seen(struct ubi_device *ubi, int pnum, int *seen) in set_seen()
68 static int self_check_seen(struct ubi_device *ubi, int *seen) in self_check_seen()
89 size_t ubi_calc_fm_size(struct ubi_device *ubi) in ubi_calc_fm_size()
113 static struct ubi_vid_hdr *new_fm_vhdr(struct ubi_device *ubi, int vol_id) in new_fm_vhdr()
273 static int update_vol(struct ubi_device *ubi, struct ubi_attach_info *ai, in update_vol()
369 static int process_pool_aeb(struct ubi_device *ubi, struct ubi_attach_info *ai, in process_pool_aeb()
455 static int scan_pool(struct ubi_device *ubi, struct ubi_attach_info *ai, in scan_pool()
459 static int scan_pool(struct ubi_device *ubi, struct ubi_attach_info *ai, in scan_pool()
605 static int ubi_attach_fastmap(struct ubi_device *ubi, in ubi_attach_fastmap()
[all …]
/external/u-boot/cmd/
Dubi.c33 static struct ubi_device *ubi;
39 static void display_volume_info(struct ubi_device *ubi) in display_volume_info()
50 static void display_ubi_info(struct ubi_device *ubi) in display_ubi_info()
105 static int verify_mkvol_req(const struct ubi_device *ubi, in verify_mkvol_req()
/external/u-boot/include/
Dubi_uboot.h77 extern struct ubi_device *ubi_devices[];