Searched refs:nr_bits (Results 1 – 8 of 8) sorted by relevance
/drivers/md/ |
D | dm-era-target.c | 29 uint32_t nr_bits; member 53 unsigned nr_bits, dm_block_t *root) in setup_on_disk_bitset() argument 61 return dm_bitset_resize(info, *root, 0, nr_bits, false, root); in setup_on_disk_bitset() 64 static size_t bitset_size(unsigned nr_bits) in bitset_size() argument 66 return sizeof(unsigned long) * dm_div_up(nr_bits, BITS_PER_LONG); in bitset_size() 74 ws->md.nr_bits = nr_blocks; in writeset_alloc() 92 memset(ws->bits, 0, bitset_size(ws->md.nr_bits)); in writeset_init() 94 r = setup_on_disk_bitset(info, ws->md.nr_bits, &ws->md.root); in writeset_init() 157 __le32 nr_bits; member 355 disk->nr_bits = cpu_to_le32(core->nr_bits); in ws_pack() [all …]
|
D | dm-zoned-metadata.c | 1892 unsigned int bit, unsigned int nr_bits) in dmz_set_bits() argument 1895 unsigned int end = bit + nr_bits; in dmz_set_bits() 2001 unsigned int count, bit, nr_bits; in dmz_validate_blocks() local 2020 nr_bits = min(nr_blocks, DMZ_BLOCK_SIZE_BITS - bit); in dmz_validate_blocks() 2022 count = dmz_set_bits((unsigned long *)mblk->data, bit, nr_bits); in dmz_validate_blocks() 2029 nr_blocks -= nr_bits; in dmz_validate_blocks() 2030 chunk_block += nr_bits; in dmz_validate_blocks() 2049 static int dmz_clear_bits(unsigned long *bitmap, int bit, int nr_bits) in dmz_clear_bits() argument 2052 int end = bit + nr_bits; in dmz_clear_bits() 2082 unsigned int count, bit, nr_bits; in dmz_invalidate_blocks() local [all …]
|
D | dm-cache-metadata.c | 1572 static int __set_dirty_bits_v1(struct dm_cache_metadata *cmd, unsigned nr_bits, unsigned long *bits) in __set_dirty_bits_v1() argument 1576 for (i = 0; i < nr_bits; i++) { in __set_dirty_bits_v1() 1592 static int __set_dirty_bits_v2(struct dm_cache_metadata *cmd, unsigned nr_bits, unsigned long *bits) in __set_dirty_bits_v2() argument 1597 if (nr_bits != from_cblock(cmd->cache_blocks)) { in __set_dirty_bits_v2() 1607 return dm_bitset_new(&cmd->dirty_info, &cmd->dirty_root, nr_bits, is_dirty_callback, bits); in __set_dirty_bits_v2() 1611 unsigned nr_bits, in dm_cache_set_dirty_bits() argument 1618 r = __set_dirty_bits_v2(cmd, nr_bits, bits); in dm_cache_set_dirty_bits() 1620 r = __set_dirty_bits_v1(cmd, nr_bits, bits); in dm_cache_set_dirty_bits()
|
D | dm-cache-metadata.h | 99 unsigned nr_bits, unsigned long *bits);
|
D | dm-clone-metadata.c | 474 static size_t bitmap_size(unsigned long nr_bits) in bitmap_size() argument 476 return BITS_TO_LONGS(nr_bits) * sizeof(long); in bitmap_size()
|
/drivers/md/persistent-data/ |
D | dm-bitset.c | 44 unsigned nr_bits; member 52 unsigned bit, nr = min(64u, p->nr_bits - (index * 64)); in pack_bits() 77 p.nr_bits = size; in dm_bitset_new()
|
/drivers/memory/ |
D | omap-gpmc.c | 438 int nr_bits; in get_gpmc_timing_reg() local 443 nr_bits = end_bit - st_bit + 1; in get_gpmc_timing_reg() 444 mask = (1 << nr_bits) - 1; in get_gpmc_timing_reg() 607 int ticks, mask, nr_bits; in set_gpmc_timing_reg() local 613 nr_bits = end_bit - st_bit + 1; in set_gpmc_timing_reg() 614 mask = (1 << nr_bits) - 1; in set_gpmc_timing_reg()
|
/drivers/media/dvb-frontends/drx39xyj/ |
D | drxj.c | 2739 u32 nr_bits = 0; in ctrl_set_cfg_mpeg_output() local 2823 nr_bits = 8; in ctrl_set_cfg_mpeg_output() 2826 nr_bits = 7; in ctrl_set_cfg_mpeg_output() 2829 nr_bits = 6; in ctrl_set_cfg_mpeg_output() 2832 nr_bits = 5; in ctrl_set_cfg_mpeg_output() 2835 nr_bits = 4; in ctrl_set_cfg_mpeg_output() 2843 (ext_attr->curr_symbol_rate / 8) * nr_bits * 188; in ctrl_set_cfg_mpeg_output()
|