Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/include/trace/
Dtrace_events.h106 #define __bitmask(item, nr_bits) __dynamic_array(char, item, -1) argument
201 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) argument
439 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) argument
490 #define __bitmask_size_in_bytes_raw(nr_bits) \ argument
491 (((nr_bits) + 7) / 8)
493 #define __bitmask_size_in_longs(nr_bits) \ argument
494 ((__bitmask_size_in_bytes_raw(nr_bits) + \
502 #define __bitmask_size_in_bytes(nr_bits) \ argument
503 (__bitmask_size_in_longs(nr_bits) * (BITS_PER_LONG / 8))
506 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, \ argument
[all …]
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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.c2387 unsigned int bit, unsigned int nr_bits) in dmz_set_bits() argument
2390 unsigned int end = bit + nr_bits; in dmz_set_bits()
2496 unsigned int count, bit, nr_bits; in dmz_validate_blocks() local
2515 nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit); in dmz_validate_blocks()
2517 count = dmz_set_bits((unsigned long *)mblk->data, bit, nr_bits); in dmz_validate_blocks()
2524 nr_blocks -= nr_bits; in dmz_validate_blocks()
2525 chunk_block += nr_bits; in dmz_validate_blocks()
2544 static int dmz_clear_bits(unsigned long *bitmap, int bit, int nr_bits) in dmz_clear_bits() argument
2547 int end = bit + nr_bits; in dmz_clear_bits()
2577 unsigned int count, bit, nr_bits; in dmz_invalidate_blocks() local
[all …]
Ddm-cache-metadata.c1578 static int __set_dirty_bits_v1(struct dm_cache_metadata *cmd, unsigned nr_bits, unsigned long *bits) in __set_dirty_bits_v1() argument
1582 for (i = 0; i < nr_bits; i++) { in __set_dirty_bits_v1()
1598 static int __set_dirty_bits_v2(struct dm_cache_metadata *cmd, unsigned nr_bits, unsigned long *bits) in __set_dirty_bits_v2() argument
1603 if (nr_bits != from_cblock(cmd->cache_blocks)) { in __set_dirty_bits_v2()
1613 return dm_bitset_new(&cmd->dirty_info, &cmd->dirty_root, nr_bits, is_dirty_callback, bits); in __set_dirty_bits_v2()
1617 unsigned nr_bits, in dm_cache_set_dirty_bits() argument
1624 r = __set_dirty_bits_v2(cmd, nr_bits, bits); in dm_cache_set_dirty_bits()
1626 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);
/kernel/linux/linux-5.10/tools/bpf/bpftool/
Dbtf_dumper.c315 static void btf_dumper_bitfield(__u32 nr_bits, __u8 bit_offset, in btf_dumper_bitfield() argument
324 bits_to_copy = bit_offset + nr_bits; in btf_dumper_bitfield()
335 right_shift_bits = 128 - nr_bits; in btf_dumper_bitfield()
346 int nr_bits = BTF_INT_BITS(int_type); in btf_dumper_int_bits() local
355 btf_dumper_bitfield(nr_bits, bit_offset, data, jw, in btf_dumper_int_bits()
364 __u32 nr_bits; in btf_dumper_int() local
367 nr_bits = BTF_INT_BITS(*int_type); in btf_dumper_int()
370 BITS_PER_BYTE_MASKED(nr_bits)) { in btf_dumper_int()
376 if (nr_bits == 128) { in btf_dumper_int()
/kernel/linux/linux-5.10/tools/bpf/bpftool/Documentation/
Dbpftool-btf.rst86 [3] INT 'long long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none)
141 [3] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED
150 [6] INT 'unsigned int' size=4 bits_offset=0 nr_bits=32 encoding=(none)
151 [7] INT 'char' size=1 bits_offset=0 nr_bits=8 encoding=SIGNED
153 [9] INT '__ARRAY_SIZE_TYPE__' size=4 bits_offset=0 nr_bits=32 encoding=(none)
/kernel/linux/linux-5.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))
/kernel/linux/linux-5.10/mm/
Dmempolicy.c1645 unsigned long nr_bits, alloc_size; in COMPAT_SYSCALL_DEFINE5() local
1648 nr_bits = min_t(unsigned long, maxnode-1, nr_node_ids); in COMPAT_SYSCALL_DEFINE5()
1649 alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8; in COMPAT_SYSCALL_DEFINE5()
1654 err = kernel_get_mempolicy(policy, nm, nr_bits+1, addr, flags); in COMPAT_SYSCALL_DEFINE5()
1662 err |= compat_put_bitmap(nmask, bm, nr_bits); in COMPAT_SYSCALL_DEFINE5()
1672 unsigned long nr_bits, alloc_size; in COMPAT_SYSCALL_DEFINE3() local
1675 nr_bits = min_t(unsigned long, maxnode-1, MAX_NUMNODES); in COMPAT_SYSCALL_DEFINE3()
1676 alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8; in COMPAT_SYSCALL_DEFINE3()
1679 if (compat_get_bitmap(bm, nmask, nr_bits)) in COMPAT_SYSCALL_DEFINE3()
1686 return kernel_set_mempolicy(mode, nm, nr_bits+1); in COMPAT_SYSCALL_DEFINE3()
[all …]
Dpercpu-internal.h50 int nr_bits; /* total bits responsible for */ member
Dpercpu.c594 if (end == block->nr_bits) in pcpu_block_update()
1260 static void pcpu_init_md_block(struct pcpu_block_md *block, int nr_bits) in pcpu_init_md_block() argument
1263 block->contig_hint = nr_bits; in pcpu_init_md_block()
1264 block->left_free = nr_bits; in pcpu_init_md_block()
1265 block->right_free = nr_bits; in pcpu_init_md_block()
1267 block->nr_bits = nr_bits; in pcpu_init_md_block()
/kernel/linux/linux-5.10/arch/sh/include/asm/
Dheartbeat.h12 unsigned int nr_bits; member
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.10/kernel/bpf/
Dbtf.c684 u8 nr_bits, nr_bytes; in btf_type_int_is_regular() local
688 nr_bits = BTF_INT_BITS(int_data); in btf_type_int_is_regular()
689 nr_bytes = BITS_ROUNDUP_BYTES(nr_bits); in btf_type_int_is_regular()
690 if (BITS_PER_BYTE_MASKED(nr_bits) || in btf_type_int_is_regular()
711 u8 nr_bits; in btf_member_is_reg_int() local
719 nr_bits = BTF_INT_BITS(int_data); in btf_member_is_reg_int()
729 BITS_ROUNDUP_BYTES(nr_bits) == expected_size; in btf_member_is_reg_int()
735 BITS_PER_BYTE_MASKED(nr_bits) || in btf_member_is_reg_int()
736 BITS_ROUNDUP_BYTES(nr_bits) != expected_size) in btf_member_is_reg_int()
1863 u32 struct_bits_off, nr_bits, nr_int_data_bits, bytes_offset; in btf_int_check_kflag_member() local
[all …]
/kernel/linux/linux-5.10/arch/sh/boards/mach-se/7751/
Dsetup.c23 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
/kernel/linux/linux-5.10/arch/sh/boards/mach-se/7721/
Dsetup.c21 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
/kernel/linux/linux-5.10/arch/sh/boards/mach-se/7206/
Dsetup.c53 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
/kernel/linux/linux-5.10/tools/lib/bpf/
Dlibbpf_internal.h26 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
27 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
/kernel/linux/linux-5.10/arch/sh/boards/
Dboard-polaris.c70 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
/kernel/linux/linux-5.10/arch/sh/boards/mach-se/770x/
Dsetup.c97 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
/kernel/linux/linux-5.10/include/linux/
Dnetdevice.h3695 unsigned int nr_bits) in netif_attr_test_mask() argument
3697 cpu_max_bits_warn(j, nr_bits); in netif_attr_test_mask()
3711 unsigned int nr_bits) in netif_attr_test_online() argument
3713 cpu_max_bits_warn(j, nr_bits); in netif_attr_test_online()
3718 return (j < nr_bits); in netif_attr_test_online()
3730 unsigned int nr_bits) in netif_attrmask_next() argument
3734 cpu_max_bits_warn(n, nr_bits); in netif_attrmask_next()
3737 return find_next_bit(srcp, nr_bits, n + 1); in netif_attrmask_next()
3753 unsigned int nr_bits) in netif_attrmask_next_and() argument
3757 cpu_max_bits_warn(n, nr_bits); in netif_attrmask_next_and()
[all …]
/kernel/linux/linux-5.10/lib/
Dvsprintf.c1197 int nr_bits = max_t(int, spec.field_width, 0); in bitmap_string() local
1207 chunksz = nr_bits & (CHUNKSZ - 1); in bitmap_string()
1211 i = ALIGN(nr_bits, CHUNKSZ) - CHUNKSZ; in bitmap_string()
1240 int nr_bits = max_t(int, spec.field_width, 0); in bitmap_list_string() local
1248 rbot = cur = find_first_bit(bitmap, nr_bits); in bitmap_list_string()
1249 while (cur < nr_bits) { in bitmap_list_string()
1251 cur = find_next_bit(bitmap, nr_bits, cur + 1); in bitmap_list_string()
1252 if (cur < nr_bits && cur <= rtop + 1) in bitmap_list_string()
/kernel/linux/linux-5.10/arch/sh/boards/mach-highlander/
Dsetup.c139 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
/kernel/linux/linux-5.10/drivers/memory/
Domap-gpmc.c433 int nr_bits; in get_gpmc_timing_reg() local
438 nr_bits = end_bit - st_bit + 1; in get_gpmc_timing_reg()
439 mask = (1 << nr_bits) - 1; in get_gpmc_timing_reg()
602 int ticks, mask, nr_bits; in set_gpmc_timing_reg() local
608 nr_bits = end_bit - st_bit + 1; in set_gpmc_timing_reg()
609 mask = (1 << nr_bits) - 1; in set_gpmc_timing_reg()

12