Lines Matching refs:bhs
429 * bhs is the blocks to be checked. bc is a pointer to the
441 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr,
455 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size);
461 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data,
462 bhs[i]->b_size * 8,
463 bhs[i]->b_size * 8 * i);
485 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr,
508 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size);
524 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data,
525 bhs[i]->b_size * 8,
526 bhs[i]->b_size * 8 * i);
534 ocfs2_hamming_fix(bhs[i]->b_data, bhs[i]->b_size * 8,
535 bhs[i]->b_size * 8 * i, fix);
540 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size);
585 struct buffer_head **bhs, int nr,
589 ocfs2_block_check_compute_bhs(bhs, nr, bc);
593 struct buffer_head **bhs, int nr,
600 rc = ocfs2_block_check_validate_bhs(bhs, nr, bc,