Lines Matching defs:nr
99 * _in_this_hunk_. nr is the bit offset of this hunk. So, if you had
107 u32 ocfs2_hamming_encode(u32 parity, void *data, unsigned int d, unsigned int nr)
125 * i is the offset in this hunk, nr + i is the total bit
128 b = calc_code_bit(nr + i, &p);
160 * Like ocfs2_hamming_encode(), this can handle hunks. nr is the bit
166 void ocfs2_hamming_fix(void *data, unsigned int d, unsigned int nr,
181 * nr + d is the bit right past the data hunk we're looking at.
184 if (fix >= calc_code_bit(nr + d, NULL))
188 * nr is the offset in the data hunk we're starting at. Let's
192 b = calc_code_bit(nr, NULL);
205 * nr + i is the offset in the total data buffer.
482 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr,
488 BUG_ON(nr < 0);
490 if (!nr)
495 for (i = 0, crc = ~0, ecc = 0; i < nr; i++) {
526 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr,
534 BUG_ON(nr < 0);
536 if (!nr)
547 for (i = 0, crc = ~0; i < nr; i++)
558 for (i = 0, ecc = 0; i < nr; i++) {
569 for (i = 0; i < nr; i++) {
579 for (i = 0, crc = ~0; i < nr; i++)
625 struct buffer_head **bhs, int nr,
629 ocfs2_block_check_compute_bhs(bhs, nr, bc);
633 struct buffer_head **bhs, int nr,
640 rc = ocfs2_block_check_validate_bhs(bhs, nr, bc,