/fs/jffs2/ |
D | readinode.c | 31 static int check_node_data(struct jffs2_sb_info *c, struct jffs2_tmp_dnode_info *tn) in check_node_data() argument 33 struct jffs2_raw_node_ref *ref = tn->fn->raw; in check_node_data() 40 BUG_ON(tn->csize == 0); in check_node_data() 44 len = tn->csize; in check_node_data() 51 if (adj >= tn->csize) { in check_node_data() 53 ref_offset(ref), tn->csize, ofs); in check_node_data() 62 ref_offset(ref), tn->csize, tn->partial_crc, tn->data_crc, ofs - len, ofs, len); in check_node_data() 69 JFFS2_WARNING("MTD point returned len too short: %zu instead of %u.\n", retlen, tn->csize); in check_node_data() 99 crc = crc32(tn->partial_crc, buffer, len); in check_node_data() 107 if (crc != tn->data_crc) { in check_node_data() [all …]
|
D | nodelist.h | 350 #define tn_next(tn) rb_entry(rb_next(&(tn)->rb), struct jffs2_tmp_dnode_info, rb) argument 351 #define tn_prev(tn) rb_entry(rb_prev(&(tn)->rb), struct jffs2_tmp_dnode_info, rb) argument 352 #define tn_parent(tn) rb_entry(rb_parent(&(tn)->rb), struct jffs2_tmp_dnode_info, rb) argument 353 #define tn_left(tn) rb_entry((tn)->rb.rb_left, struct jffs2_tmp_dnode_info, rb) argument 354 #define tn_right(tn) rb_entry((tn)->rb.rb_right, struct jffs2_tmp_dnode_info, rb) argument 355 #define tn_erase(tn, list) rb_erase(&tn->rb, list); argument
|
/fs/yaffs2/ |
D | yaffs_guts.c | 701 struct yaffs_tnode *tn = yaffs_alloc_raw_tnode(dev); in yaffs_get_tnode() local 703 if (tn) { in yaffs_get_tnode() 704 memset(tn, 0, dev->tnode_size); in yaffs_get_tnode() 710 return tn; in yaffs_get_tnode() 714 static void yaffs_free_tnode(struct yaffs_dev *dev, struct yaffs_tnode *tn) in yaffs_free_tnode() argument 716 yaffs_free_raw_tnode(dev, tn); in yaffs_free_tnode() 728 static void yaffs_load_tnode_0(struct yaffs_dev *dev, struct yaffs_tnode *tn, in yaffs_load_tnode_0() argument 731 u32 *map = (u32 *) tn; in yaffs_load_tnode_0() 759 u32 yaffs_get_group_base(struct yaffs_dev *dev, struct yaffs_tnode *tn, in yaffs_get_group_base() argument 762 u32 *map = (u32 *) tn; in yaffs_get_group_base() [all …]
|
D | yaffs_allocator.c | 162 struct yaffs_tnode *tn = NULL; in yaffs_alloc_raw_tnode() local 174 tn = allocator->free_tnodes; in yaffs_alloc_raw_tnode() 179 return tn; in yaffs_alloc_raw_tnode() 183 void yaffs_free_raw_tnode(struct yaffs_dev *dev, struct yaffs_tnode *tn) in yaffs_free_raw_tnode() argument 192 if (tn) { in yaffs_free_raw_tnode() 193 tn->internal[0] = allocator->free_tnodes; in yaffs_free_raw_tnode() 194 allocator->free_tnodes = tn; in yaffs_free_raw_tnode()
|
D | yaffs_yaffs2.c | 446 struct yaffs_tnode *tn, u32 level, in yaffs2_checkpt_tnode_worker() argument 454 if (!tn) in yaffs2_checkpt_tnode_worker() 459 if (!tn->internal[i]) in yaffs2_checkpt_tnode_worker() 462 tn->internal[i], in yaffs2_checkpt_tnode_worker() 475 ok = (yaffs2_checkpt_wr(dev, tn, dev->tnode_size) == in yaffs2_checkpt_tnode_worker() 506 struct yaffs_tnode *tn; in yaffs2_rd_checkpt_tnodes() local 516 tn = yaffs_get_tnode(dev); in yaffs2_rd_checkpt_tnodes() 517 if (tn) in yaffs2_rd_checkpt_tnodes() 518 ok = (yaffs2_checkpt_rd(dev, tn, dev->tnode_size) == in yaffs2_rd_checkpt_tnodes() 523 if (tn && ok) in yaffs2_rd_checkpt_tnodes() [all …]
|
D | yaffs_verify.c | 235 struct yaffs_tnode *tn; in yaffs_verify_file() local 270 tn = yaffs_find_tnode_0(dev, &obj->variant.file_variant, i); in yaffs_verify_file() 272 if (!tn) in yaffs_verify_file() 275 the_chunk = yaffs_get_group_base(dev, tn, i); in yaffs_verify_file()
|
D | yaffs_allocator.h | 25 void yaffs_free_raw_tnode(struct yaffs_dev *dev, struct yaffs_tnode *tn);
|
D | yaffs_guts.h | 972 u32 yaffs_get_group_base(struct yaffs_dev *dev, struct yaffs_tnode *tn,
|