| /linux/include/trace/stages/ |
| H A D | stage5_get_offsets.h | 94 #define __bitmask_size_in_bytes_raw(nr_bits) \ argument 95 (((nr_bits) + 7) / 8) 97 #define __bitmask_size_in_longs(nr_bits) \ argument 98 ((__bitmask_size_in_bytes_raw(nr_bits) + \ 106 #define __bitmask_size_in_bytes(nr_bits) \ argument 107 (__bitmask_size_in_longs(nr_bits) * (BITS_PER_LONG / 8)) 110 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, \ argument 111 __bitmask_size_in_longs(nr_bits)) 117 #define __rel_bitmask(item, nr_bits) __rel_dynamic_array(unsigned long, item, \ argument 118 __bitmask_size_in_longs(nr_bits))
|
| H A D | stage6_event_callback.h | 53 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) 59 #define __assign_bitmask(dst, src, nr_bits) \ 60 memcpy(__get_bitmask(dst), (src), __bitmask_size_in_bytes(nr_bits)) 103 #define __rel_bitmask(item, nr_bits) __rel_dynamic_array(unsigned long, item, -1) 109 #define __assign_rel_bitmask(dst, src, nr_bits) \ 110 memcpy(__get_rel_bitmask(dst), (src), __bitmask_size_in_bytes(nr_bits)) 55 __bitmask(item,nr_bits) global() argument 61 __assign_bitmask(dst,src,nr_bits) global() argument 105 __rel_bitmask(item,nr_bits) global() argument 111 __assign_rel_bitmask(dst,src,nr_bits) global() argument
|
| H A D | stage2_data_offsets.h | 39 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) argument 57 #define __rel_bitmask(item, nr_bits) __rel_dynamic_array(unsigned long, item, -1) argument
|
| H A D | stage1_struct_define.h | 33 #define __bitmask(item, nr_bits) __dynamic_array(char, item, -1) argument 51 #define __rel_bitmask(item, nr_bits) __rel_dynamic_array(char, item, -1) argument
|
| H A D | stage4_event_fields.h | 48 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) argument 72 #define __rel_bitmask(item, nr_bits) __rel_dynamic_array(unsigned long, item, -1) argument
|
| /linux/kernel/bpf/ |
| H A D | bloom_filter.c | 97 u32 bitset_bytes, bitset_mask, nr_hash_funcs, nr_bits; in bloom_map_alloc() local 127 if (check_mul_overflow(attr->max_entries, nr_hash_funcs, &nr_bits) || in bloom_map_alloc() 128 check_mul_overflow(nr_bits / 5, (u32)7, &nr_bits) || in bloom_map_alloc() 129 nr_bits > (1UL << 31)) { in bloom_map_alloc() 137 if (nr_bits <= BITS_PER_LONG) in bloom_map_alloc() 138 nr_bits = BITS_PER_LONG; in bloom_map_alloc() 140 nr_bits = roundup_pow_of_two(nr_bits); in bloom_map_alloc() 141 bitset_bytes = BITS_TO_BYTES(nr_bits); in bloom_map_alloc() 142 bitset_mask = nr_bits - 1; in bloom_map_alloc()
|
| H A D | helpers.c | 3158 int nr_bits; member 3205 u32 nr_bits = BYTES_TO_BITS(nr_bytes); in bpf_iter_bits_new() local 3212 kit->nr_bits = 0; in bpf_iter_bits_new() 3222 if (nr_bits == 64) { in bpf_iter_bits_new() 3229 kit->nr_bits = nr_bits; in bpf_iter_bits_new() 3249 kit->nr_bits = nr_bits; in bpf_iter_bits_new() 3265 int bit = kit->bit, nr_bits = kit->nr_bits; in bpf_iter_bits_next() local 3268 if (!nr_bits || bit >= nr_bits) in bpf_iter_bits_next() 3271 bits = nr_bits == 64 ? &kit->bits_copy : kit->bits; in bpf_iter_bits_next() 3272 bit = find_next_bit(bits, nr_bits, bit + 1); in bpf_iter_bits_next() [all …]
|
| /linux/arch/sh/drivers/ |
| H A D | heartbeat.c | 67 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/drivers/md/ |
| H A D | dm-era-target.c | 31 uint32_t nr_bits; member 56 unsigned int nr_bits, dm_block_t *root) in setup_on_disk_bitset() argument 64 return dm_bitset_resize(info, *root, 0, nr_bits, false, root); in setup_on_disk_bitset() 67 static size_t bitset_size(unsigned int nr_bits) in bitset_size() argument 69 return sizeof(unsigned long) * dm_div_up(nr_bits, BITS_PER_LONG); in bitset_size() 96 ws->md.nr_bits = nr_blocks; in writeset_init() 97 r = setup_on_disk_bitset(info, ws->md.nr_bits, &ws->md.root); in writeset_init() 163 __le32 nr_bits; member 366 disk->nr_bits = cpu_to_le32(core->nr_bits); in ws_pack() 372 core->nr_bits = le32_to_cpu(disk->nr_bits); in ws_unpack() [all …]
|
| /linux/drivers/gpu/drm/imagination/ |
| H A D | pvr_device_info.c | 56 const u32 nr_bits = min(bitmask_size * 64, mapping_max); in pvr_device_info_set_common() local 78 for (u32 i = 0; i < nr_bits; i++) { in pvr_device_info_set_common() 221 const u32 nr_bits = min(features_size * 64, mapping_max); in pvr_device_info_set_features() local 239 for (u32 i = 0; i < nr_bits; i++) { in pvr_device_info_set_features()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_btf.h | 15 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument 16 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
|
| /linux/tools/testing/selftests/kvm/include/x86/ |
| H A D | processor.h | 750 uint32_t nr_bits; in this_pmu_has() local 753 nr_bits = this_cpu_property(X86_PROPERTY_PMU_EBX_BIT_VECTOR_LENGTH); in this_pmu_has() 754 return nr_bits > feature.f.bit && !this_cpu_has(feature.f); in this_pmu_has() 758 nr_bits = this_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS); in this_pmu_has() 759 return nr_bits > feature.f.bit || this_cpu_has(feature.f); in this_pmu_has() 990 uint32_t nr_bits; in kvm_pmu_has() local 993 nr_bits = kvm_cpu_property(X86_PROPERTY_PMU_EBX_BIT_VECTOR_LENGTH); in kvm_pmu_has() 994 return nr_bits > feature.f.bit && !kvm_cpu_has(feature.f); in kvm_pmu_has() 998 nr_bits = kvm_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS); in kvm_pmu_has() 999 return nr_bits > feature.f.bit || kvm_cpu_has(feature.f); in kvm_pmu_has()
|
| /linux/tools/bpf/bpftool/Documentation/ |
| H A D | bpftool-btf.rst | 105 [3] INT 'long long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none) 160 [3] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED 169 [6] INT 'unsigned int' size=4 bits_offset=0 nr_bits=32 encoding=(none) 170 [7] INT 'char' size=1 bits_offset=0 nr_bits=8 encoding=SIGNED 172 [9] INT '__ARRAY_SIZE_TYPE__' size=4 bits_offset=0 nr_bits=32 encoding=(none)
|
| /linux/drivers/md/persistent-data/ |
| H A D | dm-bitset.c | 45 unsigned int nr_bits; member 53 unsigned int bit, nr = min(64u, p->nr_bits - (index * 64)); in pack_bits() 79 p.nr_bits = size; in dm_bitset_new()
|
| /linux/arch/sh/include/asm/ |
| H A D | heartbeat.h | 12 unsigned int nr_bits; member
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu_npc_fs.c | 85 u8 nr_bits, int start_kwi, int offset, u8 intf) in npc_set_kw_masks() argument 101 if (offset + nr_bits <= 64) { in npc_set_kw_masks() 105 field->kw_mask[start_kwi] |= GENMASK_ULL(nr_bits - 1, 0) in npc_set_kw_masks() 108 } else if (offset + nr_bits > 64 && in npc_set_kw_masks() 109 offset + nr_bits <= 128) { in npc_set_kw_masks() 118 bits_in_kw = nr_bits + offset - 64; in npc_set_kw_masks() 132 bits_in_kw = nr_bits + offset - 128; in npc_set_kw_masks() 204 u8 nr_bits, lid, lt, ld; in npc_check_overlap() local 231 nr_bits = dummy->layer_mdata.len * 8; in npc_check_overlap() 233 npc_set_kw_masks(mcam, NPC_UNKNOWN, nr_bits, in npc_check_overlap() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | syscall.c | 31 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument 32 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
|
| H A D | verifier_bits_iter.c | 14 u32 nr_bits) __ksym __weak;
|
| /linux/arch/sh/boards/mach-se/7751/ |
| H A D | setup.c | 23 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
|
| /linux/arch/sh/boards/mach-se/7721/ |
| H A D | setup.c | 21 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
|
| /linux/arch/sh/boards/mach-se/7206/ |
| H A D | setup.c | 53 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
|
| /linux/arch/sh/boards/ |
| H A D | board-polaris.c | 70 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
|
| /linux/arch/sh/boards/mach-se/770x/ |
| H A D | setup.c | 97 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
|
| /linux/mm/ |
| H A D | percpu-internal.h | 32 int nr_bits; /* total bits responsible for */ member
|
| H A D | percpu.c | 638 if (end == block->nr_bits) in pcpu_block_update() 1309 static void pcpu_init_md_block(struct pcpu_block_md *block, int nr_bits) in pcpu_init_md_block() argument 1312 block->contig_hint = nr_bits; in pcpu_init_md_block() 1313 block->left_free = nr_bits; in pcpu_init_md_block() 1314 block->right_free = nr_bits; in pcpu_init_md_block() 1316 block->nr_bits = nr_bits; in pcpu_init_md_block()
|