/Linux-v5.4/include/trace/ |
D | trace_events.h | 105 #define __bitmask(item, nr_bits) __dynamic_array(char, item, -1) argument 200 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) argument 445 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) argument 507 #define __bitmask_size_in_bytes_raw(nr_bits) \ argument 508 (((nr_bits) + 7) / 8) 510 #define __bitmask_size_in_longs(nr_bits) \ argument 511 ((__bitmask_size_in_bytes_raw(nr_bits) + \ 519 #define __bitmask_size_in_bytes(nr_bits) \ argument 520 (__bitmask_size_in_longs(nr_bits) * (BITS_PER_LONG / 8)) 523 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, \ argument [all …]
|
/Linux-v5.4/arch/sh/drivers/ |
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-v5.4/tools/bpf/bpftool/ |
D | btf_dumper.c | 150 static void btf_dumper_bitfield(__u32 nr_bits, __u8 bit_offset, in btf_dumper_bitfield() argument 159 bits_to_copy = bit_offset + nr_bits; in btf_dumper_bitfield() 170 right_shift_bits = 128 - nr_bits; in btf_dumper_bitfield() 181 int nr_bits = BTF_INT_BITS(int_type); in btf_dumper_int_bits() local 190 btf_dumper_bitfield(nr_bits, bit_offset, data, jw, in btf_dumper_int_bits() 199 __u32 nr_bits; in btf_dumper_int() local 202 nr_bits = BTF_INT_BITS(*int_type); in btf_dumper_int() 205 BITS_PER_BYTE_MASKED(nr_bits)) { in btf_dumper_int() 211 if (nr_bits == 128) { in btf_dumper_int()
|
/Linux-v5.4/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 | 1918 unsigned int bit, unsigned int nr_bits) in dmz_set_bits() argument 1921 unsigned int end = bit + nr_bits; in dmz_set_bits() 2027 unsigned int count, bit, nr_bits; in dmz_validate_blocks() local 2046 nr_bits = min(nr_blocks, DMZ_BLOCK_SIZE_BITS - bit); in dmz_validate_blocks() 2048 count = dmz_set_bits((unsigned long *)mblk->data, bit, nr_bits); in dmz_validate_blocks() 2055 nr_blocks -= nr_bits; in dmz_validate_blocks() 2056 chunk_block += nr_bits; in dmz_validate_blocks() 2075 static int dmz_clear_bits(unsigned long *bitmap, int bit, int nr_bits) in dmz_clear_bits() argument 2078 int end = bit + nr_bits; in dmz_clear_bits() 2108 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);
|
/Linux-v5.4/kernel/bpf/ |
D | btf.c | 606 u8 nr_bits, nr_bytes; in btf_type_int_is_regular() local 610 nr_bits = BTF_INT_BITS(int_data); in btf_type_int_is_regular() 611 nr_bytes = BITS_ROUNDUP_BYTES(nr_bits); in btf_type_int_is_regular() 612 if (BITS_PER_BYTE_MASKED(nr_bits) || in btf_type_int_is_regular() 633 u8 nr_bits; in btf_member_is_reg_int() local 641 nr_bits = BTF_INT_BITS(int_data); in btf_member_is_reg_int() 651 BITS_ROUNDUP_BYTES(nr_bits) == expected_size; in btf_member_is_reg_int() 657 BITS_PER_BYTE_MASKED(nr_bits) || in btf_member_is_reg_int() 658 BITS_ROUNDUP_BYTES(nr_bits) != expected_size) in btf_member_is_reg_int() 1196 u32 struct_bits_off, nr_bits, nr_int_data_bits, bytes_offset; in btf_int_check_kflag_member() local [all …]
|
/Linux-v5.4/tools/bpf/bpftool/Documentation/ |
D | bpftool-btf.rst | 95 [3] INT 'long long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none) 148 [3] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED 157 [6] INT 'unsigned int' size=4 bits_offset=0 nr_bits=32 encoding=(none) 158 [7] INT 'char' size=1 bits_offset=0 nr_bits=8 encoding=SIGNED 160 [9] INT '__ARRAY_SIZE_TYPE__' size=4 bits_offset=0 nr_bits=32 encoding=(none)
|
/Linux-v5.4/tools/testing/selftests/bpf/ |
D | test_btf.h | 13 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument 14 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
|
/Linux-v5.4/mm/ |
D | mempolicy.c | 1601 unsigned long nr_bits, alloc_size; in COMPAT_SYSCALL_DEFINE5() local 1604 nr_bits = min_t(unsigned long, maxnode-1, nr_node_ids); in COMPAT_SYSCALL_DEFINE5() 1605 alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8; in COMPAT_SYSCALL_DEFINE5() 1610 err = kernel_get_mempolicy(policy, nm, nr_bits+1, addr, flags); in COMPAT_SYSCALL_DEFINE5() 1618 err |= compat_put_bitmap(nmask, bm, nr_bits); in COMPAT_SYSCALL_DEFINE5() 1628 unsigned long nr_bits, alloc_size; in COMPAT_SYSCALL_DEFINE3() local 1631 nr_bits = min_t(unsigned long, maxnode-1, MAX_NUMNODES); in COMPAT_SYSCALL_DEFINE3() 1632 alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8; in COMPAT_SYSCALL_DEFINE3() 1635 if (compat_get_bitmap(bm, nmask, nr_bits)) in COMPAT_SYSCALL_DEFINE3() 1642 return kernel_set_mempolicy(mode, nm, nr_bits+1); in COMPAT_SYSCALL_DEFINE3() [all …]
|
D | percpu-internal.h | 31 int nr_bits; /* total bits responsible for */ member
|
D | percpu.c | 611 if (end == block->nr_bits) in pcpu_block_update() 1272 static void pcpu_init_md_block(struct pcpu_block_md *block, int nr_bits) in pcpu_init_md_block() argument 1275 block->contig_hint = nr_bits; in pcpu_init_md_block() 1276 block->left_free = nr_bits; in pcpu_init_md_block() 1277 block->right_free = nr_bits; in pcpu_init_md_block() 1279 block->nr_bits = nr_bits; in pcpu_init_md_block()
|
/Linux-v5.4/tools/lib/bpf/ |
D | libbpf_internal.h | 17 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument 18 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
|
/Linux-v5.4/arch/sh/include/asm/ |
D | heartbeat.h | 12 unsigned int nr_bits; member
|
/Linux-v5.4/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()
|
/Linux-v5.4/arch/sh/boards/mach-se/7751/ |
D | setup.c | 23 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
|
/Linux-v5.4/arch/sh/boards/mach-se/7206/ |
D | setup.c | 53 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
|
/Linux-v5.4/arch/sh/boards/mach-se/7721/ |
D | setup.c | 21 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
|
/Linux-v5.4/arch/sh/boards/ |
D | board-polaris.c | 70 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
|
/Linux-v5.4/arch/sh/boards/mach-se/770x/ |
D | setup.c | 97 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
|
/Linux-v5.4/include/linux/ |
D | netdevice.h | 3440 unsigned int nr_bits) in netif_attr_test_mask() argument 3442 cpu_max_bits_warn(j, nr_bits); in netif_attr_test_mask() 3456 unsigned int nr_bits) in netif_attr_test_online() argument 3458 cpu_max_bits_warn(j, nr_bits); in netif_attr_test_online() 3463 return (j < nr_bits); in netif_attr_test_online() 3475 unsigned int nr_bits) in netif_attrmask_next() argument 3479 cpu_max_bits_warn(n, nr_bits); in netif_attrmask_next() 3482 return find_next_bit(srcp, nr_bits, n + 1); in netif_attrmask_next() 3498 unsigned int nr_bits) in netif_attrmask_next_and() argument 3502 cpu_max_bits_warn(n, nr_bits); in netif_attrmask_next_and() [all …]
|
/Linux-v5.4/lib/ |
D | vsprintf.c | 1119 int nr_bits = max_t(int, spec.field_width, 0); in bitmap_string() local 1129 chunksz = nr_bits & (CHUNKSZ - 1); in bitmap_string() 1133 i = ALIGN(nr_bits, CHUNKSZ) - CHUNKSZ; in bitmap_string() 1162 int nr_bits = max_t(int, spec.field_width, 0); in bitmap_list_string() local 1170 rbot = cur = find_first_bit(bitmap, nr_bits); in bitmap_list_string() 1171 while (cur < nr_bits) { in bitmap_list_string() 1173 cur = find_next_bit(bitmap, nr_bits, cur + 1); in bitmap_list_string() 1174 if (cur < nr_bits && cur <= rtop + 1) in bitmap_list_string()
|
/Linux-v5.4/arch/sh/boards/mach-highlander/ |
D | setup.c | 139 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
|
/Linux-v5.4/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()
|