/linux-4.1.27/drivers/mtd/ubi/ |
H A D | wl.h | 9 static inline void ubi_fastmap_init(struct ubi_device *ubi, int *count) ubi_fastmap_init() argument 20 static inline void ubi_fastmap_close(struct ubi_device *ubi) { } ubi_fastmap_init() argument 21 static inline void ubi_fastmap_init(struct ubi_device *ubi, int *count) { } may_reserve_for_fm() argument 22 static struct ubi_wl_entry *may_reserve_for_fm(struct ubi_device *ubi, may_reserve_for_fm() argument
|
H A D | misc.c | 35 int ubi_calc_data_len(const struct ubi_device *ubi, const void *buf, ubi_calc_data_len() argument 61 int ubi_check_volume(struct ubi_device *ubi, int vol_id) ubi_check_volume() argument 105 void ubi_update_reserved(struct ubi_device *ubi) ubi_update_reserved() argument 124 void ubi_calculate_reserved(struct ubi_device *ubi) ubi_calculate_reserved() argument
|
H A D | debug.h | 75 static inline int ubi_dbg_is_bgt_disabled(const struct ubi_device *ubi) ubi_dbg_is_bgt_disabled() argument 86 static inline int ubi_dbg_is_bitflip(const struct ubi_device *ubi) ubi_dbg_is_bitflip() argument 100 static inline int ubi_dbg_is_write_failure(const struct ubi_device *ubi) ubi_dbg_is_write_failure() argument 114 static inline int ubi_dbg_is_erase_failure(const struct ubi_device *ubi) ubi_dbg_is_erase_failure() argument 121 static inline int ubi_dbg_chk_io(const struct ubi_device *ubi) ubi_dbg_chk_io() argument 126 static inline int ubi_dbg_chk_gen(const struct ubi_device *ubi) ubi_dbg_chk_gen() argument 131 static inline int ubi_dbg_chk_fastmap(const struct ubi_device *ubi) ubi_dbg_chk_fastmap() argument 136 static inline void ubi_enable_dbg_chk_fastmap(struct ubi_device *ubi) ubi_enable_dbg_chk_fastmap() argument
|
H A D | upd.c | 54 static int set_update_marker(struct ubi_device *ubi, struct ubi_volume *vol) set_update_marker() argument 87 static int clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, clear_update_marker() argument 127 int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol, ubi_start_update() argument 181 int ubi_start_leb_change(struct ubi_device *ubi, struct ubi_volume *vol, ubi_start_leb_change() argument 232 static int write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, write_leb() argument 278 int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol, ubi_more_update_data() argument 393 int ubi_more_leb_change_data(struct ubi_device *ubi, struct ubi_volume *vol, ubi_more_leb_change_data() argument
|
H A D | fastmap-wl.c | 23 struct ubi_device *ubi = container_of(wrk, struct ubi_device, fm_work); update_fastmap_work_fn() local 56 static void return_unused_pool_pebs(struct ubi_device *ubi, return_unused_pool_pebs() argument 90 struct ubi_wl_entry *ubi_wl_get_fm_peb(struct ubi_device *ubi, int anchor) ubi_wl_get_fm_peb() argument 119 void ubi_refill_pools(struct ubi_device *ubi) ubi_refill_pools() argument 182 int ubi_wl_get_peb(struct ubi_device *ubi) ubi_wl_get_peb() argument 231 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi) get_peb_for_wl() argument 255 int ubi_ensure_anchor_pebs(struct ubi_device *ubi) ubi_ensure_anchor_pebs() argument 291 int ubi_wl_put_fm_peb(struct ubi_device *ubi, struct ubi_wl_entry *fm_e, ubi_wl_put_fm_peb() argument 330 static void ubi_fastmap_close(struct ubi_device *ubi) ubi_fastmap_close() argument 353 static struct ubi_wl_entry *may_reserve_for_fm(struct ubi_device *ubi, may_reserve_for_fm() argument
|
H A D | cdev.c | 174 struct ubi_device *ubi = desc->vol->ubi; vol_cdev_fsync() local 189 struct ubi_device *ubi = vol->ubi; vol_cdev_read() local 266 struct ubi_device *ubi = vol->ubi; vol_cdev_direct_write() local 342 struct ubi_device *ubi = vol->ubi; vol_cdev_write() local 393 struct ubi_device *ubi = vol->ubi; vol_cdev_ioctl() local 602 static int verify_mkvol_req(const struct ubi_device *ubi, verify_mkvol_req() argument 659 static int verify_rsvol_req(const struct ubi_device *ubi, verify_rsvol_req() argument 681 static int rename_volumes(struct ubi_device *ubi, rename_volumes() argument 837 struct ubi_device *ubi; ubi_cdev_ioctl() local
|
H A D | debug.c | 34 void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len) ubi_dump_flash() argument 264 struct ubi_device *ubi; dfs_file_read() local 327 struct ubi_device *ubi; dfs_file_write() local 404 int ubi_debugfs_init_dev(struct ubi_device *ubi) ubi_debugfs_init_dev() argument 508 void ubi_debugfs_exit_dev(struct ubi_device *ubi) ubi_debugfs_exit_dev() argument 521 int ubi_dbg_power_cut(struct ubi_device *ubi, int caller) ubi_dbg_power_cut() argument
|
H A D | eba.c | 60 unsigned long long ubi_next_sqnum(struct ubi_device *ubi) ubi_next_sqnum() argument 79 static int ubi_get_compat(const struct ubi_device *ubi, int vol_id) ubi_get_compat() argument 96 static struct ubi_ltree_entry *ltree_lookup(struct ubi_device *ubi, int vol_id, ltree_lookup() argument 135 static struct ubi_ltree_entry *ltree_add_entry(struct ubi_device *ubi, ltree_add_entry() argument 205 static int leb_read_lock(struct ubi_device *ubi, int vol_id, int lnum) leb_read_lock() argument 222 static void leb_read_unlock(struct ubi_device *ubi, int vol_id, int lnum) leb_read_unlock() argument 247 static int leb_write_lock(struct ubi_device *ubi, int vol_id, int lnum) leb_write_lock() argument 269 static int leb_write_trylock(struct ubi_device *ubi, int vol_id, int lnum) leb_write_trylock() argument 298 static void leb_write_unlock(struct ubi_device *ubi, int vol_id, int lnum) leb_write_unlock() argument 324 int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, ubi_eba_unmap_leb() argument 372 int ubi_eba_read_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, ubi_eba_read_leb() argument 515 int ubi_eba_read_leb_sg(struct ubi_device *ubi, struct ubi_volume *vol, ubi_eba_read_leb_sg() argument 572 static int recover_peb(struct ubi_device *ubi, int pnum, int vol_id, int lnum, recover_peb() argument 677 int ubi_eba_write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, ubi_eba_write_leb() argument 810 int ubi_eba_write_leb_st(struct ubi_device *ubi, struct ubi_volume *vol, ubi_eba_write_leb_st() argument 927 int ubi_eba_atomic_leb_change(struct ubi_device *ubi, struct ubi_volume *vol, ubi_eba_atomic_leb_change() argument 1076 int ubi_eba_copy_leb(struct ubi_device *ubi, int from, int to, ubi_eba_copy_leb() argument 1280 static void print_rsvd_warning(struct ubi_device *ubi, print_rsvd_warning() argument 1313 int self_check_eba(struct ubi_device *ubi, struct ubi_attach_info *ai_fastmap, self_check_eba() argument 1407 int ubi_eba_init(struct ubi_device *ubi, struct ubi_attach_info *ai) ubi_eba_init() argument
|
H A D | io.c | 126 int ubi_io_read(const struct ubi_device *ubi, void *buf, int pnum, int offset, ubi_io_read() argument 235 int ubi_io_write(struct ubi_device *ubi, const void *buf, int pnum, int offset, ubi_io_write() argument 332 static int do_sync_erase(struct ubi_device *ubi, int pnum) do_sync_erase() argument 412 static int torture_peb(struct ubi_device *ubi, int pnum) torture_peb() argument 498 static int nor_erase_prepare(struct ubi_device *ubi, int pnum) nor_erase_prepare() argument 568 int ubi_io_sync_erase(struct ubi_device *ubi, int pnum, int torture) ubi_io_sync_erase() argument 610 int ubi_io_is_bad(const struct ubi_device *ubi, int pnum) ubi_io_is_bad() argument 639 int ubi_io_mark_bad(const struct ubi_device *ubi, int pnum) ubi_io_mark_bad() argument 668 static int validate_ec_hdr(const struct ubi_device *ubi, validate_ec_hdr() argument 732 int ubi_io_read_ec_hdr(struct ubi_device *ubi, int pnum, ubi_io_read_ec_hdr() argument 841 int ubi_io_write_ec_hdr(struct ubi_device *ubi, int pnum, ubi_io_write_ec_hdr() argument 877 static int validate_vid_hdr(const struct ubi_device *ubi, validate_vid_hdr() argument 1010 int ubi_io_read_vid_hdr(struct ubi_device *ubi, int pnum, ubi_io_read_vid_hdr() argument 1094 int ubi_io_write_vid_hdr(struct ubi_device *ubi, int pnum, ubi_io_write_vid_hdr() argument 1134 static int self_check_not_bad(const struct ubi_device *ubi, int pnum) self_check_not_bad() argument 1159 static int self_check_ec_hdr(const struct ubi_device *ubi, int pnum, self_check_ec_hdr() argument 1197 static int self_check_peb_ec_hdr(const struct ubi_device *ubi, int pnum) self_check_peb_ec_hdr() argument 1242 static int self_check_vid_hdr(const struct ubi_device *ubi, int pnum, self_check_vid_hdr() argument 1282 static int self_check_peb_vid_hdr(const struct ubi_device *ubi, int pnum) self_check_peb_vid_hdr() argument 1333 static int self_check_write(struct ubi_device *ubi, const void *buf, int pnum, self_check_write() argument 1398 int ubi_self_check_all_ff(struct ubi_device *ubi, int pnum, int offset, int len) ubi_self_check_all_ff() argument
|
H A D | kapi.c | 39 void ubi_do_get_device_info(struct ubi_device *ubi, struct ubi_device_info *di) ubi_do_get_device_info() argument 61 struct ubi_device *ubi; ubi_get_device_info() local 80 void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol, ubi_do_get_volume_info() argument 131 struct ubi_device *ubi; ubi_open_volume() local 249 struct ubi_device *ubi; ubi_open_volume_nm() local 338 struct ubi_device *ubi = vol->ubi; ubi_close_volume() local 382 struct ubi_device *ubi = vol->ubi; leb_read_sanity_check() local 436 struct ubi_device *ubi = vol->ubi; ubi_leb_read() local 476 struct ubi_device *ubi = vol->ubi; ubi_leb_read_sg() local 527 struct ubi_device *ubi = vol->ubi; ubi_leb_write() local 572 struct ubi_device *ubi = vol->ubi; ubi_leb_change() local 612 struct ubi_device *ubi = vol->ubi; ubi_leb_erase() local 673 struct ubi_device *ubi = vol->ubi; ubi_leb_unmap() local 709 struct ubi_device *ubi = vol->ubi; ubi_leb_map() local 771 struct ubi_device *ubi; ubi_sync() local 797 struct ubi_device *ubi; ubi_flush() local
|
H A D | vmt.c | 72 struct ubi_device *ubi; vol_attribute_show() local 144 static int volume_sysfs_init(struct ubi_device *ubi, struct ubi_volume *vol) volume_sysfs_init() argument 201 int ubi_create_volume(struct ubi_device *ubi, struct ubi_mkvol_req *req) ubi_create_volume() argument 408 struct ubi_device *ubi = vol->ubi; ubi_remove_volume() local 480 struct ubi_device *ubi = vol->ubi; ubi_resize_volume() local 596 int ubi_rename_volumes(struct ubi_device *ubi, struct list_head *rename_list) ubi_rename_volumes() argument 635 int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol) ubi_add_volume() argument 685 void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol) ubi_free_volume() argument 701 static int self_check_volume(struct ubi_device *ubi, int vol_id) self_check_volume() argument 849 static int self_check_volumes(struct ubi_device *ubi) self_check_volumes() argument
|
H A D | vtbl.c | 83 int ubi_change_vtbl_record(struct ubi_device *ubi, int idx, ubi_change_vtbl_record() argument 121 int ubi_vtbl_rename_volumes(struct ubi_device *ubi, ubi_vtbl_rename_volumes() argument 167 static int vtbl_check(const struct ubi_device *ubi, vtbl_check() argument 295 static int create_vtbl(struct ubi_device *ubi, struct ubi_attach_info *ai, create_vtbl() argument 368 static struct ubi_vtbl_record *process_lvol(struct ubi_device *ubi, process_lvol() argument 491 static struct ubi_vtbl_record *create_empty_lvol(struct ubi_device *ubi, create_empty_lvol() argument 527 static int init_volumes(struct ubi_device *ubi, init_volumes() argument 709 static int check_attaching_info(const struct ubi_device *ubi, check_attaching_info() argument 774 int ubi_read_volume_table(struct ubi_device *ubi, struct ubi_attach_info *ai) ubi_read_volume_table() argument 856 static void self_vtbl_check(const struct ubi_device *ubi) self_vtbl_check() argument
|
H A D | attach.c | 192 static int validate_vid_hdr(const struct ubi_device *ubi, validate_vid_hdr() argument 324 int ubi_compare_lebs(struct ubi_device *ubi, const struct ubi_ainf_peb *aeb, ubi_compare_lebs() argument 449 int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, ubi_add_to_av() argument 662 static int early_erase_peb(struct ubi_device *ubi, early_erase_peb() argument 709 struct ubi_ainf_peb *ubi_early_get_peb(struct ubi_device *ubi, ubi_early_get_peb() argument 763 static int check_corruption(struct ubi_device *ubi, struct ubi_vid_hdr *vid_hdr, check_corruption() argument 819 static int scan_peb(struct ubi_device *ubi, struct ubi_attach_info *ai, scan_peb() argument 1068 static int late_analysis(struct ubi_device *ubi, struct ubi_attach_info *ai) late_analysis() argument 1228 static int scan_all(struct ubi_device *ubi, struct ubi_attach_info *ai, scan_all() argument 1340 static int scan_fast(struct ubi_device *ubi, struct ubi_attach_info **ai) scan_fast() argument 1402 int ubi_attach(struct ubi_device *ubi, int force_scan) ubi_attach() argument 1505 static int self_check_ai(struct ubi_device *ubi, struct ubi_attach_info *ai) self_check_ai() argument
|
H A D | wl.c | 188 static void wl_entry_destroy(struct ubi_device *ubi, struct ubi_wl_entry *e) wl_entry_destroy() argument 201 static int do_work(struct ubi_device *ubi) do_work() argument 290 static void prot_queue_add(struct ubi_device *ubi, struct ubi_wl_entry *e) prot_queue_add() argument 310 static struct ubi_wl_entry *find_wl_entry(struct ubi_device *ubi, find_wl_entry() argument 353 static struct ubi_wl_entry *find_mean_wl_entry(struct ubi_device *ubi, find_mean_wl_entry() argument 382 static struct ubi_wl_entry *wl_get_wle(struct ubi_device *ubi) wl_get_wle() argument 413 static int prot_queue_del(struct ubi_device *ubi, int pnum) prot_queue_del() argument 438 static int sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, sync_erase() argument 498 static void serve_prot_queue(struct ubi_device *ubi) serve_prot_queue() argument 542 static void __schedule_ubi_work(struct ubi_device *ubi, struct ubi_work *wrk) __schedule_ubi_work() argument 561 static void schedule_ubi_work(struct ubi_device *ubi, struct ubi_work *wrk) schedule_ubi_work() argument 582 static int schedule_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, schedule_erase() argument 615 static int do_sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, do_sync_erase() argument 645 static int wear_leveling_worker(struct ubi_device *ubi, struct ubi_work *wrk, argument 955 static int ensure_wear_leveling(struct ubi_device *ubi, int nested) ensure_wear_leveling() argument 1028 static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk, erase_worker() argument 1166 int ubi_wl_put_peb(struct ubi_device *ubi, int vol_id, int lnum, ubi_wl_put_peb() argument 1258 int ubi_wl_scrub_peb(struct ubi_device *ubi, int pnum) ubi_wl_scrub_peb() argument 1323 int ubi_wl_flush(struct ubi_device *ubi, int vol_id, int lnum) ubi_wl_flush() argument 1379 static void tree_destroy(struct ubi_device *ubi, struct rb_root *root) tree_destroy() argument 1413 struct ubi_device *ubi = u; ubi_thread() local 1467 static void shutdown_work(struct ubi_device *ubi) shutdown_work() argument 1491 int ubi_wl_init(struct ubi_device *ubi, struct ubi_attach_info *ai) ubi_wl_init() argument 1630 static void protection_queue_destroy(struct ubi_device *ubi) protection_queue_destroy() argument 1647 void ubi_wl_close(struct ubi_device *ubi) ubi_wl_close() argument 1670 static int self_check_ec(struct ubi_device *ubi, int pnum, int ec) self_check_ec() argument 1713 static int self_check_in_wl_tree(const struct ubi_device *ubi, self_check_in_wl_tree() argument 1736 static int self_check_in_pq(const struct ubi_device *ubi, self_check_in_pq() argument 1756 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi) get_peb_for_wl() argument 1778 static int produce_free_peb(struct ubi_device *ubi) produce_free_peb() argument 1804 int ubi_wl_get_peb(struct ubi_device *ubi) ubi_wl_get_peb() argument
|
H A D | build.c | 156 int ubi_volume_notify(struct ubi_device *ubi, struct ubi_volume *vol, int ntype) ubi_volume_notify() argument 188 int ubi_notify_all(struct ubi_device *ubi, int ntype, struct notifier_block *nb) ubi_notify_all() argument 236 struct ubi_device *ubi = ubi_devices[i]; ubi_enumerate_volumes() local 257 struct ubi_device *ubi; ubi_get_device() local 275 void ubi_put_device(struct ubi_device *ubi) ubi_put_device() argument 293 struct ubi_device *ubi; ubi_get_by_major() local 325 struct ubi_device *ubi = ubi_devices[i]; ubi_major2num() local 342 struct ubi_device *ubi; dev_attribute_show() local 390 struct ubi_device *ubi = container_of(dev, struct ubi_device, dev); dev_release() local 404 static int ubi_sysfs_init(struct ubi_device *ubi, int *ref) ubi_sysfs_init() argument 455 static void ubi_sysfs_close(struct ubi_device *ubi) ubi_sysfs_close() argument 475 static void kill_volumes(struct ubi_device *ubi) kill_volumes() argument 502 static int uif_init(struct ubi_device *ubi, int *ref) uif_init() argument 572 static void uif_close(struct ubi_device *ubi) uif_close() argument 584 void ubi_free_internal_volumes(struct ubi_device *ubi) ubi_free_internal_volumes() argument 595 static int get_bad_peb_limit(const struct ubi_device *ubi, int max_beb_per1024) get_bad_peb_limit() argument 639 static int io_init(struct ubi_device *ubi, int max_beb_per1024) io_init() argument 806 static int autoresize(struct ubi_device *ubi, int vol_id) autoresize() argument 872 struct ubi_device *ubi; ubi_attach_mtd_dev() local 1091 struct ubi_device *ubi; ubi_detach_mtd_dev() local
|
H A D | fastmap.c | 24 static inline int *init_seen(struct ubi_device *ubi) init_seen() argument 53 static inline void set_seen(struct ubi_device *ubi, int pnum, int *seen) set_seen() argument 66 static int self_check_seen(struct ubi_device *ubi, int *seen) self_check_seen() argument 87 size_t ubi_calc_fm_size(struct ubi_device *ubi) ubi_calc_fm_size() argument 111 static struct ubi_vid_hdr *new_fm_vhdr(struct ubi_device *ubi, int vol_id) new_fm_vhdr() argument 269 static int update_vol(struct ubi_device *ubi, struct ubi_attach_info *ai, update_vol() argument 365 static int process_pool_aeb(struct ubi_device *ubi, struct ubi_attach_info *ai, process_pool_aeb() argument 450 static int scan_pool(struct ubi_device *ubi, struct ubi_attach_info *ai, scan_pool() argument 595 static int ubi_attach_fastmap(struct ubi_device *ubi, ubi_attach_fastmap() argument 855 int ubi_scan_fastmap(struct ubi_device *ubi, struct ubi_attach_info *ai, ubi_scan_fastmap() argument 1080 static int ubi_write_fastmap(struct ubi_device *ubi, ubi_write_fastmap() argument 1339 static int erase_block(struct ubi_device *ubi, int pnum) erase_block() argument 1391 static int invalidate_fastmap(struct ubi_device *ubi) invalidate_fastmap() argument 1448 static void return_fm_pebs(struct ubi_device *ubi, return_fm_pebs() argument 1472 int ubi_update_fastmap(struct ubi_device *ubi) ubi_update_fastmap() argument
|
H A D | ubi.h | 318 struct ubi_device *ubi; member in struct:ubi_volume 912 static inline int ubi_update_fastmap(struct ubi_device *ubi) { return 0; } ubi_update_fastmap() argument 1010 ubi_zalloc_vid_hdr(const struct ubi_device *ubi, gfp_t gfp_flags) ubi_zalloc_vid_hdr() argument 1030 static inline void ubi_free_vid_hdr(const struct ubi_device *ubi, ubi_free_vid_hdr() argument 1046 static inline int ubi_io_read_data(const struct ubi_device *ubi, void *buf, ubi_io_read_data() argument 1058 static inline int ubi_io_write_data(struct ubi_device *ubi, const void *buf, ubi_io_write_data() argument 1069 static inline void ubi_ro_mode(struct ubi_device *ubi) ubi_ro_mode() argument 1083 static inline int vol_id2idx(const struct ubi_device *ubi, int vol_id) vol_id2idx() argument 1096 static inline int idx2vol_id(const struct ubi_device *ubi, int idx) idx2vol_id() argument
|
/linux-4.1.27/fs/ubifs/ |
H A D | super.c | 1907 struct ubi_volume_desc *ubi; open_ubi() local 1948 static struct ubifs_info *alloc_ubifs_info(struct ubi_volume_desc *ubi) alloc_ubifs_info() argument 2093 struct ubi_volume_desc *ubi; ubifs_mount() local
|
H A D | ubifs.h | 1361 struct ubi_volume_desc *ubi; member in struct:ubifs_info
|