/external/u-boot/fs/ubifs/ |
D | debug.h | 15 typedef int (*dbg_leaf_callback)(struct ubifs_info *c, 17 typedef int (*dbg_znode_callback)(struct ubifs_info *c, 234 static inline int dbg_is_chk_gen(const struct ubifs_info *c) in dbg_is_chk_gen() 238 static inline int dbg_is_chk_index(const struct ubifs_info *c) in dbg_is_chk_index() 242 static inline int dbg_is_chk_orph(const struct ubifs_info *c) in dbg_is_chk_orph() 246 static inline int dbg_is_chk_lprops(const struct ubifs_info *c) in dbg_is_chk_lprops() 250 static inline int dbg_is_chk_fs(const struct ubifs_info *c) in dbg_is_chk_fs() 254 static inline int dbg_is_tst_rcvry(const struct ubifs_info *c) in dbg_is_tst_rcvry() 258 static inline int dbg_is_power_cut(const struct ubifs_info *c) in dbg_is_power_cut() 263 int ubifs_debugging_init(struct ubifs_info *c); [all …]
|
D | ubifs.h | 1240 struct ubifs_info; 1243 typedef int (*ubifs_lpt_scan_callback)(struct ubifs_info *c, 1282 struct ubifs_info *c; 1290 int (*sync_callback)(struct ubifs_info *c, int lnum, int free, int pad); 1834 struct ubifs_info { struct 2084 void ubifs_ro_mode(struct ubifs_info *c, int err); argument 2085 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs, 2087 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, 2089 int ubifs_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len); 2090 int ubifs_leb_unmap(struct ubifs_info *c, int lnum); [all …]
|
D | key.h | 84 static inline void ino_key_init(const struct ubifs_info *c, in ino_key_init() 97 static inline void ino_key_init_flash(const struct ubifs_info *c, void *k, in ino_key_init_flash() 113 static inline void lowest_ino_key(const struct ubifs_info *c, in lowest_ino_key() 126 static inline void highest_ino_key(const struct ubifs_info *c, in highest_ino_key() 140 static inline void dent_key_init(const struct ubifs_info *c, in dent_key_init() 159 static inline void dent_key_init_hash(const struct ubifs_info *c, in dent_key_init_hash() 175 static inline void dent_key_init_flash(const struct ubifs_info *c, void *k, in dent_key_init_flash() 194 static inline void lowest_dent_key(const struct ubifs_info *c, in lowest_dent_key() 208 static inline void xent_key_init(const struct ubifs_info *c, in xent_key_init() 226 static inline void xent_key_init_flash(const struct ubifs_info *c, void *k, in xent_key_init_flash() [all …]
|
D | misc.h | 56 static inline void ubifs_wake_up_bgt(struct ubifs_info *c) in ubifs_wake_up_bgt() 166 static inline int ubifs_add_dirt(struct ubifs_info *c, int lnum, int dirty) in ubifs_add_dirt() 180 static inline int ubifs_return_leb(struct ubifs_info *c, int lnum) in ubifs_return_leb() 191 static inline int ubifs_idx_node_sz(const struct ubifs_info *c, int child_cnt) in ubifs_idx_node_sz() 203 struct ubifs_branch *ubifs_idx_branch(const struct ubifs_info *c, in ubifs_idx_branch() 216 static inline void *ubifs_idx_key(const struct ubifs_info *c, in ubifs_idx_key() 250 static inline int ubifs_tnc_lookup(struct ubifs_info *c, in ubifs_tnc_lookup() 263 static inline void ubifs_get_lprops(struct ubifs_info *c) in ubifs_get_lprops() 275 static inline void ubifs_release_lprops(struct ubifs_info *c) in ubifs_release_lprops() 291 static inline int ubifs_next_log_lnum(const struct ubifs_info *c, int lnum) in ubifs_next_log_lnum()
|
D | budget.c | 56 static void shrink_liability(struct ubifs_info *c, int nr_to_write) in shrink_liability() 71 static int run_gc(struct ubifs_info *c) in run_gc() 97 static long long get_liability(struct ubifs_info *c) in get_liability() 125 static int make_free_space(struct ubifs_info *c) in make_free_space() 172 int ubifs_calc_min_idx_lebs(struct ubifs_info *c) in ubifs_calc_min_idx_lebs() 204 long long ubifs_calc_available(const struct ubifs_info *c, int min_idx_lebs) in ubifs_calc_available() 268 static int can_use_rp(struct ubifs_info *c) in can_use_rp() 301 static int do_budget_space(struct ubifs_info *c) in do_budget_space() 369 static int calc_idx_growth(const struct ubifs_info *c, in calc_idx_growth() 385 static int calc_data_growth(const struct ubifs_info *c, in calc_data_growth() [all …]
|
D | lpt_commit.c | 28 static int dbg_populate_lsave(struct ubifs_info *c); 95 static int get_cnodes_to_commit(struct ubifs_info *c) in get_cnodes_to_commit() 136 static void upd_ltab(struct ubifs_info *c, int lnum, int free, int dirty) in upd_ltab() 156 static int alloc_lpt_leb(struct ubifs_info *c, int *lnum) in alloc_lpt_leb() 189 static int layout_cnodes(struct ubifs_info *c) in layout_cnodes() 341 static int realloc_lpt_leb(struct ubifs_info *c, int *lnum) in realloc_lpt_leb() 368 static int write_cnodes(struct ubifs_info *c) in write_cnodes() 561 static struct ubifs_pnode *next_pnode_to_dirty(struct ubifs_info *c, in next_pnode_to_dirty() 626 static struct ubifs_pnode *pnode_lookup(struct ubifs_info *c, int i) in pnode_lookup() 655 static void add_pnode_dirt(struct ubifs_info *c, struct ubifs_pnode *pnode) in add_pnode_dirt() [all …]
|
D | orphan.c | 44 static int dbg_check_orphans(struct ubifs_info *c); 54 int ubifs_add_orphan(struct ubifs_info *c, ino_t inum) in ubifs_add_orphan() 104 void ubifs_delete_orphan(struct ubifs_info *c, ino_t inum) in ubifs_delete_orphan() 157 int ubifs_orphan_start_commit(struct ubifs_info *c) in ubifs_orphan_start_commit() 191 static int avail_orphs(struct ubifs_info *c) in avail_orphs() 211 static int tot_avail_orphs(struct ubifs_info *c) in tot_avail_orphs() 231 static int do_write_orph_node(struct ubifs_info *c, int len, int atomic) in do_write_orph_node() 262 static int write_orph_node(struct ubifs_info *c, int atomic) in write_orph_node() 325 static int write_orph_nodes(struct ubifs_info *c, int atomic) in write_orph_nodes() 358 static int consolidate(struct ubifs_info *c) in consolidate() [all …]
|
D | tnc.c | 71 static int insert_old_idx(struct ubifs_info *c, int lnum, int offs) in insert_old_idx() 112 int insert_old_idx_znode(struct ubifs_info *c, struct ubifs_znode *znode) in insert_old_idx_znode() 134 static int ins_clr_old_idx_znode(struct ubifs_info *c, in ins_clr_old_idx_znode() 173 void destroy_old_idx(struct ubifs_info *c) in destroy_old_idx() 190 static struct ubifs_znode *copy_znode(struct ubifs_info *c, in copy_znode() 232 static int add_idx_dirt(struct ubifs_info *c, int lnum, int dirt) in add_idx_dirt() 245 static struct ubifs_znode *dirty_cow_znode(struct ubifs_info *c, in dirty_cow_znode() 307 static int lnc_add(struct ubifs_info *c, struct ubifs_zbranch *zbr, in lnc_add() 343 static int lnc_add_directly(struct ubifs_info *c, struct ubifs_zbranch *zbr, in lnc_add_directly() 386 static int tnc_read_node_nm(struct ubifs_info *c, struct ubifs_zbranch *zbr, in tnc_read_node_nm() [all …]
|
D | lprops.c | 53 static void move_up_lpt_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, in move_up_lpt_heap() 90 static void adjust_lpt_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, in adjust_lpt_heap() 169 static int add_to_lpt_heap(struct ubifs_info *c, struct ubifs_lprops *lprops, in add_to_lpt_heap() 217 static void remove_from_lpt_heap(struct ubifs_info *c, in remove_from_lpt_heap() 247 static void lpt_heap_replace(struct ubifs_info *c, in lpt_heap_replace() 266 void ubifs_add_to_cat(struct ubifs_info *c, struct ubifs_lprops *lprops, in ubifs_add_to_cat() 309 static void ubifs_remove_from_cat(struct ubifs_info *c, in ubifs_remove_from_cat() 346 void ubifs_replace_cat(struct ubifs_info *c, struct ubifs_lprops *old_lprops, in ubifs_replace_cat() 378 void ubifs_ensure_cat(struct ubifs_info *c, struct ubifs_lprops *lprops) in ubifs_ensure_cat() 401 int ubifs_categorize_lprops(const struct ubifs_info *c, in ubifs_categorize_lprops() [all …]
|
D | replay.c | 90 static int set_bud_lprops(struct ubifs_info *c, struct bud_entry *b) in set_bud_lprops() 164 static int set_buds_lprops(struct ubifs_info *c) in set_buds_lprops() 183 static int trun_remove_range(struct ubifs_info *c, struct replay_entry *r) in trun_remove_range() 212 static int apply_replay_entry(struct ubifs_info *c, struct replay_entry *r) in apply_replay_entry() 293 static int apply_replay_list(struct ubifs_info *c) in apply_replay_list() 317 static void destroy_replay_list(struct ubifs_info *c) in destroy_replay_list() 349 static int insert_node(struct ubifs_info *c, int lnum, int offs, int len, in insert_node() 397 static int insert_dent(struct ubifs_info *c, int lnum, int offs, int len, in insert_dent() 443 int ubifs_validate_entry(struct ubifs_info *c, in ubifs_validate_entry() 477 static int is_last_bud(struct ubifs_info *c, struct ubifs_bud *bud) in is_last_bud() [all …]
|
D | recovery.c | 101 static int get_master_node(const struct ubifs_info *c, int lnum, void **pbuf, in get_master_node() 196 static int write_rcvrd_mst_node(struct ubifs_info *c, in write_rcvrd_mst_node() 228 int ubifs_recover_master_node(struct ubifs_info *c) in ubifs_recover_master_node() 380 int ubifs_write_rcvrd_mst_node(struct ubifs_info *c) in ubifs_write_rcvrd_mst_node() 407 static int is_last_write(const struct ubifs_info *c, void *buf, int offs) in is_last_write() 434 static void clean_buf(const struct ubifs_info *c, void **buf, int lnum, in clean_buf() 464 static int no_more_nodes(const struct ubifs_info *c, void *buf, int len, in no_more_nodes() 497 static int fix_unclean_leb(struct ubifs_info *c, struct ubifs_scan_leb *sleb, in fix_unclean_leb() 630 struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum, in ubifs_recover_leb() 807 static int get_cs_sqnum(struct ubifs_info *c, int lnum, int offs, in get_cs_sqnum() [all …]
|
D | lpt.c | 53 static void do_calc_lpt_geom(struct ubifs_info *c) in do_calc_lpt_geom() 132 int ubifs_calc_lpt_geom(struct ubifs_info *c) in ubifs_calc_lpt_geom() 169 static int calc_dflt_lpt_geom(struct ubifs_info *c, int *main_lebs, in calc_dflt_lpt_geom() 345 void ubifs_pack_pnode(struct ubifs_info *c, void *buf, in ubifs_pack_pnode() 378 void ubifs_pack_nnode(struct ubifs_info *c, void *buf, in ubifs_pack_nnode() 410 void ubifs_pack_ltab(struct ubifs_info *c, void *buf, in ubifs_pack_ltab() 435 void ubifs_pack_lsave(struct ubifs_info *c, void *buf, int *lsave) in ubifs_pack_lsave() 457 void ubifs_add_lpt_dirt(struct ubifs_info *c, int lnum, int dirty) in ubifs_add_lpt_dirt() 474 static void set_ltab(struct ubifs_info *c, int lnum, int free, int dirty) in set_ltab() 489 void ubifs_add_nnode_dirt(struct ubifs_info *c, struct ubifs_nnode *nnode) in ubifs_add_nnode_dirt() [all …]
|
D | debug.c | 100 const char *dbg_snprintf_key(const struct ubifs_info *c, in dbg_snprintf_key() 232 void ubifs_dump_inode(struct ubifs_info *c, const struct inode *inode) in ubifs_dump_inode() 302 void ubifs_dump_node(const struct ubifs_info *c, const void *node) in ubifs_dump_node() 579 void ubifs_dump_budg(struct ubifs_info *c, const struct ubifs_budg_info *bi) in ubifs_dump_budg() 647 void ubifs_dump_budg(struct ubifs_info *c, const struct ubifs_budg_info *bi) in ubifs_dump_budg() 652 void ubifs_dump_lprop(const struct ubifs_info *c, const struct ubifs_lprops *lp) in ubifs_dump_lprop() 743 void ubifs_dump_lprops(struct ubifs_info *c) in ubifs_dump_lprops() 765 void ubifs_dump_lpt_info(struct ubifs_info *c) in ubifs_dump_lpt_info() 803 void ubifs_dump_sleb(const struct ubifs_info *c, in ubifs_dump_sleb() 819 void ubifs_dump_leb(const struct ubifs_info *c, int lnum) in ubifs_dump_leb() [all …]
|
D | io.c | 75 void ubifs_ro_mode(struct ubifs_info *c, int err) in ubifs_ro_mode() 92 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs, in ubifs_leb_read() 110 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, in ubifs_leb_write() 133 int ubifs_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len) in ubifs_leb_change() 155 int ubifs_leb_unmap(struct ubifs_info *c, int lnum) in ubifs_leb_unmap() 176 int ubifs_leb_map(struct ubifs_info *c, int lnum) in ubifs_leb_map() 197 int ubifs_is_mapped(const struct ubifs_info *c, int lnum) in ubifs_is_mapped() 238 int ubifs_check_node(const struct ubifs_info *c, const void *buf, int lnum, in ubifs_check_node() 319 void ubifs_pad(const struct ubifs_info *c, void *buf, int pad) in ubifs_pad() 349 static unsigned long long next_sqnum(struct ubifs_info *c) in next_sqnum() [all …]
|
D | log.c | 23 static int dbg_check_bud_bytes(struct ubifs_info *c); 33 struct ubifs_bud *ubifs_search_bud(struct ubifs_info *c, int lnum) in ubifs_search_bud() 62 struct ubifs_wbuf *ubifs_get_wbuf(struct ubifs_info *c, int lnum) in ubifs_get_wbuf() 93 static inline long long empty_log_bytes(const struct ubifs_info *c) in empty_log_bytes() 115 void ubifs_add_bud(struct ubifs_info *c, struct ubifs_bud *bud) in ubifs_add_bud() 167 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs) in ubifs_add_bud_to_log() 291 static void remove_buds(struct ubifs_info *c) in remove_buds() 350 int ubifs_log_start_commit(struct ubifs_info *c, int *ltail_lnum) in ubifs_log_start_commit() 449 int ubifs_log_end_commit(struct ubifs_info *c, int ltail_lnum) in ubifs_log_end_commit() 498 int ubifs_log_post_commit(struct ubifs_info *c, int old_ltail_lnum) in ubifs_log_post_commit() [all …]
|
D | super.c | 204 static int validate_inode(struct ubifs_info *c, const struct inode *inode) in validate_inode() 243 struct ubifs_info *c = sb->s_fs_info; in ubifs_iget() 476 struct ubifs_info *c = inode->i_sb->s_fs_info; in ubifs_write_inode() 520 struct ubifs_info *c = inode->i_sb->s_fs_info; in ubifs_evict_inode() 579 struct ubifs_info *c = dentry->d_sb->s_fs_info; in ubifs_statfs() 606 struct ubifs_info *c = root->d_sb->s_fs_info; in ubifs_show_options() 634 struct ubifs_info *c = sb->s_fs_info; in ubifs_sync_fs() 678 static int init_constants_early(struct ubifs_info *c) in init_constants_early() 819 static int bud_wbuf_callback(struct ubifs_info *c, int lnum, int free, int pad) in bud_wbuf_callback() 833 static int init_constants_sb(struct ubifs_info *c) in init_constants_sb() [all …]
|
D | gc.c | 71 static int switch_gc_head(struct ubifs_info *c) in switch_gc_head() 118 struct ubifs_info *c = priv; in data_nodes_cmp() 162 struct ubifs_info *c = priv; in nondata_nodes_cmp() 237 static int sort_nodes(struct ubifs_info *c, struct ubifs_scan_leb *sleb, in sort_nodes() 311 static int move_node(struct ubifs_info *c, struct ubifs_scan_leb *sleb, in move_node() 339 static int move_nodes(struct ubifs_info *c, struct ubifs_scan_leb *sleb) in move_nodes() 436 static int gc_sync_wbufs(struct ubifs_info *c) in gc_sync_wbufs() 459 int ubifs_garbage_collect_leb(struct ubifs_info *c, struct ubifs_lprops *lp) in ubifs_garbage_collect_leb() 638 int ubifs_garbage_collect(struct ubifs_info *c, int anyway) in ubifs_garbage_collect() 829 int ubifs_gc_start_commit(struct ubifs_info *c) in ubifs_gc_start_commit() [all …]
|
D | scan.c | 61 int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum, in ubifs_scan_a_node() 129 struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum, in ubifs_start_scan() 167 void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, in ubifs_end_scan() 186 int ubifs_add_snod(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, in ubifs_add_snod() 230 void ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs, in ubifs_scanned_corruption() 259 struct ubifs_scan_leb *ubifs_scan(const struct ubifs_info *c, int lnum, in ubifs_scan()
|
D | ubifs.c | 122 crypto_comp_decompress(const struct ubifs_info *c, struct crypto_comp *tfm, in crypto_comp_decompress() 164 int ubifs_decompress(const struct ubifs_info *c, const void *in_buf, in ubifs_decompress() 260 static int filldir(struct ubifs_info *c, const char *name, int namlen, in filldir() 305 struct ubifs_info *c = dir->i_sb->s_fs_info; in ubifs_printdir() 396 struct ubifs_info *c; in ubifs_finddir() 584 struct ubifs_info *c = ubifs_sb->s_fs_info; in ubifs_ls() 632 struct ubifs_info *c = ubifs_sb->s_fs_info; in ubifs_exists() 644 struct ubifs_info *c = ubifs_sb->s_fs_info; in ubifs_size() 686 struct ubifs_info *c = inode->i_sb->s_fs_info; in read_block() 730 static int do_readpage(struct ubifs_info *c, struct inode *inode, in do_readpage() [all …]
|
D | sb.c | 70 static int create_default_filesystem(struct ubifs_info *c) in create_default_filesystem() 350 static int validate_sb(struct ubifs_info *c, struct ubifs_sb_node *sup) in validate_sb() 482 struct ubifs_sb_node *ubifs_read_sb_node(struct ubifs_info *c) in ubifs_read_sb_node() 508 int ubifs_write_sb_node(struct ubifs_info *c, struct ubifs_sb_node *sup) in ubifs_write_sb_node() 524 int ubifs_read_superblock(struct ubifs_info *c) in ubifs_read_superblock() 679 static int fixup_leb(struct ubifs_info *c, int lnum, int len) in fixup_leb() 707 static int fixup_free_space(struct ubifs_info *c) in fixup_free_space() 790 int ubifs_fixup_free_space(struct ubifs_info *c) in ubifs_fixup_free_space()
|
D | tnc_misc.c | 126 int ubifs_search_zbranch(const struct ubifs_info *c, in ubifs_search_zbranch() 264 static int read_znode(struct ubifs_info *c, int lnum, int offs, int len, in read_znode() 397 struct ubifs_znode *ubifs_load_znode(struct ubifs_info *c, in ubifs_load_znode() 449 int ubifs_tnc_read_node(struct ubifs_info *c, struct ubifs_zbranch *zbr, in ubifs_tnc_read_node()
|
D | master.c | 29 static int scan_for_master(struct ubifs_info *c) in scan_for_master() 91 static int validate_master(const struct ubifs_info *c) in validate_master() 249 int ubifs_read_master(struct ubifs_info *c) in ubifs_read_master() 355 int ubifs_write_master(struct ubifs_info *c) in ubifs_write_master()
|