Home
last modified time | relevance | path

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

123

/openbmc/linux/fs/ubifs/
H A Dubifs.h654 struct ubifs_info;
693 struct ubifs_info *c;
1280 struct ubifs_info { struct
1766 int ubifs_io_init(struct ubifs_info *c);
1769 int ubifs_bg_wbufs_sync(struct ubifs_info *c);
1881 void ubifs_tnc_close(struct ubifs_info *c);
1887 void destroy_old_idx(struct ubifs_info *c);
1926 int ubifs_run_commit(struct ubifs_info *c);
1933 int ubifs_read_master(struct ubifs_info *c);
1934 int ubifs_write_master(struct ubifs_info *c);
[all …]
H A Ddebug.h15 typedef int (*dbg_leaf_callback)(struct ubifs_info *c,
17 typedef int (*dbg_znode_callback)(struct ubifs_info *c,
233 int ubifs_debugging_init(struct ubifs_info *c);
252 void ubifs_dump_lprops(struct ubifs_info *c);
253 void ubifs_dump_lpt_info(struct ubifs_info *c);
261 void ubifs_dump_tnc(struct ubifs_info *c);
262 void ubifs_dump_index(struct ubifs_info *c);
269 void dbg_save_space_info(struct ubifs_info *c);
271 int dbg_check_lprops(struct ubifs_info *c);
274 int dbg_check_cats(struct ubifs_info *c);
[all …]
H A Dkey.h90 static inline void ino_key_init(const struct ubifs_info *c, in ino_key_init()
119 static inline void lowest_ino_key(const struct ubifs_info *c, in lowest_ino_key()
146 static inline void dent_key_init(const struct ubifs_info *c, in dent_key_init()
215 static inline void xent_key_init(const struct ubifs_info *c, in xent_key_init()
322 static inline int key_type(const struct ubifs_info *c, in key_type()
369 static inline uint32_t key_hash(const struct ubifs_info *c, in key_hash()
432 static inline void key_write(const struct ubifs_info *c, in key_write()
463 static inline void key_copy(const struct ubifs_info *c, in key_copy()
478 static inline int keys_cmp(const struct ubifs_info *c, in keys_cmp()
503 static inline int keys_eq(const struct ubifs_info *c, in keys_eq()
[all …]
H A Dmisc.h56 static inline void ubifs_wake_up_bgt(struct ubifs_info *c) in ubifs_wake_up_bgt()
101 static inline int ubifs_compr_present(struct ubifs_info *c, int compr_type) in ubifs_compr_present()
161 static inline int ubifs_add_dirt(struct ubifs_info *c, int lnum, int dirty) in ubifs_add_dirt()
175 static inline int ubifs_return_leb(struct ubifs_info *c, int lnum) in ubifs_return_leb()
199 struct ubifs_branch *ubifs_idx_branch(const struct ubifs_info *c, in ubifs_idx_branch()
212 static inline void *ubifs_idx_key(const struct ubifs_info *c, in ubifs_idx_key()
229 static inline int ubifs_tnc_lookup(struct ubifs_info *c, in ubifs_tnc_lookup()
242 static inline void ubifs_get_lprops(struct ubifs_info *c) in ubifs_get_lprops()
254 static inline void ubifs_release_lprops(struct ubifs_info *c) in ubifs_release_lprops()
279 static inline int ubifs_xattr_max_cnt(struct ubifs_info *c) in ubifs_xattr_max_cnt()
[all …]
H A Dauth.c29 int __ubifs_node_calc_hash(const struct ubifs_info *c, const void *node, in __ubifs_node_calc_hash()
46 static int ubifs_hash_calc_hmac(const struct ubifs_info *c, const u8 *hash, in ubifs_hash_calc_hmac()
63 int ubifs_prepare_auth_node(struct ubifs_info *c, void *node, in ubifs_prepare_auth_node()
90 static struct shash_desc *ubifs_get_desc(const struct ubifs_info *c, in ubifs_get_desc()
121 struct shash_desc *__ubifs_hash_get_desc(const struct ubifs_info *c) in __ubifs_hash_get_desc()
163 int __ubifs_node_check_hash(const struct ubifs_info *c, const void *node, in __ubifs_node_check_hash()
191 int ubifs_sb_verify_signature(struct ubifs_info *c, in ubifs_sb_verify_signature()
256 int ubifs_init_authentication(struct ubifs_info *c) in ubifs_init_authentication()
366 void __ubifs_exit_authentication(struct ubifs_info *c) in __ubifs_exit_authentication()
509 int ubifs_hmac_wkm(struct ubifs_info *c, u8 *hmac) in ubifs_hmac_wkm()
[all …]
H A Dbudget.c66 static int run_gc(struct ubifs_info *c) in run_gc()
89 static long long get_liability(struct ubifs_info *c) in get_liability()
117 static int make_free_space(struct ubifs_info *c) in make_free_space()
163 int ubifs_calc_min_idx_lebs(struct ubifs_info *c) in ubifs_calc_min_idx_lebs()
257 static int can_use_rp(struct ubifs_info *c) in can_use_rp()
290 static int do_budget_space(struct ubifs_info *c) in do_budget_space()
358 static int calc_idx_growth(const struct ubifs_info *c, in calc_idx_growth()
374 static int calc_data_growth(const struct ubifs_info *c, in calc_data_growth()
394 static int calc_dd_growth(const struct ubifs_info *c, in calc_dd_growth()
567 void ubifs_convert_page_budget(struct ubifs_info *c) in ubifs_convert_page_budget()
[all …]
H A Dorphan.c43 static int dbg_check_orphans(struct ubifs_info *c);
238 int ubifs_orphan_start_commit(struct ubifs_info *c) in ubifs_orphan_start_commit()
272 static int avail_orphs(struct ubifs_info *c) in avail_orphs()
292 static int tot_avail_orphs(struct ubifs_info *c) in tot_avail_orphs()
439 static int consolidate(struct ubifs_info *c) in consolidate()
484 static int commit_orphans(struct ubifs_info *c) in commit_orphans()
510 static void erase_deleted(struct ubifs_info *c) in erase_deleted()
537 int ubifs_orphan_end_commit(struct ubifs_info *c) in ubifs_orphan_end_commit()
559 int ubifs_clear_orphans(struct ubifs_info *c) in ubifs_clear_orphans()
754 static int kill_orphans(struct ubifs_info *c) in kill_orphans()
[all …]
H A Dlpt_commit.c21 static int dbg_populate_lsave(struct ubifs_info *c);
182 static int layout_cnodes(struct ubifs_info *c) in layout_cnodes()
360 static int write_cnodes(struct ubifs_info *c) in write_cnodes()
657 static int make_tree_dirty(struct ubifs_info *c) in make_tree_dirty()
681 static int need_write_all(struct ubifs_info *c) in need_write_all()
708 static void lpt_tgc_start(struct ubifs_info *c) in lpt_tgc_start()
734 static int lpt_tgc_end(struct ubifs_info *c) in lpt_tgc_end()
1150 static int lpt_gc(struct ubifs_info *c) in lpt_gc()
1283 int ubifs_lpt_end_commit(struct ubifs_info *c) in ubifs_lpt_end_commit()
1661 int dbg_check_ltab(struct ubifs_info *c) in dbg_check_ltab()
[all …]
H A Dsysfs.c50 struct ubifs_info *sbi = container_of(kobj, struct ubifs_info, in ubifs_attr_show()
68 struct ubifs_info *c = container_of(kobj, struct ubifs_info, kobj); in ubifs_sb_release()
91 int ubifs_sysfs_register(struct ubifs_info *c) in ubifs_sysfs_register()
131 void ubifs_sysfs_unregister(struct ubifs_info *c) in ubifs_sysfs_unregister()
H A Dmisc.c6 void ubifs_msg(const struct ubifs_info *c, const char *fmt, ...) in ubifs_msg()
23 void ubifs_err(const struct ubifs_info *c, const char *fmt, ...) in ubifs_err()
42 void ubifs_warn(const struct ubifs_info *c, const char *fmt, ...) in ubifs_warn()
66 const char *ubifs_assert_action_name(struct ubifs_info *c) in ubifs_assert_action_name()
H A Dtnc.c47 static void do_insert_old_idx(struct ubifs_info *c, in do_insert_old_idx()
141 static int ins_clr_old_idx_znode(struct ubifs_info *c, in ins_clr_old_idx_znode()
180 void destroy_old_idx(struct ubifs_info *c) in destroy_old_idx()
197 static struct ubifs_znode *copy_znode(struct ubifs_info *c, in copy_znode()
618 static struct ubifs_znode *get_znode(struct ubifs_info *c, in get_znode()
855 static int fallible_matches_name(struct ubifs_info *c, in fallible_matches_name()
925 static int fallible_resolve_collision(struct ubifs_info *c, in fallible_resolve_collision()
1070 static int resolve_collision_directly(struct ubifs_info *c, in resolve_collision_directly()
1687 const struct ubifs_info *c = wbuf->c; in read_wbuf()
3080 static void tnc_destroy_cnext(struct ubifs_info *c) in tnc_destroy_cnext()
[all …]
H A Dio.c70 void ubifs_ro_mode(struct ubifs_info *c, int err) in ubifs_ro_mode()
146 int ubifs_leb_unmap(struct ubifs_info *c, int lnum) in ubifs_leb_unmap()
165 int ubifs_leb_map(struct ubifs_info *c, int lnum) in ubifs_leb_map()
184 int ubifs_is_mapped(const struct ubifs_info *c, int lnum) in ubifs_is_mapped()
328 void ubifs_pad(const struct ubifs_info *c, void *buf, int pad) in ubifs_pad()
358 static unsigned long long next_sqnum(struct ubifs_info *c) in next_sqnum()
560 struct ubifs_info *c = wbuf->c; in ubifs_wbuf_sync_nolock()
635 const struct ubifs_info *c = wbuf->c; in ubifs_wbuf_seek_nolock()
668 int ubifs_bg_wbufs_sync(struct ubifs_info *c) in ubifs_bg_wbufs_sync()
742 struct ubifs_info *c = wbuf->c; in ubifs_wbuf_write_nolock()
[all …]
H A Drecovery.c192 static int write_rcvrd_mst_node(struct ubifs_info *c, in write_rcvrd_mst_node()
227 int ubifs_recover_master_node(struct ubifs_info *c) in ubifs_recover_master_node()
375 int ubifs_write_rcvrd_mst_node(struct ubifs_info *c) in ubifs_write_rcvrd_mst_node()
954 int ubifs_recover_inl_heads(struct ubifs_info *c, void *sbuf) in ubifs_recover_inl_heads()
982 static int clean_an_unclean_leb(struct ubifs_info *c, in clean_an_unclean_leb()
1075 int ubifs_clean_lebs(struct ubifs_info *c, void *sbuf) in ubifs_clean_lebs()
1101 static int grab_empty_leb(struct ubifs_info *c) in grab_empty_leb()
1158 int ubifs_rcvry_gc_commit(struct ubifs_info *c) in ubifs_rcvry_gc_commit()
1303 static void remove_ino(struct ubifs_info *c, ino_t inum) in remove_ino()
1317 void ubifs_destroy_size_tree(struct ubifs_info *c) in ubifs_destroy_size_tree()
[all …]
H A Dreplay.c88 static int set_bud_lprops(struct ubifs_info *c, struct bud_entry *b) in set_bud_lprops()
162 static int set_buds_lprops(struct ubifs_info *c) in set_buds_lprops()
305 struct ubifs_info *c = priv; in replay_entries_cmp()
327 static int apply_replay_list(struct ubifs_info *c) in apply_replay_list()
351 static void destroy_replay_list(struct ubifs_info *c) in destroy_replay_list()
480 int ubifs_validate_entry(struct ubifs_info *c, in ubifs_validate_entry()
564 authenticate_sleb_hash(struct ubifs_info *c, in authenticate_sleb_hash()
845 static int replay_buds(struct ubifs_info *c) in replay_buds()
867 static void destroy_bud_list(struct ubifs_info *c) in destroy_bud_list()
1141 static int take_ihead(struct ubifs_info *c) in take_ihead()
[all …]
/openbmc/u-boot/fs/ubifs/
H 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 …]
H 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 …]
H 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 …]
H 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()
H A Dbudget.c71 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()
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()
405 static int calc_dd_growth(const struct ubifs_info *c, in calc_dd_growth()
578 void ubifs_convert_page_budget(struct ubifs_info *c) in ubifs_convert_page_budget()
[all …]
H A Dorphan.c44 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()
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()
358 static int consolidate(struct ubifs_info *c) in consolidate()
403 static int commit_orphans(struct ubifs_info *c) in commit_orphans()
429 static void erase_deleted(struct ubifs_info *c) in erase_deleted()
456 int ubifs_orphan_end_commit(struct ubifs_info *c) in ubifs_orphan_end_commit()
478 int ubifs_clear_orphans(struct ubifs_info *c) in ubifs_clear_orphans()
[all …]
H A Dlpt_commit.c28 static int dbg_populate_lsave(struct ubifs_info *c);
189 static int layout_cnodes(struct ubifs_info *c) in layout_cnodes()
368 static int write_cnodes(struct ubifs_info *c) in write_cnodes()
698 static int make_tree_dirty(struct ubifs_info *c) in make_tree_dirty()
722 static int need_write_all(struct ubifs_info *c) in need_write_all()
749 static void lpt_tgc_start(struct ubifs_info *c) in lpt_tgc_start()
775 static int lpt_tgc_end(struct ubifs_info *c) in lpt_tgc_end()
1193 static int lpt_gc(struct ubifs_info *c) in lpt_gc()
1323 int ubifs_lpt_end_commit(struct ubifs_info *c) in ubifs_lpt_end_commit()
1704 int dbg_check_ltab(struct ubifs_info *c) in dbg_check_ltab()
[all …]
H A Dtnc.c134 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()
566 static struct ubifs_znode *get_znode(struct ubifs_info *c, in get_znode()
803 static int fallible_matches_name(struct ubifs_info *c, in fallible_matches_name()
873 static int fallible_resolve_collision(struct ubifs_info *c, in fallible_resolve_collision()
1017 static int resolve_collision_directly(struct ubifs_info *c, in resolve_collision_directly()
1637 const struct ubifs_info *c = wbuf->c; in read_wbuf()
2667 int ubifs_tnc_remove_ino(struct ubifs_info *c, ino_t inum) in ubifs_tnc_remove_ino()
2835 static void tnc_destroy_cnext(struct ubifs_info *c) in tnc_destroy_cnext()
[all …]
H A Dlprops.c217 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()
401 int ubifs_categorize_lprops(const struct ubifs_info *c, in ubifs_categorize_lprops()
472 int ubifs_calc_dark(const struct ubifs_info *c, int spc) in ubifs_calc_dark()
525 const struct ubifs_lprops *ubifs_change_lp(struct ubifs_info *c, in ubifs_change_lp()
759 const struct ubifs_lprops *ubifs_fast_find_free(struct ubifs_info *c) in ubifs_fast_find_free()
856 int dbg_check_cats(struct ubifs_info *c) in dbg_check_cats()
1020 static int scan_check_cb(struct ubifs_info *c, in scan_check_cb()
[all …]
H A Dreplay.c90 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()
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()
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()
534 static int replay_bud(struct ubifs_info *c, struct bud_entry *b) in replay_bud()
694 static int replay_buds(struct ubifs_info *c) in replay_buds()
716 static void destroy_bud_list(struct ubifs_info *c) in destroy_bud_list()
965 static int take_ihead(struct ubifs_info *c) in take_ihead()
[all …]
H A Drecovery.c196 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()
990 static int clean_an_unclean_leb(struct ubifs_info *c, in clean_an_unclean_leb()
1083 int ubifs_clean_lebs(struct ubifs_info *c, void *sbuf) in ubifs_clean_lebs()
1110 static int grab_empty_leb(struct ubifs_info *c) in grab_empty_leb()
1167 int ubifs_rcvry_gc_commit(struct ubifs_info *c) in ubifs_rcvry_gc_commit()
1229 int ubifs_rcvry_gc_commit(struct ubifs_info *c) in ubifs_rcvry_gc_commit()
1318 static void remove_ino(struct ubifs_info *c, ino_t inum) in remove_ino()
1332 void ubifs_destroy_size_tree(struct ubifs_info *c) in ubifs_destroy_size_tree()
[all …]

123