Home
last modified time | relevance | path

Searched defs:ubi (Results 1 – 22 of 22) sorted by relevance

/external/u-boot/drivers/mtd/ubi/
Dwl.c180 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()
430 static int sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, in sync_erase()
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()
[all …]
Dfastmap-wl.c20 struct ubi_device *ubi = container_of(wrk, struct ubi_device, fm_work); in update_fastmap_work_fn() local
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()
364 static void ubi_fastmap_close(struct ubi_device *ubi) in ubi_fastmap_close()
[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() local
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() local
243 struct ubi_device *ubi; in ubi_open_volume_nm() local
334 struct ubi_device *ubi = vol->ubi; in ubi_close_volume() local
378 struct ubi_device *ubi = vol->ubi; in leb_read_sanity_check() local
432 struct ubi_device *ubi = vol->ubi; in ubi_leb_read() local
472 struct ubi_device *ubi = vol->ubi; in ubi_leb_read_sg() local
524 struct ubi_device *ubi = vol->ubi; in ubi_leb_write() local
[all …]
Ddebug.h66 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()
91 static inline int ubi_dbg_is_write_failure(const struct ubi_device *ubi) in ubi_dbg_is_write_failure()
105 static inline int ubi_dbg_is_erase_failure(const struct ubi_device *ubi) in ubi_dbg_is_erase_failure()
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()
Dio.c119 int ubi_io_read(const struct ubi_device *ubi, void *buf, int pnum, int offset, in ubi_io_read()
228 int ubi_io_write(struct ubi_device *ubi, const void *buf, int pnum, int offset, in ubi_io_write()
325 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()
561 int ubi_io_sync_erase(struct ubi_device *ubi, int pnum, int torture) in ubi_io_sync_erase()
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()
[all …]
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()
88 static struct ubi_ltree_entry *ltree_lookup(struct ubi_device *ubi, int vol_id, in ltree_lookup()
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()
261 static int leb_write_trylock(struct ubi_device *ubi, int vol_id, int lnum) in leb_write_trylock()
290 static void leb_write_unlock(struct ubi_device *ubi, int vol_id, int lnum) in leb_write_unlock()
316 int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_eba_unmap_leb()
[all …]
Dbuild.c182 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() local
288 struct ubi_device *ubi; in ubi_get_device() local
306 void ubi_put_device(struct ubi_device *ubi) in ubi_put_device()
324 struct ubi_device *ubi; in ubi_get_by_major() local
356 struct ubi_device *ubi = ubi_devices[i]; in ubi_major2num() local
374 struct ubi_device *ubi; in dev_attribute_show() local
438 struct ubi_device *ubi = container_of(dev, struct ubi_device, dev); in dev_release() local
452 static int ubi_sysfs_init(struct ubi_device *ubi, int *ref) in ubi_sysfs_init()
[all …]
Dvtbl.c69 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,
773 int ubi_read_volume_table(struct ubi_device *ubi, struct ubi_attach_info *ai)
[all …]
Dwl.h13 static inline void ubi_fastmap_init(struct ubi_device *ubi, int *count) in ubi_fastmap_init()
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()
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()
255 struct ubi_device *ubi; in dfs_file_read() local
318 struct ubi_device *ubi; in dfs_file_write() local
395 int ubi_debugfs_init_dev(struct ubi_device *ubi) in ubi_debugfs_init_dev()
499 void ubi_debugfs_exit_dev(struct ubi_device *ubi) in ubi_debugfs_exit_dev()
512 int ubi_dbg_power_cut(struct ubi_device *ubi, int caller) in ubi_dbg_power_cut()
547 int ubi_debugfs_init_dev(struct ubi_device *ubi) in ubi_debugfs_init_dev()
552 void ubi_debugfs_exit_dev(struct ubi_device *ubi) in ubi_debugfs_exit_dev()
556 int ubi_dbg_power_cut(struct ubi_device *ubi, int caller) in ubi_dbg_power_cut()
Dvmt.c66 struct ubi_device *ubi; in vol_attribute_show() local
151 int ubi_create_volume(struct ubi_device *ubi, struct ubi_mkvol_req *req) in ubi_create_volume()
357 struct ubi_device *ubi = vol->ubi; in ubi_remove_volume() local
429 struct ubi_device *ubi = vol->ubi; in ubi_resize_volume() local
545 int ubi_rename_volumes(struct ubi_device *ubi, struct list_head *rename_list) in ubi_rename_volumes()
584 int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol) in ubi_add_volume()
630 void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol) in ubi_free_volume()
646 static int self_check_volume(struct ubi_device *ubi, int vol_id) in self_check_volume()
794 static int self_check_volumes(struct ubi_device *ubi) in self_check_volumes()
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()
Dfastmap.c25 static inline int *init_seen(struct ubi_device *ubi) in init_seen()
54 static inline void set_seen(struct ubi_device *ubi, int pnum, int *seen) in set_seen()
67 static int self_check_seen(struct ubi_device *ubi, int *seen) in self_check_seen()
88 size_t ubi_calc_fm_size(struct ubi_device *ubi) in ubi_calc_fm_size()
112 static struct ubi_vid_hdr *new_fm_vhdr(struct ubi_device *ubi, int vol_id) in new_fm_vhdr()
272 static int update_vol(struct ubi_device *ubi, struct ubi_attach_info *ai, in update_vol()
368 static int process_pool_aeb(struct ubi_device *ubi, struct ubi_attach_info *ai, in process_pool_aeb()
454 static int scan_pool(struct ubi_device *ubi, struct ubi_attach_info *ai, in scan_pool()
604 static int ubi_attach_fastmap(struct ubi_device *ubi, in ubi_attach_fastmap()
877 int ubi_scan_fastmap(struct ubi_device *ubi, struct ubi_attach_info *ai, in ubi_scan_fastmap()
[all …]
Dattach.c187 static int validate_vid_hdr(const struct ubi_device *ubi, in validate_vid_hdr()
319 int ubi_compare_lebs(struct ubi_device *ubi, const struct ubi_ainf_peb *aeb, in ubi_compare_lebs()
444 int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, in ubi_add_to_av()
657 static int early_erase_peb(struct ubi_device *ubi, in early_erase_peb()
704 struct ubi_ainf_peb *ubi_early_get_peb(struct ubi_device *ubi, in ubi_early_get_peb()
758 static int check_corruption(struct ubi_device *ubi, struct ubi_vid_hdr *vid_hdr, in check_corruption()
814 static int scan_peb(struct ubi_device *ubi, struct ubi_attach_info *ai, in scan_peb()
1063 static int late_analysis(struct ubi_device *ubi, struct ubi_attach_info *ai) in late_analysis()
1222 static int scan_all(struct ubi_device *ubi, struct ubi_attach_info *ai, in scan_all()
1334 static int scan_fast(struct ubi_device *ubi, struct ubi_attach_info **ai) in scan_fast()
[all …]
Dubi.h45 #define ubi_msg(ubi, fmt, ...) argument
47 #define ubi_msg(ubi, fmt, ...) printk(UBI_NAME_STR "%d: " fmt "\n", \ argument
52 #define ubi_warn(ubi, fmt, ...) pr_warn(UBI_NAME_STR "%d warning: %s: " fmt "\n", \ argument
55 #define ubi_err(ubi, fmt, ...) pr_err(UBI_NAME_STR "%d error: %s: " fmt "\n", \ argument
314 struct ubi_device *ubi; member
834 #define ubi_create_gluebi(ubi, vol) 0 argument
928 static inline int ubi_update_fastmap(struct ubi_device *ubi) { return 0; } in ubi_update_fastmap()
956 #define ubi_for_each_free_peb(ubi, e, tmp_rb) \ argument
965 #define ubi_for_each_used_peb(ubi, e, tmp_rb) \ argument
974 #define ubi_for_each_scrub_peb(ubi, e, tmp_rb) \ argument
[all …]
/external/u-boot/drivers/mtd/ubispl/
Dubispl.c22 static size_t ubi_calc_fm_size(struct ubi_scan_info *ubi) in ubi_calc_fm_size()
37 static int ubi_io_read(struct ubi_scan_info *ubi, void *buf, int pnum, in ubi_io_read()
43 static int ubi_io_is_bad(struct ubi_scan_info *ubi, int peb) in ubi_io_is_bad()
48 static int ubi_io_read_vid_hdr(struct ubi_scan_info *ubi, int pnum, in ubi_io_read_vid_hdr()
98 static int ubi_rescan_fm_vid_hdr(struct ubi_scan_info *ubi, in ubi_rescan_fm_vid_hdr()
123 static int ubi_add_peb_to_vol(struct ubi_scan_info *ubi, in ubi_add_peb_to_vol()
193 static int ubi_scan_vid_hdr(struct ubi_scan_info *ubi, struct ubi_vid_hdr *vh, in ubi_scan_vid_hdr()
225 static int assign_aeb_to_av(struct ubi_scan_info *ubi, u32 pnum, u32 lnum, in assign_aeb_to_av()
247 static int scan_pool(struct ubi_scan_info *ubi, __be32 *pebs, int pool_size) in scan_pool()
281 static int ubi_attach_fastmap(struct ubi_scan_info *ubi, in ubi_attach_fastmap()
[all …]
/external/u-boot/cmd/
Dubi.c36 static struct ubi_device *ubi; variable
54 static void display_volume_info(struct ubi_device *ubi) in display_volume_info()
65 static void display_ubi_info(struct ubi_device *ubi) in display_ubi_info()
121 static int verify_mkvol_req(const struct ubi_device *ubi, in verify_mkvol_req()
/external/u-boot/include/
Dubispl.h60 struct ubi_scan_info *ubi; member
Ddfu.h66 unsigned int ubi; member
/external/u-boot/fs/ubifs/
Dsuper.c2150 struct ubi_volume_desc *ubi; in open_ubi() local
2194 static struct ubifs_info *alloc_ubifs_info(struct ubi_volume_desc *ubi) in alloc_ubifs_info()
2450 struct ubi_volume_desc *ubi; in ubifs_mount() local
Dubifs.h1959 struct ubi_volume_desc *ubi; member