Lines Matching refs:nr_key_bits
18 unsigned nr_key_bits = bkey_format_key_bits(f) + high_bit_offset;
21 if (!nr_key_bits) {
27 unsigned next_key_bits = nr_key_bits;
29 if (nr_key_bits < 64) {
30 v >>= 64 - nr_key_bits;
36 bch2_prt_u64_base2_nbits(out, v, min(word_bits, nr_key_bits));
46 nr_key_bits = next_key_bits;
406 unsigned nr_key_bits = b->nr_key_bits;
410 EBUG_ON(b->nr_key_bits != bkey_format_key_bits(f));
412 if (!nr_key_bits)
417 first_bit = high_bit_offset + nr_key_bits - 1;
421 while (nr_key_bits) {
422 unsigned bits = min(64 - offset, nr_key_bits);
433 nr_key_bits -= bits;
694 * Bits are indexed from 0 - return is [0, nr_key_bits)
703 unsigned nr_key_bits = b->nr_key_bits;
707 EBUG_ON(b->nr_key_bits != bkey_format_key_bits(&b->format));
713 while (nr_key_bits) {
714 if (nr_key_bits < word_bits) {
715 l_v >>= word_bits - nr_key_bits;
716 r_v >>= word_bits - nr_key_bits;
717 nr_key_bits = 0;
719 nr_key_bits -= word_bits;
723 return fls64(l_v ^ r_v) - 1 + nr_key_bits;
738 * Bits are indexed from 0 - return is [0, nr_key_bits)
744 unsigned nr_key_bits = b->nr_key_bits;
747 EBUG_ON(b->nr_key_bits != bkey_format_key_bits(&b->format));
749 offset = nr_key_bits;
757 while (nr_key_bits) {
758 unsigned bits = nr_key_bits + offset < 64
759 ? nr_key_bits
768 nr_key_bits -= bits;