Lines Matching refs:blocksize
144 u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize) in ocfs2_hamming_encode_block() argument
146 return ocfs2_hamming_encode(0, data, blocksize * 8, 0); in ocfs2_hamming_encode_block()
212 void ocfs2_hamming_fix_block(void *data, unsigned int blocksize, in ocfs2_hamming_fix_block() argument
215 ocfs2_hamming_fix(data, blocksize * 8, 0, fix); in ocfs2_hamming_fix_block()
349 void ocfs2_block_check_compute(void *data, size_t blocksize, in ocfs2_block_check_compute() argument
357 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_compute()
358 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_compute()
378 int ocfs2_block_check_validate(void *data, size_t blocksize, in ocfs2_block_check_validate() argument
395 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_validate()
405 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_validate()
406 ocfs2_hamming_fix_block(data, blocksize, ecc ^ bc_ecc); in ocfs2_block_check_validate()
409 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_validate()