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