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()
407 unsigned nr_key_bits = b->nr_key_bits; in bkey_packed_successor() local
411 EBUG_ON(b->nr_key_bits != bkey_format_key_bits(f)); in bkey_packed_successor()
413 if (!nr_key_bits) in bkey_packed_successor()
418 first_bit = high_bit_offset + nr_key_bits - 1; in bkey_packed_successor()
422 while (nr_key_bits) { in bkey_packed_successor()
423 unsigned bits = min(64 - offset, nr_key_bits); in bkey_packed_successor()
434 nr_key_bits -= bits; in bkey_packed_successor()
708 unsigned nr_key_bits = b->nr_key_bits; in bch2_bkey_greatest_differing_bit() local
712 EBUG_ON(b->nr_key_bits != bkey_format_key_bits(&b->format)); in bch2_bkey_greatest_differing_bit()
718 while (nr_key_bits) { in bch2_bkey_greatest_differing_bit()
719 if (nr_key_bits < word_bits) { in bch2_bkey_greatest_differing_bit()
720 l_v >>= word_bits - nr_key_bits; in bch2_bkey_greatest_differing_bit()
721 r_v >>= word_bits - nr_key_bits; in bch2_bkey_greatest_differing_bit()
722 nr_key_bits = 0; in bch2_bkey_greatest_differing_bit()
724 nr_key_bits -= word_bits; in bch2_bkey_greatest_differing_bit()
728 return fls64(l_v ^ r_v) - 1 + nr_key_bits; in bch2_bkey_greatest_differing_bit()
749 unsigned nr_key_bits = b->nr_key_bits; in bch2_bkey_ffs() local
752 EBUG_ON(b->nr_key_bits != bkey_format_key_bits(&b->format)); in bch2_bkey_ffs()
754 offset = nr_key_bits; in bch2_bkey_ffs()
762 while (nr_key_bits) { in bch2_bkey_ffs()
763 unsigned bits = nr_key_bits + offset < 64 in bch2_bkey_ffs()
764 ? nr_key_bits in bch2_bkey_ffs()
773 nr_key_bits -= bits; in bch2_bkey_ffs()