Lines Matching refs:bhs
483 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr, in ocfs2_block_check_compute_bhs() argument
497 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_compute_bhs()
503 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data, in ocfs2_block_check_compute_bhs()
504 bhs[i]->b_size * 8, in ocfs2_block_check_compute_bhs()
505 bhs[i]->b_size * 8 * i); in ocfs2_block_check_compute_bhs()
527 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr, in ocfs2_block_check_validate_bhs() argument
550 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs()
566 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data, in ocfs2_block_check_validate_bhs()
567 bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs()
568 bhs[i]->b_size * 8 * i); in ocfs2_block_check_validate_bhs()
576 ocfs2_hamming_fix(bhs[i]->b_data, bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs()
577 bhs[i]->b_size * 8 * i, fix); in ocfs2_block_check_validate_bhs()
582 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs()
627 struct buffer_head **bhs, int nr, in ocfs2_compute_meta_ecc_bhs() argument
631 ocfs2_block_check_compute_bhs(bhs, nr, bc); in ocfs2_compute_meta_ecc_bhs()
635 struct buffer_head **bhs, int nr, in ocfs2_validate_meta_ecc_bhs() argument
642 rc = ocfs2_block_check_validate_bhs(bhs, nr, bc, in ocfs2_validate_meta_ecc_bhs()