Searched refs:nr_bits (Results 1 - 25 of 41) sorted by last modified time

12

/linux-master/arch/x86/kernel/
H A Dprocess_64.c801 static int prctl_enable_tagged_addr(struct mm_struct *mm, unsigned long nr_bits) argument
822 if (!nr_bits) {
825 } else if (nr_bits <= LAM_U57_BITS) {
/linux-master/fs/bcachefs/
H A Dutil.c244 void bch2_prt_u64_base2_nbits(struct printbuf *out, u64 v, unsigned nr_bits) argument
246 while (nr_bits)
247 prt_char(out, '0' + ((v >> --nr_bits) & 1));
/linux-master/tools/testing/selftests/kvm/include/x86_64/
H A Dprocessor.h728 uint32_t nr_bits; local
731 nr_bits = this_cpu_property(X86_PROPERTY_PMU_EBX_BIT_VECTOR_LENGTH);
732 return nr_bits > feature.f.bit && !this_cpu_has(feature.f);
736 nr_bits = this_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS);
737 return nr_bits > feature.f.bit || this_cpu_has(feature.f);
953 uint32_t nr_bits; local
956 nr_bits = kvm_cpu_property(X86_PROPERTY_PMU_EBX_BIT_VECTOR_LENGTH);
957 return nr_bits > feature.f.bit && !kvm_cpu_has(feature.f);
961 nr_bits = kvm_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS);
962 return nr_bits > featur
[all...]
/linux-master/kernel/bpf/
H A Dbloom_filter.c97 u32 bitset_bytes, bitset_mask, nr_hash_funcs, nr_bits; local
127 if (check_mul_overflow(attr->max_entries, nr_hash_funcs, &nr_bits) ||
128 check_mul_overflow(nr_bits / 5, (u32)7, &nr_bits) ||
129 nr_bits > (1UL << 31)) {
137 if (nr_bits <= BITS_PER_LONG)
138 nr_bits = BITS_PER_LONG;
140 nr_bits = roundup_pow_of_two(nr_bits);
141 bitset_bytes = BITS_TO_BYTES(nr_bits);
[all...]
H A Dbtf.c865 u8 nr_bits, nr_bytes; local
869 nr_bits = BTF_INT_BITS(int_data);
870 nr_bytes = BITS_ROUNDUP_BYTES(nr_bits);
871 if (BITS_PER_BYTE_MASKED(nr_bits) ||
892 u8 nr_bits; local
900 nr_bits = BTF_INT_BITS(int_data);
910 BITS_ROUNDUP_BYTES(nr_bits) == expected_size;
916 BITS_PER_BYTE_MASKED(nr_bits) ||
917 BITS_ROUNDUP_BYTES(nr_bits) != expected_size)
2160 u32 struct_bits_off, nr_bits, nr_int_data_bit local
2215 u32 int_data, nr_bits, meta_needed = sizeof(int_data); local
2353 btf_bitfield_show(void *data, u8 bits_offset, u8 nr_bits, struct btf_show *show) argument
2384 u8 nr_bits = BTF_INT_BITS(int_data); local
2404 u8 nr_bits = BTF_INT_BITS(int_data); local
4096 u32 struct_bits_off, nr_bits, bytes_end, struct_size; local
[all...]
/linux-master/include/linux/
H A Dnetdevice.h3723 * @nr_bits: number of bits in the bitmask
3729 unsigned int nr_bits)
3731 cpu_max_bits_warn(j, nr_bits);
3739 * @nr_bits: number of bits in the bitmask
3745 unsigned int nr_bits)
3747 cpu_max_bits_warn(j, nr_bits);
3752 return (j < nr_bits);
3759 * @nr_bits: number of bits in the bitmask
3761 * Returns >= nr_bits if no further CPUs/Rx queues set.
3764 unsigned int nr_bits)
3727 netif_attr_test_mask(unsigned long j, const unsigned long *mask, unsigned int nr_bits) argument
3743 netif_attr_test_online(unsigned long j, const unsigned long *online_mask, unsigned int nr_bits) argument
3763 netif_attrmask_next(int n, const unsigned long *srcp, unsigned int nr_bits) argument
3785 netif_attrmask_next_and(int n, const unsigned long *src1p, const unsigned long *src2p, unsigned int nr_bits) argument
[all...]
/linux-master/include/trace/stages/
H A Dstage6_event_callback.h55 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1)
61 #define __assign_bitmask(dst, src, nr_bits) \
62 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)
111 #define __assign_rel_bitmask(dst, src, nr_bits) \
112 memcpy(__get_rel_bitmask(dst), (src), __bitmask_size_in_bytes(nr_bits))
H A Dstage5_get_offsets.h94 #define __bitmask_size_in_bytes_raw(nr_bits) \
95 (((nr_bits) + 7) / 8)
97 #define __bitmask_size_in_longs(nr_bits) \
98 ((__bitmask_size_in_bytes_raw(nr_bits) + \
106 #define __bitmask_size_in_bytes(nr_bits) \
107 (__bitmask_size_in_longs(nr_bits) * (BITS_PER_LONG / 8))
110 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, \
111 __bitmask_size_in_longs(nr_bits))
117 #define __rel_bitmask(item, nr_bits) __rel_dynamic_array(unsigned long, item, \
118 __bitmask_size_in_longs(nr_bits))
[all...]
H A Dstage2_data_offsets.h39 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1)
57 #define __rel_bitmask(item, nr_bits) __rel_dynamic_array(unsigned long, item, -1)
/linux-master/tools/perf/
H A Dbuiltin-record.c3009 static int record__mmap_cpu_mask_alloc(struct mmap_cpu_mask *mask, int nr_bits) argument
3011 mask->nbits = nr_bits;
3025 static int record__thread_mask_alloc(struct thread_mask *mask, int nr_bits) argument
3029 ret = record__mmap_cpu_mask_alloc(&mask->maps, nr_bits);
3035 ret = record__mmap_cpu_mask_alloc(&mask->affinity, nr_bits);
3627 static int record__alloc_thread_masks(struct record *rec, int nr_threads, int nr_bits) argument
3638 ret = record__thread_mask_alloc(&rec->thread_masks[t], nr_bits);
/linux-master/tools/lib/bpf/
H A Dlibbpf_internal.h79 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \
80 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
/linux-master/fs/btrfs/
H A Dsubpage.c92 unsigned int nr_bits; local
96 nr_bits = PAGE_SIZE / sectorsize;
97 subpage_info->bitmap_nr_bits = nr_bits;
100 cur += nr_bits;
103 cur += nr_bits;
106 cur += nr_bits;
109 cur += nr_bits;
112 cur += nr_bits;
115 cur += nr_bits;
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc_fs.c85 u8 nr_bits, int start_kwi, int offset, u8 intf)
101 if (offset + nr_bits <= 64) {
105 field->kw_mask[start_kwi] |= GENMASK_ULL(nr_bits - 1, 0)
108 } else if (offset + nr_bits > 64 &&
109 offset + nr_bits <= 128) {
118 bits_in_kw = nr_bits + offset - 64;
132 bits_in_kw = nr_bits + offset - 128;
204 u8 nr_bits, lid, lt, ld; local
231 nr_bits = dummy->layer_mdata.len * 8;
233 npc_set_kw_masks(mcam, NPC_UNKNOWN, nr_bits,
84 npc_set_kw_masks(struct npc_mcam *mcam, u8 type, u8 nr_bits, int start_kwi, int offset, u8 intf) argument
261 u8 nr_bits = 4; /* bits in a nibble */ local
280 u8 nr_bits = 4; /* bits in a nibble */ local
[all...]
/linux-master/drivers/md/
H A Ddm-zoned-metadata.c2369 * Set @nr_bits bits in @bitmap starting from @bit.
2373 unsigned int bit, unsigned int nr_bits)
2376 unsigned int end = bit + nr_bits;
2482 unsigned int count, bit, nr_bits; local
2501 nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit);
2503 count = dmz_set_bits((unsigned long *)mblk->data, bit, nr_bits);
2510 nr_blocks -= nr_bits;
2511 chunk_block += nr_bits;
2527 * Clear nr_bits bits in bitmap starting from bit.
2530 static int dmz_clear_bits(unsigned long *bitmap, int bit, int nr_bits) argument
2372 dmz_set_bits(unsigned long *bitmap, unsigned int bit, unsigned int nr_bits) argument
2563 unsigned int count, bit, nr_bits; local
2639 unsigned int bit, set_bit, nr_bits; local
2718 dmz_count_bits(void *bitmap, int bit, int nr_bits) argument
2750 unsigned int bit, nr_bits; local
[all...]
H A Ddm-cache-metadata.c1584 static int __set_dirty_bits_v1(struct dm_cache_metadata *cmd, unsigned int nr_bits, unsigned long *bits) argument
1589 for (i = 0; i < nr_bits; i++) {
1605 static int __set_dirty_bits_v2(struct dm_cache_metadata *cmd, unsigned int nr_bits, unsigned long *bits) argument
1609 /* nr_bits is really just a sanity check */
1610 if (nr_bits != from_cblock(cmd->cache_blocks)) {
1620 return dm_bitset_new(&cmd->dirty_info, &cmd->dirty_root, nr_bits, is_dirty_callback, bits);
1624 unsigned int nr_bits,
1631 r = __set_dirty_bits_v2(cmd, nr_bits, bits);
1633 r = __set_dirty_bits_v1(cmd, nr_bits, bits);
1623 dm_cache_set_dirty_bits(struct dm_cache_metadata *cmd, unsigned int nr_bits, unsigned long *bits) argument
/linux-master/arch/sh/boards/mach-ecovec24/
H A Dsetup.c93 .nr_bits = 4,
/linux-master/mm/
H A Dpercpu.c638 if (end == block->nr_bits)
1309 static void pcpu_init_md_block(struct pcpu_block_md *block, int nr_bits) argument
1312 block->contig_hint = nr_bits;
1313 block->left_free = nr_bits;
1314 block->right_free = nr_bits;
1316 block->nr_bits = nr_bits;
/linux-master/tools/testing/selftests/bpf/progs/
H A Dsyscall.c30 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \
31 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
/linux-master/drivers/memory/
H A Domap-gpmc.c447 int nr_bits; local
452 nr_bits = end_bit - st_bit + 1;
453 mask = (1 << nr_bits) - 1;
616 int ticks, mask, nr_bits; local
622 nr_bits = end_bit - st_bit + 1;
623 mask = (1 << nr_bits) - 1;
/linux-master/drivers/gpu/drm/imagination/
H A Dpvr_device_info.c56 const u32 nr_bits = min(bitmask_size * 64, mapping_max); local
78 for (u32 i = 0; i < nr_bits; i++) {
221 const u32 nr_bits = min(features_size * 64, mapping_max); local
239 for (u32 i = 0; i < nr_bits; i++) {
/linux-master/lib/
H A Dvsprintf.c1199 int nr_bits = max_t(int, spec.field_width, 0); local
1209 chunksz = nr_bits & (CHUNKSZ - 1);
1213 i = ALIGN(nr_bits, CHUNKSZ) - CHUNKSZ;
1242 int nr_bits = max_t(int, spec.field_width, 0); local
1249 for_each_set_bitrange(rbot, rtop, bitmap, nr_bits) {
/linux-master/drivers/media/dvb-frontends/drx39xyj/
H A Ddrxj.c2739 u32 nr_bits = 0; local
2823 nr_bits = 8;
2826 nr_bits = 7;
2829 nr_bits = 6;
2832 nr_bits = 5;
2835 nr_bits = 4;
2840 /* max_bit_rate = symbol_rate * nr_bits * coef */
2843 (ext_attr->curr_symbol_rate / 8) * nr_bits * 188;
/linux-master/tools/bpf/bpftool/
H A Dbtf_dumper.c351 static void btf_dumper_bitfield(__u32 nr_bits, __u8 bit_offset, argument
360 bits_to_copy = bit_offset + nr_bits;
371 right_shift_bits = 128 - nr_bits;
382 int nr_bits = BTF_INT_BITS(int_type); local
391 btf_dumper_bitfield(nr_bits, bit_offset, data, jw,
400 __u32 nr_bits; local
403 nr_bits = BTF_INT_BITS(*int_type);
406 BITS_PER_BYTE_MASKED(nr_bits)) {
412 if (nr_bits == 128) {
/linux-master/arch/sh/boards/mach-highlander/
H A Dsetup.c139 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
/linux-master/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-decoder.c1550 int nr_bits; local
1584 nr_bits = data->bit_countdown;
1585 if (nr_bits > pkt_info->packet.count)
1586 nr_bits = pkt_info->packet.count;
1587 data->payload <<= nr_bits;
1588 data->payload |= pkt_info->packet.payload >> (64 - nr_bits);
1589 data->bit_countdown -= nr_bits;

Completed in 342 milliseconds

12