Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/mtd/ubi/
Dio.c698 uint32_t crc, magic, hdr_crc; in ubi_io_read_ec_hdr() local
757 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()
762 pnum, crc, hdr_crc); in ubi_io_read_ec_hdr()
766 pnum, crc, hdr_crc); in ubi_io_read_ec_hdr()
818 ec_hdr->hdr_crc = cpu_to_be32(crc); in ubi_io_write_ec_hdr()
970 uint32_t crc, magic, hdr_crc; in ubi_io_read_vid_hdr() local
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()
1015 pnum, crc, hdr_crc); in ubi_io_read_vid_hdr()
[all …]
Dubi-media.h156 __be32 hdr_crc; member
284 __be32 hdr_crc; member
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()
/linux-6.1.9/include/uapi/linux/
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
/linux-6.1.9/fs/jffs2/
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()
Ddir.c335 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_symlink()
402 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_symlink()
546 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_mkdir()
668 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_mknod()
720 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_mknod()
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()
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()
Dfile.c165 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_write_begin()
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()
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()
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()
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()
Derase.c431 marker.hdr_crc = cpu_to_je32(crc32(0, &marker, sizeof(struct jffs2_unknown_node)-4)); in jffs2_mark_erased_block()
Dfs.c99 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_setattr()
Dwbuf.c621 padnode->hdr_crc = cpu_to_je32(crc32(0, padnode, sizeof(*padnode)-4)); in __jffs2_flush_wbuf()