Lines Matching refs:nr_bits
28 uint32_t nr_bits; member
52 unsigned nr_bits, dm_block_t *root) in setup_on_disk_bitset() argument
60 return dm_bitset_resize(info, *root, 0, nr_bits, false, root); in setup_on_disk_bitset()
63 static size_t bitset_size(unsigned nr_bits) in bitset_size() argument
65 return sizeof(unsigned long) * dm_div_up(nr_bits, BITS_PER_LONG); in bitset_size()
73 ws->md.nr_bits = nr_blocks; in writeset_alloc()
91 memset(ws->bits, 0, bitset_size(ws->md.nr_bits)); in writeset_init()
93 r = setup_on_disk_bitset(info, ws->md.nr_bits, &ws->md.root); in writeset_init()
156 __le32 nr_bits; member
355 disk->nr_bits = cpu_to_le32(core->nr_bits); in ws_pack()
361 core->nr_bits = le32_to_cpu(disk->nr_bits); in ws_unpack()
657 unsigned nr_bits, current_bit; member
692 unsigned b, e = min(d->current_bit + INSERTS_PER_STEP, d->nr_bits); in metadata_digest_transcribe_writeset()
713 if (b == d->nr_bits) in metadata_digest_transcribe_writeset()
750 d->nr_bits = min(d->writeset.nr_bits, md->nr_blocks); in metadata_digest_lookup_writeset()