Lines Matching defs:ecc
340 * ocfs2_block_check structure describing the crc32 and the ecc.
355 u32 ecc;
360 ecc = ocfs2_hamming_encode_block(data, blocksize);
363 * No ecc'd ocfs2 structure is larger than 4K, so ecc will be no
366 BUG_ON(ecc > USHRT_MAX);
369 bc->bc_ecc = cpu_to_le16((u16)ecc);
387 u32 crc, ecc;
407 ecc = ocfs2_hamming_encode_block(data, blocksize);
408 ocfs2_hamming_fix_block(data, blocksize, ecc ^ bc_ecc);
432 * ocfs2_block_check structure describing the crc32 and the ecc.
447 u32 crc, ecc;
456 for (i = 0, crc = ~0, ecc = 0; i < nr; i++) {
463 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data,
469 * No ecc'd ocfs2 structure is larger than 4K, so ecc will be no
472 BUG_ON(ecc > USHRT_MAX);
475 bc->bc_ecc = cpu_to_le16((u16)ecc);
494 u32 crc, ecc, fix;
520 for (i = 0, ecc = 0; i < nr; i++) {
526 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data,
530 fix = ecc ^ bc_ecc;