Home
last modified time | relevance | path

Searched refs:ubifs_info (Results 1 – 22 of 22) sorted by relevance

/u-boot/fs/ubifs/
A Ddebug.h15 typedef int (*dbg_leaf_callback)(struct ubifs_info *c,
17 typedef int (*dbg_znode_callback)(struct ubifs_info *c,
263 int ubifs_debugging_init(struct ubifs_info *c);
295 int ubifs_debugging_init(struct ubifs_info *c);
315 void ubifs_dump_lprops(struct ubifs_info *c);
326 void ubifs_dump_tnc(struct ubifs_info *c);
327 void ubifs_dump_index(struct ubifs_info *c);
336 int dbg_check_lprops(struct ubifs_info *c);
339 int dbg_check_cats(struct ubifs_info *c);
340 int dbg_check_ltab(struct ubifs_info *c);
[all …]
A Dubifs.h1240 struct ubifs_info;
1282 struct ubifs_info *c;
1834 struct ubifs_info { struct
2106 int ubifs_io_init(struct ubifs_info *c);
2207 void ubifs_tnc_close(struct ubifs_info *c);
2213 void destroy_old_idx(struct ubifs_info *c);
2251 int ubifs_run_commit(struct ubifs_info *c);
2257 int ubifs_read_master(struct ubifs_info *c);
2258 int ubifs_write_master(struct ubifs_info *c);
2384 int ubifs_recover_size(struct ubifs_info *c);
[all …]
A Dkey.h84 static inline void ino_key_init(const struct ubifs_info *c, in ino_key_init()
113 static inline void lowest_ino_key(const struct ubifs_info *c, in lowest_ino_key()
140 static inline void dent_key_init(const struct ubifs_info *c, in dent_key_init()
208 static inline void xent_key_init(const struct ubifs_info *c, in xent_key_init()
315 static inline int key_type(const struct ubifs_info *c, in key_type()
362 static inline uint32_t key_hash(const struct ubifs_info *c, in key_hash()
425 static inline void key_write(const struct ubifs_info *c, in key_write()
456 static inline void key_copy(const struct ubifs_info *c, in key_copy()
471 static inline int keys_cmp(const struct ubifs_info *c, in keys_cmp()
496 static inline int keys_eq(const struct ubifs_info *c, in keys_eq()
[all …]
A Dmisc.h56 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()
A Dbudget.c72 static int run_gc(struct ubifs_info *c) in run_gc()
98 static long long get_liability(struct ubifs_info *c) in get_liability()
126 static int make_free_space(struct ubifs_info *c) in make_free_space()
173 int ubifs_calc_min_idx_lebs(struct ubifs_info *c) in ubifs_calc_min_idx_lebs()
269 static int can_use_rp(struct ubifs_info *c) in can_use_rp()
302 static int do_budget_space(struct ubifs_info *c) in do_budget_space()
370 static int calc_idx_growth(const struct ubifs_info *c, in calc_idx_growth()
386 static int calc_data_growth(const struct ubifs_info *c, in calc_data_growth()
406 static int calc_dd_growth(const struct ubifs_info *c, in calc_dd_growth()
579 void ubifs_convert_page_budget(struct ubifs_info *c) in ubifs_convert_page_budget()
[all …]
A Dorphan.c46 static int dbg_check_orphans(struct ubifs_info *c);
56 int ubifs_add_orphan(struct ubifs_info *c, ino_t inum) in ubifs_add_orphan()
159 int ubifs_orphan_start_commit(struct ubifs_info *c) in ubifs_orphan_start_commit()
193 static int avail_orphs(struct ubifs_info *c) in avail_orphs()
213 static int tot_avail_orphs(struct ubifs_info *c) in tot_avail_orphs()
360 static int consolidate(struct ubifs_info *c) in consolidate()
405 static int commit_orphans(struct ubifs_info *c) in commit_orphans()
431 static void erase_deleted(struct ubifs_info *c) in erase_deleted()
458 int ubifs_orphan_end_commit(struct ubifs_info *c) in ubifs_orphan_end_commit()
480 int ubifs_clear_orphans(struct ubifs_info *c) in ubifs_clear_orphans()
[all …]
A Dlpt_commit.c31 static int dbg_populate_lsave(struct ubifs_info *c);
192 static int layout_cnodes(struct ubifs_info *c) in layout_cnodes()
371 static int write_cnodes(struct ubifs_info *c) in write_cnodes()
701 static int make_tree_dirty(struct ubifs_info *c) in make_tree_dirty()
725 static int need_write_all(struct ubifs_info *c) in need_write_all()
752 static void lpt_tgc_start(struct ubifs_info *c) in lpt_tgc_start()
778 static int lpt_tgc_end(struct ubifs_info *c) in lpt_tgc_end()
1196 static int lpt_gc(struct ubifs_info *c) in lpt_gc()
1326 int ubifs_lpt_end_commit(struct ubifs_info *c) in ubifs_lpt_end_commit()
1707 int dbg_check_ltab(struct ubifs_info *c) in dbg_check_ltab()
[all …]
A Dreplay.c92 static int set_bud_lprops(struct ubifs_info *c, struct bud_entry *b) in set_bud_lprops()
166 static int set_buds_lprops(struct ubifs_info *c) in set_buds_lprops()
295 static int apply_replay_list(struct ubifs_info *c) in apply_replay_list()
319 static void destroy_replay_list(struct ubifs_info *c) in destroy_replay_list()
445 int ubifs_validate_entry(struct ubifs_info *c, in ubifs_validate_entry()
479 static int is_last_bud(struct ubifs_info *c, struct ubifs_bud *bud) in is_last_bud()
536 static int replay_bud(struct ubifs_info *c, struct bud_entry *b) in replay_bud()
696 static int replay_buds(struct ubifs_info *c) in replay_buds()
718 static void destroy_bud_list(struct ubifs_info *c) in destroy_bud_list()
967 static int take_ihead(struct ubifs_info *c) in take_ihead()
[all …]
A Dlprops.c219 static void remove_from_lpt_heap(struct ubifs_info *c, in remove_from_lpt_heap()
249 static void lpt_heap_replace(struct ubifs_info *c, in lpt_heap_replace()
268 void ubifs_add_to_cat(struct ubifs_info *c, struct ubifs_lprops *lprops, in ubifs_add_to_cat()
311 static void ubifs_remove_from_cat(struct ubifs_info *c, in ubifs_remove_from_cat()
403 int ubifs_categorize_lprops(const struct ubifs_info *c, in ubifs_categorize_lprops()
474 int ubifs_calc_dark(const struct ubifs_info *c, int spc) in ubifs_calc_dark()
527 const struct ubifs_lprops *ubifs_change_lp(struct ubifs_info *c, in ubifs_change_lp()
761 const struct ubifs_lprops *ubifs_fast_find_free(struct ubifs_info *c) in ubifs_fast_find_free()
858 int dbg_check_cats(struct ubifs_info *c) in dbg_check_cats()
1022 static int scan_check_cb(struct ubifs_info *c, in scan_check_cb()
[all …]
A Dtnc.c139 static int ins_clr_old_idx_znode(struct ubifs_info *c, in ins_clr_old_idx_znode()
178 void destroy_old_idx(struct ubifs_info *c) in destroy_old_idx()
195 static struct ubifs_znode *copy_znode(struct ubifs_info *c, in copy_znode()
571 static struct ubifs_znode *get_znode(struct ubifs_info *c, in get_znode()
808 static int fallible_matches_name(struct ubifs_info *c, in fallible_matches_name()
878 static int fallible_resolve_collision(struct ubifs_info *c, in fallible_resolve_collision()
1022 static int resolve_collision_directly(struct ubifs_info *c, in resolve_collision_directly()
1642 const struct ubifs_info *c = wbuf->c; in read_wbuf()
2672 int ubifs_tnc_remove_ino(struct ubifs_info *c, ino_t inum) in ubifs_tnc_remove_ino()
2840 static void tnc_destroy_cnext(struct ubifs_info *c) in tnc_destroy_cnext()
[all …]
A Drecovery.c199 static int write_rcvrd_mst_node(struct ubifs_info *c, in write_rcvrd_mst_node()
231 int ubifs_recover_master_node(struct ubifs_info *c) in ubifs_recover_master_node()
383 int ubifs_write_rcvrd_mst_node(struct ubifs_info *c) in ubifs_write_rcvrd_mst_node()
993 static int clean_an_unclean_leb(struct ubifs_info *c, in clean_an_unclean_leb()
1086 int ubifs_clean_lebs(struct ubifs_info *c, void *sbuf) in ubifs_clean_lebs()
1113 static int grab_empty_leb(struct ubifs_info *c) in grab_empty_leb()
1170 int ubifs_rcvry_gc_commit(struct ubifs_info *c) in ubifs_rcvry_gc_commit()
1232 int ubifs_rcvry_gc_commit(struct ubifs_info *c) in ubifs_rcvry_gc_commit()
1321 static void remove_ino(struct ubifs_info *c, ino_t inum) in remove_ino()
1335 void ubifs_destroy_size_tree(struct ubifs_info *c) in ubifs_destroy_size_tree()
[all …]
A Dlpt.c55 static void do_calc_lpt_geom(struct ubifs_info *c) in do_calc_lpt_geom()
134 int ubifs_calc_lpt_geom(struct ubifs_info *c) in ubifs_calc_lpt_geom()
347 void ubifs_pack_pnode(struct ubifs_info *c, void *buf, in ubifs_pack_pnode()
380 void ubifs_pack_nnode(struct ubifs_info *c, void *buf, in ubifs_pack_nnode()
412 void ubifs_pack_ltab(struct ubifs_info *c, void *buf, in ubifs_pack_ltab()
1171 static void set_pnode_lnum(const struct ubifs_info *c, in set_pnode_lnum()
1325 static int read_ltab(struct ubifs_info *c) in read_ltab()
1349 static int read_lsave(struct ubifs_info *c) in read_lsave()
1628 static int lpt_init_rd(struct ubifs_info *c) in lpt_init_rd()
1691 static int lpt_init_wr(struct ubifs_info *c) in lpt_init_wr()
[all …]
A Dlog.c25 static int dbg_check_bud_bytes(struct ubifs_info *c);
35 struct ubifs_bud *ubifs_search_bud(struct ubifs_info *c, int lnum) in ubifs_search_bud()
64 struct ubifs_wbuf *ubifs_get_wbuf(struct ubifs_info *c, int lnum) in ubifs_get_wbuf()
95 static inline long long empty_log_bytes(const struct ubifs_info *c) in empty_log_bytes()
117 void ubifs_add_bud(struct ubifs_info *c, struct ubifs_bud *bud) in ubifs_add_bud()
293 static void remove_buds(struct ubifs_info *c) in remove_buds()
352 int ubifs_log_start_commit(struct ubifs_info *c, int *ltail_lnum) in ubifs_log_start_commit()
451 int ubifs_log_end_commit(struct ubifs_info *c, int ltail_lnum) in ubifs_log_end_commit()
500 int ubifs_log_post_commit(struct ubifs_info *c, int old_ltail_lnum) in ubifs_log_post_commit()
626 int ubifs_consolidate_log(struct ubifs_info *c) in ubifs_consolidate_log()
[all …]
A Dscan.c63 int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum, in ubifs_scan_a_node()
131 struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum, in ubifs_start_scan()
169 void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, in ubifs_end_scan()
188 int ubifs_add_snod(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, in ubifs_add_snod()
232 void ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs, in ubifs_scanned_corruption()
261 struct ubifs_scan_leb *ubifs_scan(const struct ubifs_info *c, int lnum, in ubifs_scan()
A Ddebug.c745 void ubifs_dump_lprops(struct ubifs_info *c) in ubifs_dump_lprops()
767 void ubifs_dump_lpt_info(struct ubifs_info *c) in ubifs_dump_lpt_info()
932 void ubifs_dump_tnc(struct ubifs_info *c) in ubifs_dump_tnc()
967 void ubifs_dump_index(struct ubifs_info *c) in ubifs_dump_index()
980 void dbg_save_space_info(struct ubifs_info *c) in dbg_save_space_info()
1030 int dbg_check_space_info(struct ubifs_info *c) in dbg_check_space_info()
1477 void dbg_debugfs_exit_fs(struct ubifs_info *c) in dbg_debugfs_exit_fs()
1493 int dbg_debugfs_init_fs(struct ubifs_info *c) in dbg_debugfs_init_fs()
2731 struct ubifs_info *c = file->private_data; in dfs_file_read()
2784 struct ubifs_info *c = file->private_data; in dfs_file_write()
[all …]
A Dio.c79 void ubifs_ro_mode(struct ubifs_info *c, int err) in ubifs_ro_mode()
159 int ubifs_leb_unmap(struct ubifs_info *c, int lnum) in ubifs_leb_unmap()
180 int ubifs_leb_map(struct ubifs_info *c, int lnum) in ubifs_leb_map()
201 int ubifs_is_mapped(const struct ubifs_info *c, int lnum) in ubifs_is_mapped()
323 void ubifs_pad(const struct ubifs_info *c, void *buf, int pad) in ubifs_pad()
353 static unsigned long long next_sqnum(struct ubifs_info *c) in next_sqnum()
504 struct ubifs_info *c = wbuf->c; in ubifs_wbuf_sync_nolock()
579 const struct ubifs_info *c = wbuf->c; in ubifs_wbuf_seek_nolock()
613 int ubifs_bg_wbufs_sync(struct ubifs_info *c) in ubifs_bg_wbufs_sync()
687 struct ubifs_info *c = wbuf->c; in ubifs_wbuf_write_nolock()
[all …]
A Dgc.c73 static int switch_gc_head(struct ubifs_info *c) in switch_gc_head()
120 struct ubifs_info *c = priv; in data_nodes_cmp()
164 struct ubifs_info *c = priv; in nondata_nodes_cmp()
239 static int sort_nodes(struct ubifs_info *c, struct ubifs_scan_leb *sleb, in sort_nodes()
313 static int move_node(struct ubifs_info *c, struct ubifs_scan_leb *sleb, in move_node()
438 static int gc_sync_wbufs(struct ubifs_info *c) in gc_sync_wbufs()
640 int ubifs_garbage_collect(struct ubifs_info *c, int anyway) in ubifs_garbage_collect()
831 int ubifs_gc_start_commit(struct ubifs_info *c) in ubifs_gc_start_commit()
910 int ubifs_gc_end_commit(struct ubifs_info *c) in ubifs_gc_end_commit()
944 void ubifs_destroy_idx_gc(struct ubifs_info *c) in ubifs_destroy_idx_gc()
[all …]
A Dsuper.c247 struct ubifs_info *c = sb->s_fs_info; in ubifs_iget()
638 struct ubifs_info *c = sb->s_fs_info; in ubifs_sync_fs()
1729 void ubifs_umount(struct ubifs_info *c) in ubifs_umount()
1989 struct ubifs_info *c = sb->s_fs_info; in ubifs_put_super()
2071 struct ubifs_info *c = sb->s_fs_info; in ubifs_remount_fs()
2200 struct ubifs_info *c; in alloc_ubifs_info()
2246 struct ubifs_info *c = sb->s_fs_info; in ubifs_fill_super()
2344 struct ubifs_info *c1 = data; in sb_test()
2345 struct ubifs_info *c = sb->s_fs_info; in sb_test()
2455 struct ubifs_info *c; in ubifs_mount()
[all …]
A Dubifs.c156 int ubifs_decompress(const struct ubifs_info *c, const void *in_buf, in ubifs_decompress()
252 static int filldir(struct ubifs_info *c, const char *name, int namlen, in filldir()
297 struct ubifs_info *c = dir->i_sb->s_fs_info; in ubifs_printdir()
388 struct ubifs_info *c; in ubifs_finddir()
576 struct ubifs_info *c = ubifs_sb->s_fs_info; in ubifs_ls()
624 struct ubifs_info *c = ubifs_sb->s_fs_info; in ubifs_exists()
636 struct ubifs_info *c = ubifs_sb->s_fs_info; in ubifs_size()
678 struct ubifs_info *c = inode->i_sb->s_fs_info; in read_block()
722 static int do_readpage(struct ubifs_info *c, struct inode *inode, in do_readpage()
836 struct ubifs_info *c = ubifs_sb->s_fs_info; in ubifs_read()
[all …]
A Dtnc_misc.c128 int ubifs_search_zbranch(const struct ubifs_info *c, in ubifs_search_zbranch()
266 static int read_znode(struct ubifs_info *c, int lnum, int offs, int len, in read_znode()
399 struct ubifs_znode *ubifs_load_znode(struct ubifs_info *c, in ubifs_load_znode()
451 int ubifs_tnc_read_node(struct ubifs_info *c, struct ubifs_zbranch *zbr, in ubifs_tnc_read_node()
A Dsb.c72 static int create_default_filesystem(struct ubifs_info *c) in create_default_filesystem()
352 static int validate_sb(struct ubifs_info *c, struct ubifs_sb_node *sup) in validate_sb()
484 struct ubifs_sb_node *ubifs_read_sb_node(struct ubifs_info *c) in ubifs_read_sb_node()
510 int ubifs_write_sb_node(struct ubifs_info *c, struct ubifs_sb_node *sup) in ubifs_write_sb_node()
526 int ubifs_read_superblock(struct ubifs_info *c) in ubifs_read_superblock()
681 static int fixup_leb(struct ubifs_info *c, int lnum, int len) in fixup_leb()
709 static int fixup_free_space(struct ubifs_info *c) in fixup_free_space()
792 int ubifs_fixup_free_space(struct ubifs_info *c) in ubifs_fixup_free_space()
A Dmaster.c31 static int scan_for_master(struct ubifs_info *c) in scan_for_master()
93 static int validate_master(const struct ubifs_info *c) in validate_master()
251 int ubifs_read_master(struct ubifs_info *c) in ubifs_read_master()
357 int ubifs_write_master(struct ubifs_info *c) in ubifs_write_master()

Completed in 61 milliseconds