Home
last modified time | relevance | path

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

/openbmc/linux/include/uapi/linux/
H A Djffs2.h108 jint32_t hdr_crc; member
116 jint32_t hdr_crc; member
140 jint32_t hdr_crc; member
165 jint32_t hdr_crc; member
181 jint32_t hdr_crc; member
193 jint32_t hdr_crc; member
/openbmc/u-boot/drivers/mtd/ubi/
H A Dio.c788 hdr_crc = be32_to_cpu(ec_hdr->hdr_crc); in ubi_io_read_ec_hdr()
790 if (hdr_crc != crc) { in ubi_io_read_ec_hdr()
797 pnum, crc, hdr_crc); in ubi_io_read_ec_hdr()
1042 hdr_crc = be32_to_cpu(vid_hdr->hdr_crc); in ubi_io_read_vid_hdr()
1044 if (hdr_crc != crc) { in ubi_io_read_vid_hdr()
1051 pnum, crc, hdr_crc); in ubi_io_read_vid_hdr()
1203 hdr_crc = be32_to_cpu(ec_hdr->hdr_crc); in self_check_peb_ec_hdr()
1204 if (hdr_crc != crc) { in self_check_peb_ec_hdr()
1206 crc, hdr_crc); in self_check_peb_ec_hdr()
1291 hdr_crc = be32_to_cpu(vid_hdr->hdr_crc); in self_check_peb_vid_hdr()
[all …]
H A Dubi-media.h153 __be32 hdr_crc; member
281 __be32 hdr_crc; member
H A Ddebug.c62 pr_err("\thdr_crc %#08x\n", be32_to_cpu(ec_hdr->hdr_crc)); in ubi_dump_ec_hdr()
87 pr_err("\thdr_crc %08x\n", be32_to_cpu(vid_hdr->hdr_crc)); in ubi_dump_vid_hdr()
/openbmc/linux/drivers/mtd/ubi/
H A Dio.c757 hdr_crc = be32_to_cpu(ec_hdr->hdr_crc); in ubi_io_read_ec_hdr()
759 if (hdr_crc != crc) { in ubi_io_read_ec_hdr()
766 pnum, crc, hdr_crc); in ubi_io_read_ec_hdr()
1010 hdr_crc = be32_to_cpu(vid_hdr->hdr_crc); in ubi_io_read_vid_hdr()
1012 if (hdr_crc != crc) { in ubi_io_read_vid_hdr()
1019 pnum, crc, hdr_crc); in ubi_io_read_vid_hdr()
1171 hdr_crc = be32_to_cpu(ec_hdr->hdr_crc); in self_check_peb_ec_hdr()
1172 if (hdr_crc != crc) { in self_check_peb_ec_hdr()
1174 crc, hdr_crc); in self_check_peb_ec_hdr()
1261 hdr_crc = be32_to_cpu(vid_hdr->hdr_crc); in self_check_peb_vid_hdr()
[all …]
H A Dubi-media.h156 __be32 hdr_crc; member
284 __be32 hdr_crc; member
H A Ddebug.c60 pr_err("\thdr_crc %#08x\n", be32_to_cpu(ec_hdr->hdr_crc)); in ubi_dump_ec_hdr()
85 pr_err("\thdr_crc %08x\n", be32_to_cpu(vid_hdr->hdr_crc)); in ubi_dump_vid_hdr()
/openbmc/u-boot/include/jffs2/
H A Djffs2.h119 __u32 hdr_crc; member
127 __u32 hdr_crc; member
151 __u32 hdr_crc; member
177 __u32 hdr_crc; member
/openbmc/u-boot/fs/jffs2/
H A Djffs2_private.h42 hdr_crc(struct jffs2_unknown_node *node) in hdr_crc() function
52 if (node->hdr_crc != crc) { in hdr_crc()
H A Djffs2_nand_private.h54 hdr_crc(struct jffs2_unknown_node *node) in hdr_crc() function
64 if (node->hdr_crc != crc) { in hdr_crc()
H A Djffs2_nand_1pass.c748 putLabeledWord("\tbuild_list: hdr_crc = ", jDir->hdr_crc); in dump_dirents()
841 if (node->magic != JFFS2_MAGIC_BITMASK || !hdr_crc(node)) { in jffs2_1pass_build_lists()
H A Djffs2_1pass.c1351 if (summary->hdr_crc != crc) { in jffs2_sum_scan_sumnode()
1443 putLabeledWord("\tbuild_list: hdr_crc = ", jDir->hdr_crc); in dump_dirents()
1668 !hdr_crc(node)) { in jffs2_1pass_build_lists()
/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 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 Dscan.c450 uint32_t hdr_crc, buf_ofs, buf_len; in jffs2_scan_eraseblock() local
762 hdr_crc = crc32(0, &crcnode, sizeof(crcnode)-4); in jffs2_scan_eraseblock()
764 if (hdr_crc != je32_to_cpu(node->hdr_crc)) { in jffs2_scan_eraseblock()
770 je32_to_cpu(node->hdr_crc), in jffs2_scan_eraseblock()
771 hdr_crc); in jffs2_scan_eraseblock()
H A Dgc.c635 if (je32_to_cpu(node->u.hdr_crc) != crc) { in jffs2_garbage_collect_pristine()
637 ref_offset(raw), je32_to_cpu(node->u.hdr_crc), crc); 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 Dfile.c164 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_write_begin()
H A Dreadinode.c896 je32_to_cpu(un->totlen), je32_to_cpu(un->hdr_crc)); in read_unknown()
1060 if (je32_to_cpu(node->u.hdr_crc) != crc32(0, node, sizeof(node->u)-4)) { in jffs2_get_inode_nodes()
1065 je32_to_cpu(node->u.hdr_crc)); in jffs2_get_inode_nodes()
H A Dxattr.c157 offset, je32_to_cpu(rx.hdr_crc), crc); in do_verify_xattr_datum()
307 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 Ddebug.c793 printk(JFFS2_DBG "hdr_crc:\t%#08x\n", je32_to_cpu(node.u.hdr_crc)); in __jffs2_dbg_dump_node()
796 if (crc != je32_to_cpu(node.u.hdr_crc)) { in __jffs2_dbg_dump_node()
H A Dsummary.c591 if (je32_to_cpu(summary->hdr_crc) != crc) { 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 Derase.c431 marker.hdr_crc = cpu_to_je32(crc32(0, &marker, sizeof(struct jffs2_unknown_node)-4)); in jffs2_mark_erased_block()
H A Dfs.c99 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_setattr()
H A Dwbuf.c621 padnode->hdr_crc = cpu_to_je32(crc32(0, padnode, sizeof(*padnode)-4)); in __jffs2_flush_wbuf()
/openbmc/u-boot/drivers/mtd/ubispl/
H A Dubispl.c87 be32_to_cpu(vh->hdr_crc)) { in ubi_io_read_vid_hdr()