Lines Matching refs:nr

97 u32 ocfs2_hamming_encode(u32 parity, void *data, unsigned int d, unsigned int nr)  in ocfs2_hamming_encode()  argument
118 b = calc_code_bit(nr + i, &p); in ocfs2_hamming_encode()
156 void ocfs2_hamming_fix(void *data, unsigned int d, unsigned int nr, in ocfs2_hamming_fix() argument
174 if (fix >= calc_code_bit(nr + d, NULL)) in ocfs2_hamming_fix()
182 b = calc_code_bit(nr, NULL); in ocfs2_hamming_fix()
441 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr, in ocfs2_block_check_compute_bhs() argument
447 BUG_ON(nr < 0); in ocfs2_block_check_compute_bhs()
449 if (!nr) in ocfs2_block_check_compute_bhs()
454 for (i = 0, crc = ~0, ecc = 0; i < nr; i++) { in ocfs2_block_check_compute_bhs()
485 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr, in ocfs2_block_check_validate_bhs() argument
494 BUG_ON(nr < 0); in ocfs2_block_check_validate_bhs()
496 if (!nr) in ocfs2_block_check_validate_bhs()
507 for (i = 0, crc = ~0; i < nr; i++) in ocfs2_block_check_validate_bhs()
518 for (i = 0, ecc = 0; i < nr; i++) { in ocfs2_block_check_validate_bhs()
529 for (i = 0; i < nr; i++) { in ocfs2_block_check_validate_bhs()
539 for (i = 0, crc = ~0; i < nr; i++) in ocfs2_block_check_validate_bhs()
585 struct buffer_head **bhs, int nr, in ocfs2_compute_meta_ecc_bhs() argument
589 ocfs2_block_check_compute_bhs(bhs, nr, bc); in ocfs2_compute_meta_ecc_bhs()
593 struct buffer_head **bhs, int nr, in ocfs2_validate_meta_ecc_bhs() argument
600 rc = ocfs2_block_check_validate_bhs(bhs, nr, bc, in ocfs2_validate_meta_ecc_bhs()