/openbmc/linux/include/trace/stages/ |
H A D | stage5_get_offsets.h | 79 #define __bitmask_size_in_bytes_raw(nr_bits) \ argument 80 (((nr_bits) + 7) / 8) 82 #define __bitmask_size_in_longs(nr_bits) \ argument 83 ((__bitmask_size_in_bytes_raw(nr_bits) + \ 91 #define __bitmask_size_in_bytes(nr_bits) \ argument 92 (__bitmask_size_in_longs(nr_bits) * (BITS_PER_LONG / 8)) 95 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, \ argument 96 __bitmask_size_in_longs(nr_bits)) 102 #define __rel_bitmask(item, nr_bits) __rel_dynamic_array(unsigned long, item, \ argument 103 __bitmask_size_in_longs(nr_bits))
|
H A D | stage6_event_callback.h | 54 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) argument 60 #define __assign_bitmask(dst, src, nr_bits) \ argument 61 memcpy(__get_bitmask(dst), (src), __bitmask_size_in_bytes(nr_bits)) 105 #define __rel_bitmask(item, nr_bits) __rel_dynamic_array(unsigned long, item, -1) argument 111 #define __assign_rel_bitmask(dst, src, nr_bits) \ argument 112 memcpy(__get_rel_bitmask(dst), (src), __bitmask_size_in_bytes(nr_bits))
|
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
|
/openbmc/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 | btf.c | 843 u8 nr_bits, nr_bytes; in btf_type_int_is_regular() local 847 nr_bits = BTF_INT_BITS(int_data); in btf_type_int_is_regular() 848 nr_bytes = BITS_ROUNDUP_BYTES(nr_bits); in btf_type_int_is_regular() 849 if (BITS_PER_BYTE_MASKED(nr_bits) || in btf_type_int_is_regular() 870 u8 nr_bits; in btf_member_is_reg_int() local 878 nr_bits = BTF_INT_BITS(int_data); in btf_member_is_reg_int() 888 BITS_ROUNDUP_BYTES(nr_bits) == expected_size; in btf_member_is_reg_int() 894 BITS_PER_BYTE_MASKED(nr_bits) || in btf_member_is_reg_int() 895 BITS_ROUNDUP_BYTES(nr_bits) != expected_size) in btf_member_is_reg_int() 2117 u32 struct_bits_off, nr_bits, nr_int_data_bits, bytes_offset; in btf_int_check_kflag_member() local [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | npcm7xx_rng-test.c | 121 static double calc_runs_p(const unsigned long *buf, unsigned int nr_bits) in calc_runs_p() argument 129 g_assert(nr_bits % BITS_PER_LONG == 0); in calc_runs_p() 131 for (j = 0; j < nr_bits / BITS_PER_LONG; j++) { in calc_runs_p() 134 pi = (double)nr_ones / nr_bits; in calc_runs_p() 136 for (k = 0; k < nr_bits - 1; k++) { in calc_runs_p() 141 return erfc(fabs(vn_obs - 2 * nr_bits * pi * (1.0 - pi)) in calc_runs_p() 142 / (2 * sqrt(2 * nr_bits) * pi * (1.0 - pi))); in calc_runs_p()
|
/openbmc/qemu/target/s390x/ |
H A D | cpu_features.c | 159 int nr_bits, le_bit; in s390_add_from_feat_block() local 163 nr_bits = 16384; in s390_add_from_feat_block() 168 nr_bits = 256; in s390_add_from_feat_block() 172 nr_bits = 128; in s390_add_from_feat_block() 175 le_bit = find_first_bit((unsigned long *) data, nr_bits); in s390_add_from_feat_block() 176 while (le_bit < nr_bits) { in s390_add_from_feat_block() 183 le_bit = find_next_bit((unsigned long *) data, nr_bits, le_bit + 1); in s390_add_from_feat_block()
|
/openbmc/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()
|
/openbmc/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 …]
|
H A 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 …]
|
H A D | dm-cache-metadata.c | 1584 static int __set_dirty_bits_v1(struct dm_cache_metadata *cmd, unsigned int nr_bits, unsigned long *… in __set_dirty_bits_v1() argument 1589 for (i = 0; i < nr_bits; i++) { in __set_dirty_bits_v1() 1605 static int __set_dirty_bits_v2(struct dm_cache_metadata *cmd, unsigned int nr_bits, unsigned long *… in __set_dirty_bits_v2() argument 1610 if (nr_bits != from_cblock(cmd->cache_blocks)) { in __set_dirty_bits_v2() 1620 return dm_bitset_new(&cmd->dirty_info, &cmd->dirty_root, nr_bits, is_dirty_callback, bits); in __set_dirty_bits_v2() 1624 unsigned int nr_bits, in dm_cache_set_dirty_bits() argument 1631 r = __set_dirty_bits_v2(cmd, nr_bits, bits); in dm_cache_set_dirty_bits() 1633 r = __set_dirty_bits_v1(cmd, nr_bits, bits); in dm_cache_set_dirty_bits()
|
/openbmc/linux/tools/bpf/bpftool/ |
H A D | btf_dumper.c | 351 static void btf_dumper_bitfield(__u32 nr_bits, __u8 bit_offset, in btf_dumper_bitfield() argument 360 bits_to_copy = bit_offset + nr_bits; in btf_dumper_bitfield() 371 right_shift_bits = 128 - nr_bits; in btf_dumper_bitfield() 382 int nr_bits = BTF_INT_BITS(int_type); in btf_dumper_int_bits() local 391 btf_dumper_bitfield(nr_bits, bit_offset, data, jw, in btf_dumper_int_bits() 400 __u32 nr_bits; in btf_dumper_int() local 403 nr_bits = BTF_INT_BITS(*int_type); in btf_dumper_int() 406 BITS_PER_BYTE_MASKED(nr_bits)) { in btf_dumper_int() 412 if (nr_bits == 128) { in btf_dumper_int()
|
/openbmc/qemu/hw/ppc/ |
H A D | ppc.c | 845 target_ulong value, int nr_bits) in __cpu_ppc_store_decr() argument 854 value = extract64(value, 0, nr_bits); in __cpu_ppc_store_decr() 855 decr = extract64(decr, 0, nr_bits); in __cpu_ppc_store_decr() 856 signed_value = sextract64(value, 0, nr_bits); in __cpu_ppc_store_decr() 857 signed_decr = sextract64(decr, 0, nr_bits); in __cpu_ppc_store_decr() 859 trace_ppc_decr_store(nr_bits, decr, value); in __cpu_ppc_store_decr() 897 int nr_bits) in _cpu_ppc_store_decr() argument 903 tb_env->flags, decr, value, nr_bits); in _cpu_ppc_store_decr() 912 int nr_bits = 32; in cpu_ppc_store_decr() local 920 nr_bits = pcc->lrg_decr_bits; in cpu_ppc_store_decr() [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | subpage.c | 93 unsigned int nr_bits; in btrfs_init_subpage_info() local 97 nr_bits = PAGE_SIZE / sectorsize; in btrfs_init_subpage_info() 98 subpage_info->bitmap_nr_bits = nr_bits; in btrfs_init_subpage_info() 101 cur += nr_bits; in btrfs_init_subpage_info() 104 cur += nr_bits; in btrfs_init_subpage_info() 107 cur += nr_bits; in btrfs_init_subpage_info() 110 cur += nr_bits; in btrfs_init_subpage_info() 113 cur += nr_bits; in btrfs_init_subpage_info()
|
/openbmc/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))
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | syscall.c | 24 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument 25 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
|
/openbmc/linux/tools/bpf/bpftool/Documentation/ |
H A D | bpftool-btf.rst | 104 [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)
|
/openbmc/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()
|
/openbmc/linux/arch/sh/include/asm/ |
H A D | heartbeat.h | 12 unsigned int nr_bits; member
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_npc_fs.c | 74 u8 nr_bits, int start_kwi, int offset, u8 intf) in npc_set_kw_masks() argument 90 if (offset + nr_bits <= 64) { in npc_set_kw_masks() 94 field->kw_mask[start_kwi] |= GENMASK_ULL(nr_bits - 1, 0) in npc_set_kw_masks() 97 } else if (offset + nr_bits > 64 && in npc_set_kw_masks() 98 offset + nr_bits <= 128) { in npc_set_kw_masks() 107 bits_in_kw = nr_bits + offset - 64; in npc_set_kw_masks() 121 bits_in_kw = nr_bits + offset - 128; in npc_set_kw_masks() 193 u8 nr_bits, lid, lt, ld; in npc_check_overlap() local 220 nr_bits = dummy->layer_mdata.len * 8; in npc_check_overlap() 222 npc_set_kw_masks(mcam, NPC_UNKNOWN, nr_bits, in npc_check_overlap() [all …]
|
/openbmc/linux/arch/sh/boards/mach-se/7751/ |
H A D | setup.c | 23 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
|
/openbmc/linux/arch/sh/boards/mach-se/7721/ |
H A D | setup.c | 21 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
|
/openbmc/linux/arch/sh/boards/mach-se/7206/ |
H A D | setup.c | 53 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
|