Home
last modified time | relevance | path

Searched refs:jffs2_unknown_node (Results 1 – 20 of 20) sorted by relevance

/openbmc/u-boot/fs/jffs2/
H A Djffs2_private.h42 hdr_crc(struct jffs2_unknown_node *node) in hdr_crc()
45 u32 crc = crc32_no_comp(0, (unsigned char *)node, sizeof(struct jffs2_unknown_node) - 4); in hdr_crc()
48 u32 crc = crc32_no_comp(~0, (unsigned char *)node, sizeof(struct jffs2_unknown_node) - 4); in hdr_crc()
H A Djffs2_nand_private.h54 hdr_crc(struct jffs2_unknown_node *node) in hdr_crc()
57 u32 crc = crc32_no_comp(0, (unsigned char *)node, sizeof(struct jffs2_unknown_node) - 4); in hdr_crc()
60 u32 crc = crc32_no_comp(~0, (unsigned char *)node, sizeof(struct jffs2_unknown_node) - 4); in hdr_crc()
H A Djffs2_nand_1pass.c664 struct jffs2_unknown_node onode; in jffs2_1pass_rescan_needed()
665 struct jffs2_unknown_node *node; in jffs2_1pass_rescan_needed()
689 node = (struct jffs2_unknown_node *) get_fl_mem(b->offset, in jffs2_1pass_rescan_needed()
789 struct jffs2_unknown_node *node; in jffs2_1pass_build_lists()
839 while (ofs < sectorsize - sizeof(struct jffs2_unknown_node)) { in jffs2_1pass_build_lists()
840 node = (struct jffs2_unknown_node *)&buf[ofs]; in jffs2_1pass_build_lists()
865 if (node->totlen != sizeof(struct jffs2_unknown_node)) in jffs2_1pass_build_lists()
869 sizeof(struct jffs2_unknown_node)); in jffs2_1pass_build_lists()
871 if (node->totlen < sizeof(struct jffs2_unknown_node)) in jffs2_1pass_build_lists()
875 sizeof(struct jffs2_unknown_node)); in jffs2_1pass_build_lists()
H A Djffs2_1pass.c241 struct jffs2_unknown_node node; in get_node_mem_nand()
340 struct jffs2_unknown_node node; in get_node_mem_onenand()
389 struct jffs2_unknown_node *pNode; in get_node_mem_nor()
1205 struct jffs2_unknown_node onode; in jffs2_1pass_rescan_needed()
1206 struct jffs2_unknown_node *node; in jffs2_1pass_rescan_needed()
1223 node = (struct jffs2_unknown_node *) get_fl_mem(b->offset, in jffs2_1pass_rescan_needed()
1336 struct jffs2_unknown_node crcnode; in jffs2_sum_scan_sumnode()
1473 struct jffs2_unknown_node *node; in jffs2_1pass_build_lists()
1612 node = (struct jffs2_unknown_node *)&buf[ofs-buf_ofs]; in jffs2_1pass_build_lists()
1743 if (node->totlen != sizeof(struct jffs2_unknown_node)) in jffs2_1pass_build_lists()
[all …]
/openbmc/linux/fs/jffs2/
H A Dwrite.c47 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_new_inode()
72 D1(if(je32_to_cpu(ri->hdr_crc) != crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)) { in jffs2_write_dnode()
221 D1(if(je32_to_cpu(rd->hdr_crc) != crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)) { in jffs2_write_dirent()
378 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_write_inode_range()
513 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_create()
576 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_unlink()
693 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_link()
H A Dscan.c447 struct jffs2_unknown_node *node; in jffs2_scan_eraseblock()
448 struct jffs2_unknown_node crcnode; in jffs2_scan_eraseblock()
643 sizeof(struct jffs2_unknown_node), in jffs2_scan_eraseblock()
654 sizeof(struct jffs2_unknown_node), in jffs2_scan_eraseblock()
662 node = (struct jffs2_unknown_node *)&buf[ofs-buf_ofs]; in jffs2_scan_eraseblock()
877 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(sizeof(struct jffs2_unknown_node))))) in jffs2_scan_eraseblock()
879 ofs += PAD(sizeof(struct jffs2_unknown_node)); in jffs2_scan_eraseblock()
883 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(sizeof(struct jffs2_unknown_node))))) in jffs2_scan_eraseblock()
885 ofs += PAD(sizeof(struct jffs2_unknown_node)); in jffs2_scan_eraseblock()
H A Ddir.c336 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_symlink()
403 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_symlink()
548 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_mkdir()
671 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_mknod()
723 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_mknod()
H A Dgc.c634 crc = crc32(0, node, sizeof(struct jffs2_unknown_node)-4); in jffs2_garbage_collect_pristine()
816 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_garbage_collect_metadata()
862 rd.hdr_crc = cpu_to_je32(crc32(0, &rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_garbage_collect_dirent()
1073 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_garbage_collect_hole()
1365 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_garbage_collect_dnode()
H A Derase.c422 struct jffs2_unknown_node marker = { in jffs2_mark_erased_block()
430 marker.hdr_crc = cpu_to_je32(crc32(0, &marker, sizeof(struct jffs2_unknown_node)-4)); in jffs2_mark_erased_block()
H A Dreadinode.c888 …ead_unknown(struct jffs2_sb_info *c, struct jffs2_raw_node_ref *ref, struct jffs2_unknown_node *un) in read_unknown()
1111 if (JFFS2_MIN_NODE_HEADER < sizeof(struct jffs2_unknown_node) && in jffs2_get_inode_nodes()
1112 len < sizeof(struct jffs2_unknown_node)) { in jffs2_get_inode_nodes()
1113 err = read_more(c, ref, sizeof(struct jffs2_unknown_node), &len, buf); in jffs2_get_inode_nodes()
H A Dwbuf.c616 if ( c->wbuf_len + sizeof(struct jffs2_unknown_node) < c->wbuf_pagesize) { in __jffs2_flush_wbuf()
617 struct jffs2_unknown_node *padnode = (void *)(c->wbuf + c->wbuf_len); in __jffs2_flush_wbuf()
1022 static const struct jffs2_unknown_node oob_cleanmarker =
H A Dfs.c99 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_setattr()
557 c->cleanmarker_size = sizeof(struct jffs2_unknown_node); in jffs2_do_fill_super()
H A Dsuper.c373 BUILD_BUG_ON(sizeof(struct jffs2_unknown_node) != 12); in init_jffs2_fs()
H A Dfile.c164 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_write_begin()
H A Dsummary.c576 struct jffs2_unknown_node crcnode; in jffs2_sum_scan_sumnode()
712 isum.hdr_crc = cpu_to_je32(crc32(0, &isum, sizeof(struct jffs2_unknown_node) - 4)); in jffs2_sum_write_data()
H A Dxattr.c307 rx.hdr_crc = cpu_to_je32(crc32(0, &rx, sizeof(struct jffs2_unknown_node) - 4)); in save_xattr_datum()
517 rr.hdr_crc = cpu_to_je32(crc32(0, &rr, sizeof(struct jffs2_unknown_node) - 4)); in save_xattr_ref()
H A Dnodemgmt.c583 struct jffs2_unknown_node n; in jffs2_mark_node_obsolete()
/openbmc/u-boot/include/jffs2/
H A Djffs2.h113 struct jffs2_unknown_node struct
190 struct jffs2_unknown_node u;
/openbmc/linux/include/uapi/linux/
H A Djffs2.h102 struct jffs2_unknown_node struct
209 struct jffs2_unknown_node u;
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_util.c54 struct jffs2_unknown_node cleanmarker; in nand_erase_opts()