Home
last modified time | relevance | path

Searched refs:nr_bits (Results 1 – 25 of 42) sorted by relevance

12

/linux-5.19.10/include/trace/stages/ !
Dstage5_get_offsets.h66 #define __bitmask_size_in_bytes_raw(nr_bits) \ argument
67 (((nr_bits) + 7) / 8)
69 #define __bitmask_size_in_longs(nr_bits) \ argument
70 ((__bitmask_size_in_bytes_raw(nr_bits) + \
78 #define __bitmask_size_in_bytes(nr_bits) \ argument
79 (__bitmask_size_in_longs(nr_bits) * (BITS_PER_LONG / 8))
82 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, \ argument
83 __bitmask_size_in_longs(nr_bits))
86 #define __rel_bitmask(item, nr_bits) __rel_dynamic_array(unsigned long, item, \ argument
87 __bitmask_size_in_longs(nr_bits))
Dstage6_event_callback.h51 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) argument
57 #define __assign_bitmask(dst, src, nr_bits) \ argument
58 memcpy(__get_bitmask(dst), (src), __bitmask_size_in_bytes(nr_bits))
92 #define __rel_bitmask(item, nr_bits) __rel_dynamic_array(unsigned long, item, -1) argument
98 #define __assign_rel_bitmask(dst, src, nr_bits) \ argument
99 memcpy(__get_rel_bitmask(dst), (src), __bitmask_size_in_bytes(nr_bits))
Dstage2_data_offsets.h39 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) argument
54 #define __rel_bitmask(item, nr_bits) __rel_dynamic_array(unsigned long, item, -1) argument
Dstage1_struct_define.h33 #define __bitmask(item, nr_bits) __dynamic_array(char, item, -1) argument
48 #define __rel_bitmask(item, nr_bits) __rel_dynamic_array(char, item, -1) argument
Dstage4_event_fields.h47 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) argument
65 #define __rel_bitmask(item, nr_bits) __rel_dynamic_array(unsigned long, item, -1) argument
/linux-5.19.10/kernel/bpf/ !
Dbloom_filter.c93 u32 bitset_bytes, bitset_mask, nr_hash_funcs, nr_bits; in bloom_map_alloc() local
126 if (check_mul_overflow(attr->max_entries, nr_hash_funcs, &nr_bits) || in bloom_map_alloc()
127 check_mul_overflow(nr_bits / 5, (u32)7, &nr_bits) || in bloom_map_alloc()
128 nr_bits > (1UL << 31)) { in bloom_map_alloc()
136 if (nr_bits <= BITS_PER_LONG) in bloom_map_alloc()
137 nr_bits = BITS_PER_LONG; in bloom_map_alloc()
139 nr_bits = roundup_pow_of_two(nr_bits); in bloom_map_alloc()
140 bitset_bytes = BITS_TO_BYTES(nr_bits); in bloom_map_alloc()
141 bitset_mask = nr_bits - 1; in bloom_map_alloc()
Dbtf.c821 u8 nr_bits, nr_bytes; in btf_type_int_is_regular() local
825 nr_bits = BTF_INT_BITS(int_data); in btf_type_int_is_regular()
826 nr_bytes = BITS_ROUNDUP_BYTES(nr_bits); in btf_type_int_is_regular()
827 if (BITS_PER_BYTE_MASKED(nr_bits) || in btf_type_int_is_regular()
848 u8 nr_bits; in btf_member_is_reg_int() local
856 nr_bits = BTF_INT_BITS(int_data); in btf_member_is_reg_int()
866 BITS_ROUNDUP_BYTES(nr_bits) == expected_size; in btf_member_is_reg_int()
872 BITS_PER_BYTE_MASKED(nr_bits) || in btf_member_is_reg_int()
873 BITS_ROUNDUP_BYTES(nr_bits) != expected_size) in btf_member_is_reg_int()
2062 u32 struct_bits_off, nr_bits, nr_int_data_bits, bytes_offset; in btf_int_check_kflag_member() local
[all …]
/linux-5.19.10/arch/sh/drivers/ !
Dheartbeat.c67 if ((bit == 0) || (bit == (hd->nr_bits)-1)) in heartbeat_timer()
109 if (!hd->nr_bits) { in heartbeat_drv_probe()
111 hd->nr_bits = ARRAY_SIZE(default_bit_pos); in heartbeat_drv_probe()
115 for (i = 0; i < hd->nr_bits; i++) in heartbeat_drv_probe()
/linux-5.19.10/drivers/md/ !
Ddm-era-target.c29 uint32_t nr_bits; member
54 unsigned 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 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 …]
Ddm-zoned-metadata.c2373 unsigned int bit, unsigned int nr_bits) in dmz_set_bits() argument
2376 unsigned int end = bit + nr_bits; in dmz_set_bits()
2482 unsigned int count, bit, nr_bits; in dmz_validate_blocks() local
2501 nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit); in dmz_validate_blocks()
2503 count = dmz_set_bits((unsigned long *)mblk->data, bit, nr_bits); in dmz_validate_blocks()
2510 nr_blocks -= nr_bits; in dmz_validate_blocks()
2511 chunk_block += nr_bits; in dmz_validate_blocks()
2530 static int dmz_clear_bits(unsigned long *bitmap, int bit, int nr_bits) in dmz_clear_bits() argument
2533 int end = bit + nr_bits; in dmz_clear_bits()
2563 unsigned int count, bit, nr_bits; in dmz_invalidate_blocks() local
[all …]
Ddm-cache-metadata.c1575 static int __set_dirty_bits_v1(struct dm_cache_metadata *cmd, unsigned nr_bits, unsigned long *bits) in __set_dirty_bits_v1() argument
1579 for (i = 0; i < nr_bits; i++) { in __set_dirty_bits_v1()
1595 static int __set_dirty_bits_v2(struct dm_cache_metadata *cmd, unsigned nr_bits, unsigned long *bits) in __set_dirty_bits_v2() argument
1600 if (nr_bits != from_cblock(cmd->cache_blocks)) { in __set_dirty_bits_v2()
1610 return dm_bitset_new(&cmd->dirty_info, &cmd->dirty_root, nr_bits, is_dirty_callback, bits); in __set_dirty_bits_v2()
1614 unsigned nr_bits, in dm_cache_set_dirty_bits() argument
1621 r = __set_dirty_bits_v2(cmd, nr_bits, bits); in dm_cache_set_dirty_bits()
1623 r = __set_dirty_bits_v1(cmd, nr_bits, bits); in dm_cache_set_dirty_bits()
Ddm-cache-metadata.h99 unsigned nr_bits, unsigned long *bits);
/linux-5.19.10/tools/bpf/bpftool/ !
Dbtf_dumper.c325 static void btf_dumper_bitfield(__u32 nr_bits, __u8 bit_offset, in btf_dumper_bitfield() argument
334 bits_to_copy = bit_offset + nr_bits; in btf_dumper_bitfield()
345 right_shift_bits = 128 - nr_bits; in btf_dumper_bitfield()
356 int nr_bits = BTF_INT_BITS(int_type); in btf_dumper_int_bits() local
365 btf_dumper_bitfield(nr_bits, bit_offset, data, jw, in btf_dumper_int_bits()
374 __u32 nr_bits; in btf_dumper_int() local
377 nr_bits = BTF_INT_BITS(*int_type); in btf_dumper_int()
380 BITS_PER_BYTE_MASKED(nr_bits)) { in btf_dumper_int()
386 if (nr_bits == 128) { in btf_dumper_int()
/linux-5.19.10/fs/btrfs/ !
Dsubpage.c92 unsigned int nr_bits; in btrfs_init_subpage_info() local
96 nr_bits = PAGE_SIZE / sectorsize; in btrfs_init_subpage_info()
97 subpage_info->bitmap_nr_bits = nr_bits; in btrfs_init_subpage_info()
100 cur += nr_bits; in btrfs_init_subpage_info()
103 cur += nr_bits; in btrfs_init_subpage_info()
106 cur += nr_bits; in btrfs_init_subpage_info()
109 cur += nr_bits; in btrfs_init_subpage_info()
112 cur += nr_bits; in btrfs_init_subpage_info()
115 cur += nr_bits; in btrfs_init_subpage_info()
/linux-5.19.10/tools/testing/selftests/bpf/ !
Dtest_btf.h13 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
14 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
/linux-5.19.10/tools/testing/selftests/bpf/progs/ !
Dsyscall.c24 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
25 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
/linux-5.19.10/tools/bpf/bpftool/Documentation/ !
Dbpftool-btf.rst104 [3] INT 'long long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none)
159 [3] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED
168 [6] INT 'unsigned int' size=4 bits_offset=0 nr_bits=32 encoding=(none)
169 [7] INT 'char' size=1 bits_offset=0 nr_bits=8 encoding=SIGNED
171 [9] INT '__ARRAY_SIZE_TYPE__' size=4 bits_offset=0 nr_bits=32 encoding=(none)
Dbpftool-gen.rst388 [1] INT 'long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none)
394 [7] INT 'char' size=1 bits_offset=0 nr_bits=8 encoding=(none)
396 [9] INT 'unsigned int' size=4 bits_offset=0 nr_bits=32 encoding=(none)
428 [5] INT 'long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none)
431 [8] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED
/linux-5.19.10/arch/sh/include/asm/ !
Dheartbeat.h12 unsigned int nr_bits; member
/linux-5.19.10/drivers/md/persistent-data/ !
Ddm-bitset.c44 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()
/linux-5.19.10/drivers/net/ethernet/marvell/octeontx2/af/ !
Drvu_npc_fs.c59 u8 nr_bits, int start_kwi, int offset, u8 intf) in npc_set_kw_masks() argument
75 if (offset + nr_bits <= 64) { in npc_set_kw_masks()
79 field->kw_mask[start_kwi] |= GENMASK_ULL(nr_bits - 1, 0) in npc_set_kw_masks()
82 } else if (offset + nr_bits > 64 && in npc_set_kw_masks()
83 offset + nr_bits <= 128) { in npc_set_kw_masks()
92 bits_in_kw = nr_bits + offset - 64; in npc_set_kw_masks()
106 bits_in_kw = nr_bits + offset - 128; in npc_set_kw_masks()
178 u8 nr_bits, lid, lt, ld; in npc_check_overlap() local
205 nr_bits = dummy->layer_mdata.len * 8; in npc_check_overlap()
207 npc_set_kw_masks(mcam, NPC_UNKNOWN, nr_bits, in npc_check_overlap()
[all …]
/linux-5.19.10/arch/sh/boards/mach-se/7751/ !
Dsetup.c23 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
/linux-5.19.10/arch/sh/boards/mach-se/7721/ !
Dsetup.c21 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
/linux-5.19.10/arch/sh/boards/mach-se/7206/ !
Dsetup.c53 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
/linux-5.19.10/arch/sh/boards/ !
Dboard-polaris.c70 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),

12