Home
last modified time | relevance | path

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

/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()
106 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); 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()
265 rd->node_crc = cpu_to_je32(crc32(0, rd, sizeof(*rd)-8)); 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()
388 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_write_inode_range()
389 ri->data_crc = cpu_to_je32(crc32(0, comprbuf, cdatalen)); in jffs2_write_inode_range()
463 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_do_create()
513 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_create()
[all …]
Ddir.c331 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_symlink()
334 ri->data_crc = cpu_to_je32(crc32(0, target, targetlen)); in jffs2_symlink()
335 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_symlink()
398 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_symlink()
406 rd->node_crc = cpu_to_je32(crc32(0, rd, sizeof(*rd)-8)); in jffs2_symlink()
407 rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen)); in jffs2_symlink()
493 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_mkdir()
541 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_mkdir()
549 rd->node_crc = cpu_to_je32(crc32(0, rd, sizeof(*rd)-8)); in jffs2_mkdir()
550 rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen)); in jffs2_mkdir()
[all …]
Dgc.c634 crc = crc32(0, node, sizeof(struct jffs2_unknown_node)-4); in jffs2_garbage_collect_pristine()
643 crc = crc32(0, node, sizeof(node->i)-8); in jffs2_garbage_collect_pristine()
652 crc = crc32(0, node->i.data, je32_to_cpu(node->i.csize)); in jffs2_garbage_collect_pristine()
663 crc = crc32(0, node, sizeof(node->d)-8); in jffs2_garbage_collect_pristine()
678 crc = crc32(0, node->d.name, node->d.nsize); 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()
831 ri.node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8)); in jffs2_garbage_collect_metadata()
832 ri.data_crc = cpu_to_je32(crc32(0, mdata, mdatalen)); 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()
874 rd.node_crc = cpu_to_je32(crc32(0, &rd, sizeof(rd)-8)); in jffs2_garbage_collect_dirent()
[all …]
Dxattr.c68 return crc32(xprefix, xname, name_len) ^ crc32(xprefix, xvalue, xsize); in xattr_datum_hashkey()
154 crc = crc32(0, &rx, sizeof(rx) - 4); in do_verify_xattr_datum()
231 crc = crc32(0, data, length); in do_load_xattr_datum()
307 rx.hdr_crc = cpu_to_je32(crc32(0, &rx, sizeof(struct jffs2_unknown_node) - 4)); in save_xattr_datum()
314 rx.data_crc = cpu_to_je32(crc32(0, vecs[1].iov_base, vecs[1].iov_len)); in save_xattr_datum()
315 rx.node_crc = cpu_to_je32(crc32(0, &rx, sizeof(struct jffs2_raw_xattr) - 4)); in save_xattr_datum()
385 xd->data_crc = crc32(0, data, xd->name_len + 1 + xd->value_len); in create_xattr_datum()
466 crc = crc32(0, &rr, sizeof(rr) - 4); in verify_xattr_ref()
517 rr.hdr_crc = cpu_to_je32(crc32(0, &rr, sizeof(struct jffs2_unknown_node) - 4)); in save_xattr_ref()
529 rr.node_crc = cpu_to_je32(crc32(0, &rr, sizeof(rr) - 4)); in save_xattr_ref()
Dsummary.c589 crc = crc32(0, &crcnode, sizeof(crcnode)-4); in jffs2_sum_scan_sumnode()
602 crc = crc32(0, summary, sizeof(struct jffs2_raw_summary)-8); in jffs2_sum_scan_sumnode()
609 crc = crc32(0, summary->sum, sumsize - sizeof(struct jffs2_raw_summary)); 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()
806 isum.sum_crc = cpu_to_je32(crc32(0, c->summary->sum_buf, datasize)); in jffs2_sum_write_data()
807 isum.node_crc = cpu_to_je32(crc32(0, &isum, sizeof(isum) - 8)); in jffs2_sum_write_data()
Dread.c51 crc = crc32(0, ri, sizeof(*ri)-8); in jffs2_read_dnode()
123 crc = crc32(0, readbuf, je32_to_cpu(ri->csize)); in jffs2_read_dnode()
Dscan.c335 crc = crc32(0, rx, sizeof(struct jffs2_raw_xattr) - 4); in jffs2_scan_xattr_node()
391 crc = crc32(0, rr, sizeof(*rr) - 4); in jffs2_scan_xref_node()
759 hdr_crc = crc32(0, &crcnode, sizeof(crcnode)-4); in jffs2_scan_eraseblock()
1006 crc = crc32(0, ri, sizeof(*ri)-8); in jffs2_scan_inode_node()
1055 crc = crc32(0, rd, sizeof(*rd)-8); in jffs2_scan_dirent_node()
1081 crc = crc32(0, fd->name, rd->nsize); in jffs2_scan_dirent_node()
Dreadinode.c99 crc = crc32(tn->partial_crc, buffer, len); in check_node_data()
596 crc = crc32(0, rd, sizeof(*rd) - 8); in read_direntry()
709 crc = crc32(0, rd, sizeof(*rd) - 8); in read_dnode()
780 tn->partial_crc = crc32(0, buf, len); in read_dnode()
1044 if (je32_to_cpu(node->u.hdr_crc) != crc32(0, node, sizeof(node->u)-4)) { in jffs2_get_inode_nodes()
1213 crc = crc32(0, latest_node, sizeof(*latest_node)-8); in jffs2_do_read_inode_internal()
Dfile.c170 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_write_begin()
183 ri.node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8)); in jffs2_write_begin()
Dfs.c99 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_setattr()
133 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_do_setattr()
135 ri->data_crc = cpu_to_je32(crc32(0, mdata, mdatalen)); in jffs2_do_setattr()
Ddebug.c795 crc = crc32(0, &node.u, sizeof(node.u) - 4); in __jffs2_dbg_dump_node()
832 crc = crc32(0, &node.i, sizeof(node.i) - 8); in __jffs2_dbg_dump_node()
854 crc = crc32(0, &node.d, sizeof(node.d) - 8); in __jffs2_dbg_dump_node()
Derase.c433 marker.hdr_crc = cpu_to_je32(crc32(0, &marker, sizeof(struct jffs2_unknown_node)-4)); in jffs2_mark_erased_block()
Dwbuf.c621 padnode->hdr_crc = cpu_to_je32(crc32(0, padnode, sizeof(*padnode)-4)); in __jffs2_flush_wbuf()
/fs/ubifs/
Dio.c266 crc = crc32(UBIFS_CRC32_INIT, buf + 8, node_len - 8); in ubifs_check_node()
324 crc = crc32(UBIFS_CRC32_INIT, buf + 8, UBIFS_PAD_NODE_SZ - 8); in ubifs_pad()
381 crc = crc32(UBIFS_CRC32_INIT, node + 8, len - 8); in ubifs_crc_node()
464 crc = crc32(UBIFS_CRC32_INIT, node + 8, len - 8); in ubifs_prep_grp_node()
Drecovery.c1431 crc = crc32(UBIFS_CRC32_INIT, (void *)ino + 8, len - 8); in fix_size_in_place()
Dtnc.c472 crc = crc32(UBIFS_CRC32_INIT, buf + 8, node_len - 8); in try_read_node()
/fs/incfs/
Dformat.c149 result = crc32(0, record, record_size); in calc_md_crc()
277 crc = crc32(0, value.data, value.len); in incfs_write_file_attr_to_backing_file()
/fs/f2fs/
Dcheckpoint.c1377 __u32 crc32 = 0; in do_checkpoint() local
1442 crc32 = f2fs_checkpoint_chksum(sbi, ckpt); in do_checkpoint()
1445 = cpu_to_le32(crc32); in do_checkpoint()
1454 cp_ver |= ((__u64)crc32 << 32); in do_checkpoint()
/fs/gfs2/
Drecovery.c130 hash = crc32(~0, lh, LH_V1_SIZE - 4); in __get_log_header()
Dlog.c711 hash = ~crc32(~0, lh, LH_V1_SIZE); in gfs2_write_log_header()