Lines Matching refs:bhs
431 * bhs is the blocks to be checked. bc is a pointer to the
443 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr,
457 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size);
463 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data,
464 bhs[i]->b_size * 8,
465 bhs[i]->b_size * 8 * i);
487 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr,
510 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size);
526 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data,
527 bhs[i]->b_size * 8,
528 bhs[i]->b_size * 8 * i);
536 ocfs2_hamming_fix(bhs[i]->b_data, bhs[i]->b_size * 8,
537 bhs[i]->b_size * 8 * i, fix);
542 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size);
587 struct buffer_head **bhs, int nr,
591 ocfs2_block_check_compute_bhs(bhs, nr, bc);
595 struct buffer_head **bhs, int nr,
602 rc = ocfs2_block_check_validate_bhs(bhs, nr, bc,