Lines Matching refs:bits_per_field
70 format->bits_per_field[0], in bch2_bkey_pack_verify()
71 format->bits_per_field[1], in bch2_bkey_pack_verify()
72 format->bits_per_field[2], in bch2_bkey_pack_verify()
73 format->bits_per_field[3], in bch2_bkey_pack_verify()
74 format->bits_per_field[4]); in bch2_bkey_pack_verify()
159 unsigned bits = state->format->bits_per_field[field]; in get_inc_field()
182 unsigned bits = state->format->bits_per_field[field]; in __set_inc_field()
204 unsigned bits = state->format->bits_per_field[field]; in set_inc_field()
385 unsigned bits = state->format->bits_per_field[field]; in set_inc_field_lossy()
444 unsigned unpacked_bits = bch2_bkey_format_current.bits_per_field[i]; in bkey_format_has_too_big_fields()
446 u64 packed_max = f->bits_per_field[i] in bkey_format_has_too_big_fields()
447 ? ~((~0ULL << 1) << (f->bits_per_field[i] - 1)) in bkey_format_has_too_big_fields()
577 unsigned unpacked_bits = bch2_bkey_format_current.bits_per_field[i]; in set_format_field()
584 f->bits_per_field[i] = bits; in set_format_field()
602 bits += ret.bits_per_field[i]; in bch2_bkey_format_done()
606 if (ret.bits_per_field[BKEY_FIELD_SIZE]) { in bch2_bkey_format_done()
607 unsigned b = min(4U, 32U - ret.bits_per_field[BKEY_FIELD_SIZE]); in bch2_bkey_format_done()
609 ret.bits_per_field[BKEY_FIELD_SIZE] += b; in bch2_bkey_format_done()
618 for (i = 0; i < ARRAY_SIZE(ret.bits_per_field); i++) { in bch2_bkey_format_done()
619 unsigned r = round_up(ret.bits_per_field[i], 8) - in bch2_bkey_format_done()
620 ret.bits_per_field[i]; in bch2_bkey_format_done()
624 ret.bits_per_field[i] + r, in bch2_bkey_format_done()
660 unsigned unpacked_bits = bch2_bkey_format_current.bits_per_field[i]; in bch2_bkey_format_invalid()
662 unsigned packed_bits = min(64, f->bits_per_field[i]); in bch2_bkey_format_invalid()
672 bits += f->bits_per_field[i]; in bch2_bkey_format_invalid()
688 for (unsigned i = 0; i < ARRAY_SIZE(f->bits_per_field); i++) { in bch2_bkey_format_to_text()
692 f->bits_per_field[i], in bch2_bkey_format_to_text()
795 unsigned bits = format->bits_per_field[field]; in compile_bkey_field()
846 bit_offset -= format->bits_per_field[i]; in compile_bkey_field()
1085 .bits_per_field = { in bch2_bkey_pack_test()