/drivers/mtd/ubi/ |
D | wl.c | 150 struct ubi_device *ubi = container_of(wrk, struct ubi_device, fm_work); in update_fastmap_work_fn() local 159 static int ubi_is_fm_block(struct ubi_device *ubi, int pnum) in ubi_is_fm_block() 173 static int ubi_is_fm_block(struct ubi_device *ubi, int pnum) in ubi_is_fm_block() 222 static int do_work(struct ubi_device *ubi) in do_work() 271 static int produce_free_peb(struct ubi_device *ubi) in produce_free_peb() 338 static void prot_queue_add(struct ubi_device *ubi, struct ubi_wl_entry *e) in prot_queue_add() 358 static struct ubi_wl_entry *find_wl_entry(struct ubi_device *ubi, in find_wl_entry() 401 static struct ubi_wl_entry *find_mean_wl_entry(struct ubi_device *ubi, in find_mean_wl_entry() 469 struct ubi_wl_entry *ubi_wl_get_fm_peb(struct ubi_device *ubi, int anchor) in ubi_wl_get_fm_peb() 502 static int __wl_get_peb(struct ubi_device *ubi) in __wl_get_peb() [all …]
|
D | build.c | 153 int ubi_volume_notify(struct ubi_device *ubi, struct ubi_volume *vol, int ntype) in ubi_volume_notify() 186 int ubi_notify_all(struct ubi_device *ubi, int ntype, struct notifier_block *nb) in ubi_notify_all() 234 struct ubi_device *ubi = ubi_devices[i]; in ubi_enumerate_volumes() local 255 struct ubi_device *ubi; in ubi_get_device() local 273 void ubi_put_device(struct ubi_device *ubi) in ubi_put_device() 291 struct ubi_device *ubi; in ubi_get_by_major() local 323 struct ubi_device *ubi = ubi_devices[i]; in ubi_major2num() local 340 struct ubi_device *ubi; in dev_attribute_show() local 388 struct ubi_device *ubi = container_of(dev, struct ubi_device, dev); in dev_release() local 402 static int ubi_sysfs_init(struct ubi_device *ubi, int *ref) in ubi_sysfs_init() [all …]
|
D | io.c | 126 int ubi_io_read(const struct ubi_device *ubi, void *buf, int pnum, int offset, in ubi_io_read() 234 int ubi_io_write(struct ubi_device *ubi, const void *buf, int pnum, int offset, in ubi_io_write() 331 static int do_sync_erase(struct ubi_device *ubi, int pnum) in do_sync_erase() 410 static int torture_peb(struct ubi_device *ubi, int pnum) in torture_peb() 496 static int nor_erase_prepare(struct ubi_device *ubi, int pnum) in nor_erase_prepare() 576 int ubi_io_sync_erase(struct ubi_device *ubi, int pnum, int torture) in ubi_io_sync_erase() 618 int ubi_io_is_bad(const struct ubi_device *ubi, int pnum) in ubi_io_is_bad() 647 int ubi_io_mark_bad(const struct ubi_device *ubi, int pnum) in ubi_io_mark_bad() 676 static int validate_ec_hdr(const struct ubi_device *ubi, in validate_ec_hdr() 740 int ubi_io_read_ec_hdr(struct ubi_device *ubi, int pnum, in ubi_io_read_ec_hdr() [all …]
|
D | eba.c | 60 unsigned long long ubi_next_sqnum(struct ubi_device *ubi) in ubi_next_sqnum() 79 static int ubi_get_compat(const struct ubi_device *ubi, int vol_id) in ubi_get_compat() 96 static struct ubi_ltree_entry *ltree_lookup(struct ubi_device *ubi, int vol_id, in ltree_lookup() 135 static struct ubi_ltree_entry *ltree_add_entry(struct ubi_device *ubi, in ltree_add_entry() 205 static int leb_read_lock(struct ubi_device *ubi, int vol_id, int lnum) in leb_read_lock() 222 static void leb_read_unlock(struct ubi_device *ubi, int vol_id, int lnum) in leb_read_unlock() 247 static int leb_write_lock(struct ubi_device *ubi, int vol_id, int lnum) in leb_write_lock() 269 static int leb_write_trylock(struct ubi_device *ubi, int vol_id, int lnum) in leb_write_trylock() 298 static void leb_write_unlock(struct ubi_device *ubi, int vol_id, int lnum) in leb_write_unlock() 324 int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_eba_unmap_leb() [all …]
|
D | kapi.c | 39 void ubi_do_get_device_info(struct ubi_device *ubi, struct ubi_device_info *di) in ubi_do_get_device_info() 61 struct ubi_device *ubi; in ubi_get_device_info() local 80 void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_do_get_volume_info() 131 struct ubi_device *ubi; in ubi_open_volume() local 242 struct ubi_device *ubi; in ubi_open_volume_nm() local 331 struct ubi_device *ubi = vol->ubi; in ubi_close_volume() local 388 struct ubi_device *ubi = vol->ubi; in ubi_leb_read() local 451 struct ubi_device *ubi = vol->ubi; in ubi_leb_write() local 496 struct ubi_device *ubi = vol->ubi; in ubi_leb_change() local 536 struct ubi_device *ubi = vol->ubi; in ubi_leb_erase() local [all …]
|
D | vtbl.c | 80 int ubi_change_vtbl_record(struct ubi_device *ubi, int idx, in ubi_change_vtbl_record() 122 int ubi_vtbl_rename_volumes(struct ubi_device *ubi, in ubi_vtbl_rename_volumes() 172 static int vtbl_check(const struct ubi_device *ubi, in vtbl_check() 300 static int create_vtbl(struct ubi_device *ubi, struct ubi_attach_info *ai, in create_vtbl() 373 static struct ubi_vtbl_record *process_lvol(struct ubi_device *ubi, in process_lvol() 496 static struct ubi_vtbl_record *create_empty_lvol(struct ubi_device *ubi, in create_empty_lvol() 532 static int init_volumes(struct ubi_device *ubi, in init_volumes() 713 static int check_attaching_info(const struct ubi_device *ubi, in check_attaching_info() 777 int ubi_read_volume_table(struct ubi_device *ubi, struct ubi_attach_info *ai) in ubi_read_volume_table() 859 static void self_vtbl_check(const struct ubi_device *ubi) in self_vtbl_check()
|
D | vmt.c | 72 struct ubi_device *ubi; in vol_attribute_show() local 144 static int volume_sysfs_init(struct ubi_device *ubi, struct ubi_volume *vol) in volume_sysfs_init() 201 int ubi_create_volume(struct ubi_device *ubi, struct ubi_mkvol_req *req) in ubi_create_volume() 406 struct ubi_device *ubi = vol->ubi; in ubi_remove_volume() local 478 struct ubi_device *ubi = vol->ubi; in ubi_resize_volume() local 594 int ubi_rename_volumes(struct ubi_device *ubi, struct list_head *rename_list) in ubi_rename_volumes() 633 int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol) in ubi_add_volume() 683 void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol) in ubi_free_volume() 699 static int self_check_volume(struct ubi_device *ubi, int vol_id) in self_check_volume() 846 static int self_check_volumes(struct ubi_device *ubi) in self_check_volumes()
|
D | upd.c | 54 static int set_update_marker(struct ubi_device *ubi, struct ubi_volume *vol) in set_update_marker() 87 static int clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, in clear_update_marker() 127 int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_start_update() 179 int ubi_start_leb_change(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_start_leb_change() 230 static int write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, in write_leb() 276 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()
|
D | debug.h | 75 static inline int ubi_dbg_is_bgt_disabled(const struct ubi_device *ubi) in ubi_dbg_is_bgt_disabled() 86 static inline int ubi_dbg_is_bitflip(const struct ubi_device *ubi) in ubi_dbg_is_bitflip() 100 static inline int ubi_dbg_is_write_failure(const struct ubi_device *ubi) in ubi_dbg_is_write_failure() 114 static inline int ubi_dbg_is_erase_failure(const struct ubi_device *ubi) in ubi_dbg_is_erase_failure() 121 static inline int ubi_dbg_chk_io(const struct ubi_device *ubi) in ubi_dbg_chk_io() 126 static inline int ubi_dbg_chk_gen(const struct ubi_device *ubi) in ubi_dbg_chk_gen()
|
D | attach.c | 322 int ubi_compare_lebs(struct ubi_device *ubi, const struct ubi_ainf_peb *aeb, in ubi_compare_lebs() 447 int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, in ubi_add_to_av() 660 static int early_erase_peb(struct ubi_device *ubi, in early_erase_peb() 706 struct ubi_ainf_peb *ubi_early_get_peb(struct ubi_device *ubi, in ubi_early_get_peb() 760 static int check_corruption(struct ubi_device *ubi, struct ubi_vid_hdr *vid_hdr, in check_corruption() 816 static int scan_peb(struct ubi_device *ubi, struct ubi_attach_info *ai, in scan_peb() 1065 static int late_analysis(struct ubi_device *ubi, struct ubi_attach_info *ai) in late_analysis() 1225 static int scan_all(struct ubi_device *ubi, struct ubi_attach_info *ai, in scan_all() 1313 static int scan_fast(struct ubi_device *ubi, struct ubi_attach_info *ai) in scan_fast() 1394 int ubi_attach(struct ubi_device *ubi, int force_scan) in ubi_attach() [all …]
|
D | misc.c | 35 int ubi_calc_data_len(const struct ubi_device *ubi, const void *buf, in ubi_calc_data_len() 61 int ubi_check_volume(struct ubi_device *ubi, int vol_id) in ubi_check_volume() 103 void ubi_update_reserved(struct ubi_device *ubi) in ubi_update_reserved() 122 void ubi_calculate_reserved(struct ubi_device *ubi) in ubi_calculate_reserved()
|
D | fastmap.c | 23 size_t ubi_calc_fm_size(struct ubi_device *ubi) in ubi_calc_fm_size() 46 static struct ubi_vid_hdr *new_fm_vhdr(struct ubi_device *ubi, int vol_id) in new_fm_vhdr() 203 static int update_vol(struct ubi_device *ubi, struct ubi_attach_info *ai, in update_vol() 299 static int process_pool_aeb(struct ubi_device *ubi, struct ubi_attach_info *ai, in process_pool_aeb() 383 static int scan_pool(struct ubi_device *ubi, struct ubi_attach_info *ai, in scan_pool() 533 static int ubi_attach_fastmap(struct ubi_device *ubi, in ubi_attach_fastmap() 848 int ubi_scan_fastmap(struct ubi_device *ubi, struct ubi_attach_info *ai, in ubi_scan_fastmap() 1062 static int ubi_write_fastmap(struct ubi_device *ubi, in ubi_write_fastmap() 1294 static int erase_block(struct ubi_device *ubi, int pnum) in erase_block() 1341 static int invalidate_fastmap(struct ubi_device *ubi, in invalidate_fastmap() [all …]
|
D | cdev.c | 196 struct ubi_device *ubi = desc->vol->ubi; in vol_cdev_fsync() local 211 struct ubi_device *ubi = vol->ubi; in vol_cdev_read() local 288 struct ubi_device *ubi = vol->ubi; in vol_cdev_direct_write() local 364 struct ubi_device *ubi = vol->ubi; in vol_cdev_write() local 415 struct ubi_device *ubi = vol->ubi; in vol_cdev_ioctl() local 602 static int verify_mkvol_req(const struct ubi_device *ubi, in verify_mkvol_req() 659 static int verify_rsvol_req(const struct ubi_device *ubi, in verify_rsvol_req() 681 static int rename_volumes(struct ubi_device *ubi, in rename_volumes() 836 struct ubi_device *ubi; in ubi_cdev_ioctl() local
|
D | debug.c | 34 void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len) in ubi_dump_flash() 264 struct ubi_device *ubi; in dfs_file_read() local 309 struct ubi_device *ubi; in dfs_file_write() local 369 int ubi_debugfs_init_dev(struct ubi_device *ubi) in ubi_debugfs_init_dev() 445 void ubi_debugfs_exit_dev(struct ubi_device *ubi) in ubi_debugfs_exit_dev()
|
D | ubi.h | 306 struct ubi_device *ubi; member 906 ubi_zalloc_vid_hdr(const struct ubi_device *ubi, gfp_t gfp_flags) in ubi_zalloc_vid_hdr() 926 static inline void ubi_free_vid_hdr(const struct ubi_device *ubi, in ubi_free_vid_hdr() 942 static inline int ubi_io_read_data(const struct ubi_device *ubi, void *buf, in ubi_io_read_data() 954 static inline int ubi_io_write_data(struct ubi_device *ubi, const void *buf, in ubi_io_write_data() 965 static inline void ubi_ro_mode(struct ubi_device *ubi) in ubi_ro_mode() 979 static inline int vol_id2idx(const struct ubi_device *ubi, int vol_id) in vol_id2idx() 992 static inline int idx2vol_id(const struct ubi_device *ubi, int idx) in idx2vol_id()
|