Lines Matching refs:nr
89 * _in_this_hunk_. nr is the bit offset of this hunk. So, if you had
97 u32 ocfs2_hamming_encode(u32 parity, void *data, unsigned int d, unsigned int nr)
115 * i is the offset in this hunk, nr + i is the total bit
118 b = calc_code_bit(nr + i, &p);
150 * Like ocfs2_hamming_encode(), this can handle hunks. nr is the bit
156 void ocfs2_hamming_fix(void *data, unsigned int d, unsigned int nr,
171 * nr + d is the bit right past the data hunk we're looking at.
174 if (fix >= calc_code_bit(nr + d, NULL))
178 * nr is the offset in the data hunk we're starting at. Let's
182 b = calc_code_bit(nr, NULL);
195 * nr + i is the offset in the total data buffer.
441 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr,
447 BUG_ON(nr < 0);
449 if (!nr)
454 for (i = 0, crc = ~0, ecc = 0; i < nr; i++) {
485 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr,
494 BUG_ON(nr < 0);
496 if (!nr)
507 for (i = 0, crc = ~0; i < nr; i++)
518 for (i = 0, ecc = 0; i < nr; i++) {
529 for (i = 0; i < nr; i++) {
539 for (i = 0, crc = ~0; i < nr; i++)
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,