Home
last modified time | relevance | path

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

/u-boot/drivers/mtd/ubi/
A Dwl.c195 static int do_work(struct ubi_device *ubi) in do_work()
407 static int prot_queue_del(struct ubi_device *ubi, int pnum) in prot_queue_del()
492 static void serve_prot_queue(struct ubi_device *ubi) in serve_prot_queue()
529 void ubi_do_worker(struct ubi_device *ubi) in ubi_do_worker()
1292 int ubi_wl_scrub_peb(struct ubi_device *ubi, int pnum)
1447 struct ubi_device *ubi = u; local
1501 static void shutdown_work(struct ubi_device *ubi)
1684 void ubi_wl_close(struct ubi_device *ubi)
1773 static int self_check_in_pq(const struct ubi_device *ubi,
1815 static int produce_free_peb(struct ubi_device *ubi)
[all …]
A 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 …]
A Ddebug.h76 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()
132 static inline int ubi_dbg_chk_fastmap(const struct ubi_device *ubi) in ubi_dbg_chk_fastmap()
137 static inline void ubi_enable_dbg_chk_fastmap(struct ubi_device *ubi) in ubi_enable_dbg_chk_fastmap()
A 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()
A Dkapi.c56 struct ubi_device *ubi; in ubi_get_device_info() local
126 struct ubi_device *ubi; in ubi_open_volume() local
244 struct ubi_device *ubi; in ubi_open_volume_nm() local
335 struct ubi_device *ubi = vol->ubi; in ubi_close_volume() local
379 struct ubi_device *ubi = vol->ubi; in leb_read_sanity_check() local
433 struct ubi_device *ubi = vol->ubi; in ubi_leb_read() local
473 struct ubi_device *ubi = vol->ubi; in ubi_leb_read_sg() local
525 struct ubi_device *ubi = vol->ubi; in ubi_leb_write() local
570 struct ubi_device *ubi = vol->ubi; in ubi_leb_change() local
769 struct ubi_device *ubi; in ubi_sync() local
[all …]
A Dio.c328 static int do_sync_erase(struct ubi_device *ubi, int pnum) in do_sync_erase()
408 static int torture_peb(struct ubi_device *ubi, int pnum) in torture_peb()
494 static int nor_erase_prepare(struct ubi_device *ubi, int pnum) in nor_erase_prepare()
606 int ubi_io_is_bad(const struct ubi_device *ubi, int pnum) in ubi_io_is_bad()
635 int ubi_io_mark_bad(const struct ubi_device *ubi, int pnum) in ubi_io_mark_bad()
664 static int validate_ec_hdr(const struct ubi_device *ubi, in validate_ec_hdr()
728 int ubi_io_read_ec_hdr(struct ubi_device *ubi, int pnum, in ubi_io_read_ec_hdr()
837 int ubi_io_write_ec_hdr(struct ubi_device *ubi, int pnum, in ubi_io_write_ec_hdr()
873 static int validate_vid_hdr(const struct ubi_device *ubi, in validate_vid_hdr()
1001 int ubi_io_read_vid_hdr(struct ubi_device *ubi, int pnum, in ubi_io_read_vid_hdr()
[all …]
A Dbuild.c269 struct ubi_device *ubi = ubi_devices[i]; in ubi_enumerate_volumes() local
290 struct ubi_device *ubi; in ubi_get_device() local
308 void ubi_put_device(struct ubi_device *ubi) in ubi_put_device()
326 struct ubi_device *ubi; in ubi_get_by_major() local
358 struct ubi_device *ubi = ubi_devices[i]; in ubi_major2num() local
376 struct ubi_device *ubi; in dev_attribute_show() local
475 static void ubi_sysfs_close(struct ubi_device *ubi) in ubi_sysfs_close()
485 static void kill_volumes(struct ubi_device *ubi) in kill_volumes()
584 static void uif_close(struct ubi_device *ubi) in uif_close()
884 struct ubi_device *ubi; in ubi_attach_mtd_dev() local
[all …]
A Deba.c55 unsigned long long ubi_next_sqnum(struct ubi_device *ubi) in ubi_next_sqnum()
74 static int ubi_get_compat(const struct ubi_device *ubi, int vol_id) in ubi_get_compat()
130 static struct ubi_ltree_entry *ltree_add_entry(struct ubi_device *ubi, in ltree_add_entry()
200 static int leb_read_lock(struct ubi_device *ubi, int vol_id, int lnum) in leb_read_lock()
217 static void leb_read_unlock(struct ubi_device *ubi, int vol_id, int lnum) in leb_read_unlock()
242 static int leb_write_lock(struct ubi_device *ubi, int vol_id, int lnum) in leb_write_lock()
319 int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_eba_unmap_leb()
494 int ubi_eba_read_leb_sg(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_eba_read_leb_sg()
1056 int ubi_eba_copy_leb(struct ubi_device *ubi, int from, int to, in ubi_eba_copy_leb()
1260 static void print_rsvd_warning(struct ubi_device *ubi, in print_rsvd_warning()
[all …]
A Dvtbl.c73 static int ubi_update_layout_vol(struct ubi_device *ubi) in ubi_update_layout_vol()
100 int ubi_change_vtbl_record(struct ubi_device *ubi, int idx, in ubi_change_vtbl_record()
131 int ubi_vtbl_rename_volumes(struct ubi_device *ubi, in ubi_vtbl_rename_volumes()
167 static int vtbl_check(const struct ubi_device *ubi,
299 static int create_vtbl(struct ubi_device *ubi, struct ubi_attach_info *ai,
372 static struct ubi_vtbl_record *process_lvol(struct ubi_device *ubi,
495 static struct ubi_vtbl_record *create_empty_lvol(struct ubi_device *ubi,
531 static int init_volumes(struct ubi_device *ubi,
715 static int check_attaching_info(const struct ubi_device *ubi,
780 int ubi_read_volume_table(struct ubi_device *ubi, struct ubi_attach_info *ai)
[all …]
A Dupd.c49 static int set_update_marker(struct ubi_device *ubi, struct ubi_volume *vol) in set_update_marker()
82 static int clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, in clear_update_marker()
122 int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_start_update()
176 int ubi_start_leb_change(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_start_leb_change()
227 static int write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, in write_leb()
273 int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_more_update_data()
393 int ubi_more_leb_change_data(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_more_leb_change_data()
A Dmisc.c25 int ubi_calc_data_len(const struct ubi_device *ubi, const void *buf, in ubi_calc_data_len()
51 int ubi_check_volume(struct ubi_device *ubi, int vol_id) in ubi_check_volume()
95 void ubi_update_reserved(struct ubi_device *ubi) in ubi_update_reserved()
114 void ubi_calculate_reserved(struct ubi_device *ubi) in ubi_calculate_reserved()
A Ddebug.c26 void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len) in ubi_dump_flash()
258 struct ubi_device *ubi; in dfs_file_read() local
321 struct ubi_device *ubi; in dfs_file_write() local
398 int ubi_debugfs_init_dev(struct ubi_device *ubi) in ubi_debugfs_init_dev()
502 void ubi_debugfs_exit_dev(struct ubi_device *ubi) in ubi_debugfs_exit_dev()
515 int ubi_dbg_power_cut(struct ubi_device *ubi, int caller) in ubi_dbg_power_cut()
550 int ubi_debugfs_init_dev(struct ubi_device *ubi) in ubi_debugfs_init_dev()
555 void ubi_debugfs_exit_dev(struct ubi_device *ubi) in ubi_debugfs_exit_dev()
559 int ubi_dbg_power_cut(struct ubi_device *ubi, int caller) in ubi_dbg_power_cut()
A Dvmt.c68 struct ubi_device *ubi; in vol_attribute_show() local
153 int ubi_create_volume(struct ubi_device *ubi, struct ubi_mkvol_req *req) in ubi_create_volume()
366 struct ubi_device *ubi = vol->ubi; in ubi_remove_volume() local
438 struct ubi_device *ubi = vol->ubi; in ubi_resize_volume() local
554 int ubi_rename_volumes(struct ubi_device *ubi, struct list_head *rename_list) in ubi_rename_volumes()
593 int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol) in ubi_add_volume()
639 void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol) in ubi_free_volume()
655 static int self_check_volume(struct ubi_device *ubi, int vol_id) in self_check_volume()
808 static int self_check_volumes(struct ubi_device *ubi) in self_check_volumes()
A Dfastmap.c30 static inline int *init_seen(struct ubi_device *ubi) in init_seen()
59 static inline void set_seen(struct ubi_device *ubi, int pnum, int *seen) in set_seen()
72 static int self_check_seen(struct ubi_device *ubi, int *seen) in self_check_seen()
93 size_t ubi_calc_fm_size(struct ubi_device *ubi) in ubi_calc_fm_size()
117 static struct ubi_vid_hdr *new_fm_vhdr(struct ubi_device *ubi, int vol_id) in new_fm_vhdr()
609 static int ubi_attach_fastmap(struct ubi_device *ubi, in ubi_attach_fastmap()
1106 static int ubi_write_fastmap(struct ubi_device *ubi, in ubi_write_fastmap()
1365 static int erase_block(struct ubi_device *ubi, int pnum) in erase_block()
1417 static int invalidate_fastmap(struct ubi_device *ubi) in invalidate_fastmap()
1474 static void return_fm_pebs(struct ubi_device *ubi, in return_fm_pebs()
[all …]
A Dattach.c191 static int validate_vid_hdr(const struct ubi_device *ubi, in validate_vid_hdr()
323 int ubi_compare_lebs(struct ubi_device *ubi, const struct ubi_ainf_peb *aeb, in ubi_compare_lebs()
448 int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, in ubi_add_to_av()
661 static int early_erase_peb(struct ubi_device *ubi, in early_erase_peb()
708 struct ubi_ainf_peb *ubi_early_get_peb(struct ubi_device *ubi, in ubi_early_get_peb()
818 static int scan_peb(struct ubi_device *ubi, struct ubi_attach_info *ai, in scan_peb()
1067 static int late_analysis(struct ubi_device *ubi, struct ubi_attach_info *ai) in late_analysis()
1226 static int scan_all(struct ubi_device *ubi, struct ubi_attach_info *ai, in scan_all()
1338 static int scan_fast(struct ubi_device *ubi, struct ubi_attach_info **ai) in scan_fast()
1400 int ubi_attach(struct ubi_device *ubi, int force_scan) in ubi_attach()
[all …]
A Dubi.h45 #define ubi_msg(ubi, fmt, ...) argument
47 #define ubi_msg(ubi, fmt, ...) printk(UBI_NAME_STR "%d: " fmt "\n", \ argument
317 struct ubi_device *ubi; member
838 #define ubi_create_gluebi(ubi, vol) 0 argument
960 #define ubi_for_each_free_peb(ubi, e, tmp_rb) \ argument
969 #define ubi_for_each_used_peb(ubi, e, tmp_rb) \ argument
978 #define ubi_for_each_scrub_peb(ubi, e, tmp_rb) \ argument
987 #define ubi_for_each_protected_peb(ubi, i, e) \ argument
1030 ubi_zalloc_vid_hdr(const struct ubi_device *ubi, gfp_t gfp_flags) in ubi_zalloc_vid_hdr()
1050 static inline void ubi_free_vid_hdr(const struct ubi_device *ubi, in ubi_free_vid_hdr()
[all …]
/u-boot/drivers/mtd/ubispl/
A Dubispl.c25 static size_t ubi_calc_fm_size(struct ubi_scan_info *ubi) in ubi_calc_fm_size()
40 static int ubi_io_read(struct ubi_scan_info *ubi, void *buf, int pnum, in ubi_io_read()
46 static int ubi_io_is_bad(struct ubi_scan_info *ubi, int peb) in ubi_io_is_bad()
98 static int vtbl_check(struct ubi_scan_info *ubi, in vtbl_check()
232 static int ubi_io_read_vid_hdr(struct ubi_scan_info *ubi, int pnum, in ubi_io_read_vid_hdr()
282 static int ubi_rescan_fm_vid_hdr(struct ubi_scan_info *ubi, in ubi_rescan_fm_vid_hdr()
307 static int ubi_add_peb_to_vol(struct ubi_scan_info *ubi, in ubi_add_peb_to_vol()
475 static int ubi_attach_fastmap(struct ubi_scan_info *ubi, in ubi_attach_fastmap()
685 static int ubi_scan_fastmap(struct ubi_scan_info *ubi, in ubi_scan_fastmap()
860 static void ipl_scan(struct ubi_scan_info *ubi) in ipl_scan()
[all …]
/u-boot/cmd/
A Dubi.c35 static struct ubi_device *ubi; variable
41 static void display_volume_info(struct ubi_device *ubi) in display_volume_info()
52 static void display_ubi_info(struct ubi_device *ubi) in display_ubi_info()
107 static int verify_mkvol_req(const struct ubi_device *ubi, in verify_mkvol_req()
/u-boot/include/
A Dubispl.h62 struct ubi_scan_info *ubi; member
A Ddfu.h69 unsigned int ubi; member
80 unsigned int ubi; member
95 unsigned int ubi; member
/u-boot/fs/ubifs/
A Dsuper.c2154 struct ubi_volume_desc *ubi; in open_ubi() local
2198 static struct ubifs_info *alloc_ubifs_info(struct ubi_volume_desc *ubi) in alloc_ubifs_info()
2454 struct ubi_volume_desc *ubi; in ubifs_mount() local
A Dubifs.h1959 struct ubi_volume_desc *ubi; member

Completed in 63 milliseconds