Lines Matching refs:ecc
338 * ocfs2_block_check structure describing the crc32 and the ecc.
353 u32 ecc;
358 ecc = ocfs2_hamming_encode_block(data, blocksize);
361 * No ecc'd ocfs2 structure is larger than 4K, so ecc will be no
364 BUG_ON(ecc > USHRT_MAX);
367 bc->bc_ecc = cpu_to_le16((u16)ecc);
385 u32 crc, ecc;
405 ecc = ocfs2_hamming_encode_block(data, blocksize);
406 ocfs2_hamming_fix_block(data, blocksize, ecc ^ bc_ecc);
430 * ocfs2_block_check structure describing the crc32 and the ecc.
445 u32 crc, ecc;
454 for (i = 0, crc = ~0, ecc = 0; i < nr; i++) {
461 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data,
467 * No ecc'd ocfs2 structure is larger than 4K, so ecc will be no
470 BUG_ON(ecc > USHRT_MAX);
473 bc->bc_ecc = cpu_to_le16((u16)ecc);
492 u32 crc, ecc, fix;
518 for (i = 0, ecc = 0; i < nr; i++) {
524 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data,
528 fix = ecc ^ bc_ecc;