Home
last modified time | relevance | path

Searched refs:ecc (Results 1 – 12 of 12) sorted by relevance

/fs/ocfs2/
Dblockcheck.c395 u32 ecc; in ocfs2_block_check_compute() local
400 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_compute()
406 BUG_ON(ecc > USHRT_MAX); in ocfs2_block_check_compute()
409 bc->bc_ecc = cpu_to_le16((u16)ecc); in ocfs2_block_check_compute()
426 u32 crc, ecc; in ocfs2_block_check_validate() local
446 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_validate()
447 ocfs2_hamming_fix_block(data, blocksize, ecc ^ check.bc_ecc); in ocfs2_block_check_validate()
486 u32 crc, ecc; in ocfs2_block_check_compute_bhs() local
495 for (i = 0, crc = ~0, ecc = 0; i < nr; i++) { in ocfs2_block_check_compute_bhs()
502 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data, in ocfs2_block_check_compute_bhs()
[all …]
/fs/yaffs2/
Dyaffs_tagscompat.c31 unsigned ecc = 0; in yaffs_calc_tags_ecc() local
34 tags->ecc = 0; in yaffs_calc_tags_ecc()
40 ecc ^= bit; in yaffs_calc_tags_ecc()
43 tags->ecc = ecc; in yaffs_calc_tags_ecc()
48 unsigned ecc = tags->ecc; in yaffs_check_tags_ecc() local
52 ecc ^= tags->ecc; in yaffs_check_tags_ecc()
54 if (ecc && ecc <= 64) { in yaffs_check_tags_ecc()
58 ecc--; in yaffs_check_tags_ecc()
60 b[ecc / 8] ^= (1 << (ecc & 7)); in yaffs_check_tags_ecc()
66 } else if (ecc) { in yaffs_check_tags_ecc()
Dyaffs_packedtags2.c119 &pt->ecc); in yaffs_pack_tags2()
168 struct yaffs_ecc_other ecc; in yaffs_unpack_tags2() local
172 &ecc); in yaffs_unpack_tags2()
176 &pt->ecc, &ecc); in yaffs_unpack_tags2()
Dyaffs_ecc.c72 void yaffs_ecc_calc(const unsigned char *data, unsigned char *ecc) in yaffs_ecc_calc() argument
91 ecc[2] = (~col_parity) | 0x03; in yaffs_ecc_calc()
110 ecc[1] = ~t; in yaffs_ecc_calc()
129 ecc[0] = ~t; in yaffs_ecc_calc()
Dyaffs_ecc.h35 void yaffs_ecc_calc(const unsigned char *data, unsigned char *ecc);
40 struct yaffs_ecc_other *ecc);
Dyaffs_packedtags1.h28 unsigned ecc:12; member
DKconfig62 bool "Use the same ecc byte order as Steven Hill's nand_ecc.c"
66 This makes yaffs_ecc.c use the same ecc byte order as Steven
67 Hill's nand_ecc.c. If not set, then you get the same ecc byte
Dyaffs_packedtags2.h33 struct yaffs_ecc_other ecc; member
Dyaffs_packedtags1.c32 pt->ecc = 0; in yaffs_pack_tags1()
Dyaffs_guts.h151 unsigned ecc:12; member
/fs/ubifs/
Dscan.c160 sleb->ecc = 1; in ubifs_start_scan()
Dubifs.h317 int ecc; member