/drivers/md/ |
D | dm-era-target.c | 29 uint32_t nr_bits; member 54 unsigned int nr_bits, dm_block_t *root) in setup_on_disk_bitset() argument 62 return dm_bitset_resize(info, *root, 0, nr_bits, false, root); in setup_on_disk_bitset() 65 static size_t bitset_size(unsigned int nr_bits) in bitset_size() argument 67 return sizeof(unsigned long) * dm_div_up(nr_bits, BITS_PER_LONG); in bitset_size() 94 ws->md.nr_bits = nr_blocks; in writeset_init() 95 r = setup_on_disk_bitset(info, ws->md.nr_bits, &ws->md.root); in writeset_init() 158 __le32 nr_bits; member 356 disk->nr_bits = cpu_to_le32(core->nr_bits); in ws_pack() 362 core->nr_bits = le32_to_cpu(disk->nr_bits); in ws_unpack() [all …]
|
D | dm-zoned-metadata.c | 2370 unsigned int bit, unsigned int nr_bits) in dmz_set_bits() argument 2373 unsigned int end = bit + nr_bits; in dmz_set_bits() 2479 unsigned int count, bit, nr_bits; in dmz_validate_blocks() local 2498 nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit); in dmz_validate_blocks() 2500 count = dmz_set_bits((unsigned long *)mblk->data, bit, nr_bits); in dmz_validate_blocks() 2507 nr_blocks -= nr_bits; in dmz_validate_blocks() 2508 chunk_block += nr_bits; in dmz_validate_blocks() 2527 static int dmz_clear_bits(unsigned long *bitmap, int bit, int nr_bits) in dmz_clear_bits() argument 2530 int end = bit + nr_bits; in dmz_clear_bits() 2560 unsigned int count, bit, nr_bits; in dmz_invalidate_blocks() local [all …]
|
D | dm-cache-metadata.c | 1577 static int __set_dirty_bits_v1(struct dm_cache_metadata *cmd, unsigned int nr_bits, unsigned long *… in __set_dirty_bits_v1() argument 1581 for (i = 0; i < nr_bits; i++) { in __set_dirty_bits_v1() 1597 static int __set_dirty_bits_v2(struct dm_cache_metadata *cmd, unsigned int nr_bits, unsigned long *… in __set_dirty_bits_v2() argument 1602 if (nr_bits != from_cblock(cmd->cache_blocks)) { in __set_dirty_bits_v2() 1612 return dm_bitset_new(&cmd->dirty_info, &cmd->dirty_root, nr_bits, is_dirty_callback, bits); in __set_dirty_bits_v2() 1616 unsigned int nr_bits, in dm_cache_set_dirty_bits() argument 1623 r = __set_dirty_bits_v2(cmd, nr_bits, bits); in dm_cache_set_dirty_bits() 1625 r = __set_dirty_bits_v1(cmd, nr_bits, bits); in dm_cache_set_dirty_bits()
|
D | dm-cache-metadata.h | 99 unsigned int nr_bits, unsigned long *bits);
|
D | dm-clone-metadata.c | 468 static size_t bitmap_size(unsigned long nr_bits) in bitmap_size() argument 470 return BITS_TO_LONGS(nr_bits) * sizeof(long); in bitmap_size()
|
/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_npc_fs.c | 70 u8 nr_bits, int start_kwi, int offset, u8 intf) in npc_set_kw_masks() argument 86 if (offset + nr_bits <= 64) { in npc_set_kw_masks() 90 field->kw_mask[start_kwi] |= GENMASK_ULL(nr_bits - 1, 0) in npc_set_kw_masks() 93 } else if (offset + nr_bits > 64 && in npc_set_kw_masks() 94 offset + nr_bits <= 128) { in npc_set_kw_masks() 103 bits_in_kw = nr_bits + offset - 64; in npc_set_kw_masks() 117 bits_in_kw = nr_bits + offset - 128; in npc_set_kw_masks() 189 u8 nr_bits, lid, lt, ld; in npc_check_overlap() local 216 nr_bits = dummy->layer_mdata.len * 8; in npc_check_overlap() 218 npc_set_kw_masks(mcam, NPC_UNKNOWN, nr_bits, in npc_check_overlap() [all …]
|
/drivers/md/persistent-data/ |
D | dm-bitset.c | 44 unsigned int nr_bits; member 52 unsigned int 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 | 439 int nr_bits; in get_gpmc_timing_reg() local 444 nr_bits = end_bit - st_bit + 1; in get_gpmc_timing_reg() 445 mask = (1 << nr_bits) - 1; in get_gpmc_timing_reg() 608 int ticks, mask, nr_bits; in set_gpmc_timing_reg() local 614 nr_bits = end_bit - st_bit + 1; in set_gpmc_timing_reg() 615 mask = (1 << nr_bits) - 1; in set_gpmc_timing_reg()
|
/drivers/media/dvb-frontends/drx39xyj/ |
D | drxj.c | 2738 u32 nr_bits = 0; in ctrl_set_cfg_mpeg_output() local 2822 nr_bits = 8; in ctrl_set_cfg_mpeg_output() 2825 nr_bits = 7; in ctrl_set_cfg_mpeg_output() 2828 nr_bits = 6; in ctrl_set_cfg_mpeg_output() 2831 nr_bits = 5; in ctrl_set_cfg_mpeg_output() 2834 nr_bits = 4; in ctrl_set_cfg_mpeg_output() 2842 (ext_attr->curr_symbol_rate / 8) * nr_bits * 188; in ctrl_set_cfg_mpeg_output()
|