nr_bits 70 arch/sh/boards/board-polaris.c .nr_bits = ARRAY_SIZE(heartbeat_bit_pos), nr_bits 36 arch/sh/boards/board-sh7757lcr.c .nr_bits = ARRAY_SIZE(heartbeat_bit_pos), nr_bits 92 arch/sh/boards/mach-ecovec24/setup.c .nr_bits = 4, nr_bits 139 arch/sh/boards/mach-highlander/setup.c .nr_bits = ARRAY_SIZE(heartbeat_bit_pos), nr_bits 53 arch/sh/boards/mach-se/7206/setup.c .nr_bits = ARRAY_SIZE(heartbeat_bit_pos), nr_bits 97 arch/sh/boards/mach-se/770x/setup.c .nr_bits = ARRAY_SIZE(heartbeat_bit_pos), nr_bits 21 arch/sh/boards/mach-se/7721/setup.c .nr_bits = ARRAY_SIZE(heartbeat_bit_pos), nr_bits 23 arch/sh/boards/mach-se/7751/setup.c .nr_bits = ARRAY_SIZE(heartbeat_bit_pos), nr_bits 67 arch/sh/drivers/heartbeat.c if ((bit == 0) || (bit == (hd->nr_bits)-1)) nr_bits 109 arch/sh/drivers/heartbeat.c if (!hd->nr_bits) { nr_bits 111 arch/sh/drivers/heartbeat.c hd->nr_bits = ARRAY_SIZE(default_bit_pos); nr_bits 115 arch/sh/drivers/heartbeat.c for (i = 0; i < hd->nr_bits; i++) nr_bits 12 arch/sh/include/asm/heartbeat.h unsigned int nr_bits; nr_bits 1572 drivers/md/dm-cache-metadata.c static int __set_dirty_bits_v1(struct dm_cache_metadata *cmd, unsigned nr_bits, unsigned long *bits) nr_bits 1576 drivers/md/dm-cache-metadata.c for (i = 0; i < nr_bits; i++) { nr_bits 1592 drivers/md/dm-cache-metadata.c static int __set_dirty_bits_v2(struct dm_cache_metadata *cmd, unsigned nr_bits, unsigned long *bits) nr_bits 1597 drivers/md/dm-cache-metadata.c if (nr_bits != from_cblock(cmd->cache_blocks)) { nr_bits 1607 drivers/md/dm-cache-metadata.c return dm_bitset_new(&cmd->dirty_info, &cmd->dirty_root, nr_bits, is_dirty_callback, bits); nr_bits 1611 drivers/md/dm-cache-metadata.c unsigned nr_bits, nr_bits 1618 drivers/md/dm-cache-metadata.c r = __set_dirty_bits_v2(cmd, nr_bits, bits); nr_bits 1620 drivers/md/dm-cache-metadata.c r = __set_dirty_bits_v1(cmd, nr_bits, bits); nr_bits 99 drivers/md/dm-cache-metadata.h unsigned nr_bits, unsigned long *bits); nr_bits 474 drivers/md/dm-clone-metadata.c static size_t bitmap_size(unsigned long nr_bits) nr_bits 476 drivers/md/dm-clone-metadata.c return BITS_TO_LONGS(nr_bits) * sizeof(long); nr_bits 29 drivers/md/dm-era-target.c uint32_t nr_bits; nr_bits 53 drivers/md/dm-era-target.c unsigned nr_bits, dm_block_t *root) nr_bits 61 drivers/md/dm-era-target.c return dm_bitset_resize(info, *root, 0, nr_bits, false, root); nr_bits 64 drivers/md/dm-era-target.c static size_t bitset_size(unsigned nr_bits) nr_bits 66 drivers/md/dm-era-target.c return sizeof(unsigned long) * dm_div_up(nr_bits, BITS_PER_LONG); nr_bits 74 drivers/md/dm-era-target.c ws->md.nr_bits = nr_blocks; nr_bits 92 drivers/md/dm-era-target.c memset(ws->bits, 0, bitset_size(ws->md.nr_bits)); nr_bits 94 drivers/md/dm-era-target.c r = setup_on_disk_bitset(info, ws->md.nr_bits, &ws->md.root); nr_bits 157 drivers/md/dm-era-target.c __le32 nr_bits; nr_bits 355 drivers/md/dm-era-target.c disk->nr_bits = cpu_to_le32(core->nr_bits); nr_bits 361 drivers/md/dm-era-target.c core->nr_bits = le32_to_cpu(disk->nr_bits); nr_bits 656 drivers/md/dm-era-target.c unsigned nr_bits, current_bit; nr_bits 691 drivers/md/dm-era-target.c unsigned b, e = min(d->current_bit + INSERTS_PER_STEP, d->nr_bits); nr_bits 712 drivers/md/dm-era-target.c if (b == d->nr_bits) nr_bits 749 drivers/md/dm-era-target.c d->nr_bits = min(d->writeset.nr_bits, md->nr_blocks); nr_bits 1930 drivers/md/dm-zoned-metadata.c unsigned int bit, unsigned int nr_bits) nr_bits 1933 drivers/md/dm-zoned-metadata.c unsigned int end = bit + nr_bits; nr_bits 2039 drivers/md/dm-zoned-metadata.c unsigned int count, bit, nr_bits; nr_bits 2058 drivers/md/dm-zoned-metadata.c nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit); nr_bits 2060 drivers/md/dm-zoned-metadata.c count = dmz_set_bits((unsigned long *)mblk->data, bit, nr_bits); nr_bits 2067 drivers/md/dm-zoned-metadata.c nr_blocks -= nr_bits; nr_bits 2068 drivers/md/dm-zoned-metadata.c chunk_block += nr_bits; nr_bits 2087 drivers/md/dm-zoned-metadata.c static int dmz_clear_bits(unsigned long *bitmap, int bit, int nr_bits) nr_bits 2090 drivers/md/dm-zoned-metadata.c int end = bit + nr_bits; nr_bits 2120 drivers/md/dm-zoned-metadata.c unsigned int count, bit, nr_bits; nr_bits 2137 drivers/md/dm-zoned-metadata.c nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit); nr_bits 2140 drivers/md/dm-zoned-metadata.c bit, nr_bits); nr_bits 2147 drivers/md/dm-zoned-metadata.c nr_blocks -= nr_bits; nr_bits 2148 drivers/md/dm-zoned-metadata.c chunk_block += nr_bits; nr_bits 2196 drivers/md/dm-zoned-metadata.c unsigned int bit, set_bit, nr_bits; nr_bits 2212 drivers/md/dm-zoned-metadata.c nr_bits = min(nr_blocks, zone_bits - bit); nr_bits 2223 drivers/md/dm-zoned-metadata.c nr_blocks -= nr_bits; nr_bits 2224 drivers/md/dm-zoned-metadata.c chunk_block += nr_bits; nr_bits 2275 drivers/md/dm-zoned-metadata.c static int dmz_count_bits(void *bitmap, int bit, int nr_bits) nr_bits 2278 drivers/md/dm-zoned-metadata.c int end = bit + nr_bits; nr_bits 2307 drivers/md/dm-zoned-metadata.c unsigned int bit, nr_bits; nr_bits 2323 drivers/md/dm-zoned-metadata.c nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit); nr_bits 2324 drivers/md/dm-zoned-metadata.c n += dmz_count_bits(bitmap, bit, nr_bits); nr_bits 2328 drivers/md/dm-zoned-metadata.c nr_blocks -= nr_bits; nr_bits 2329 drivers/md/dm-zoned-metadata.c chunk_block += nr_bits; nr_bits 44 drivers/md/persistent-data/dm-bitset.c unsigned nr_bits; nr_bits 52 drivers/md/persistent-data/dm-bitset.c unsigned bit, nr = min(64u, p->nr_bits - (index * 64)); nr_bits 77 drivers/md/persistent-data/dm-bitset.c p.nr_bits = size; nr_bits 2739 drivers/media/dvb-frontends/drx39xyj/drxj.c u32 nr_bits = 0; nr_bits 2823 drivers/media/dvb-frontends/drx39xyj/drxj.c nr_bits = 8; nr_bits 2826 drivers/media/dvb-frontends/drx39xyj/drxj.c nr_bits = 7; nr_bits 2829 drivers/media/dvb-frontends/drx39xyj/drxj.c nr_bits = 6; nr_bits 2832 drivers/media/dvb-frontends/drx39xyj/drxj.c nr_bits = 5; nr_bits 2835 drivers/media/dvb-frontends/drx39xyj/drxj.c nr_bits = 4; nr_bits 2843 drivers/media/dvb-frontends/drx39xyj/drxj.c (ext_attr->curr_symbol_rate / 8) * nr_bits * 188; nr_bits 438 drivers/memory/omap-gpmc.c int nr_bits; nr_bits 443 drivers/memory/omap-gpmc.c nr_bits = end_bit - st_bit + 1; nr_bits 444 drivers/memory/omap-gpmc.c mask = (1 << nr_bits) - 1; nr_bits 607 drivers/memory/omap-gpmc.c int ticks, mask, nr_bits; nr_bits 613 drivers/memory/omap-gpmc.c nr_bits = end_bit - st_bit + 1; nr_bits 614 drivers/memory/omap-gpmc.c mask = (1 << nr_bits) - 1; nr_bits 3447 include/linux/netdevice.h unsigned int nr_bits) nr_bits 3449 include/linux/netdevice.h cpu_max_bits_warn(j, nr_bits); nr_bits 3463 include/linux/netdevice.h unsigned int nr_bits) nr_bits 3465 include/linux/netdevice.h cpu_max_bits_warn(j, nr_bits); nr_bits 3470 include/linux/netdevice.h return (j < nr_bits); nr_bits 3482 include/linux/netdevice.h unsigned int nr_bits) nr_bits 3486 include/linux/netdevice.h cpu_max_bits_warn(n, nr_bits); nr_bits 3489 include/linux/netdevice.h return find_next_bit(srcp, nr_bits, n + 1); nr_bits 3505 include/linux/netdevice.h unsigned int nr_bits) nr_bits 3509 include/linux/netdevice.h cpu_max_bits_warn(n, nr_bits); nr_bits 3512 include/linux/netdevice.h return find_next_and_bit(src1p, src2p, nr_bits, n + 1); nr_bits 3514 include/linux/netdevice.h return find_next_bit(src1p, nr_bits, n + 1); nr_bits 3516 include/linux/netdevice.h return find_next_bit(src2p, nr_bits, n + 1); nr_bits 105 include/trace/trace_events.h #define __bitmask(item, nr_bits) __dynamic_array(char, item, -1) nr_bits 200 include/trace/trace_events.h #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) nr_bits 445 include/trace/trace_events.h #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) nr_bits 507 include/trace/trace_events.h #define __bitmask_size_in_bytes_raw(nr_bits) \ nr_bits 508 include/trace/trace_events.h (((nr_bits) + 7) / 8) nr_bits 510 include/trace/trace_events.h #define __bitmask_size_in_longs(nr_bits) \ nr_bits 511 include/trace/trace_events.h ((__bitmask_size_in_bytes_raw(nr_bits) + \ nr_bits 519 include/trace/trace_events.h #define __bitmask_size_in_bytes(nr_bits) \ nr_bits 520 include/trace/trace_events.h (__bitmask_size_in_longs(nr_bits) * (BITS_PER_LONG / 8)) nr_bits 523 include/trace/trace_events.h #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, \ nr_bits 524 include/trace/trace_events.h __bitmask_size_in_longs(nr_bits)) nr_bits 677 include/trace/trace_events.h #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) nr_bits 683 include/trace/trace_events.h #define __assign_bitmask(dst, src, nr_bits) \ nr_bits 684 include/trace/trace_events.h memcpy(__get_bitmask(dst), (src), __bitmask_size_in_bytes(nr_bits)) nr_bits 606 kernel/bpf/btf.c u8 nr_bits, nr_bytes; nr_bits 610 kernel/bpf/btf.c nr_bits = BTF_INT_BITS(int_data); nr_bits 611 kernel/bpf/btf.c nr_bytes = BITS_ROUNDUP_BYTES(nr_bits); nr_bits 612 kernel/bpf/btf.c if (BITS_PER_BYTE_MASKED(nr_bits) || nr_bits 633 kernel/bpf/btf.c u8 nr_bits; nr_bits 641 kernel/bpf/btf.c nr_bits = BTF_INT_BITS(int_data); nr_bits 651 kernel/bpf/btf.c BITS_ROUNDUP_BYTES(nr_bits) == expected_size; nr_bits 657 kernel/bpf/btf.c BITS_PER_BYTE_MASKED(nr_bits) || nr_bits 658 kernel/bpf/btf.c BITS_ROUNDUP_BYTES(nr_bits) != expected_size) nr_bits 1196 kernel/bpf/btf.c u32 struct_bits_off, nr_bits, nr_int_data_bits, bytes_offset; nr_bits 1209 kernel/bpf/btf.c nr_bits = BTF_MEMBER_BITFIELD_SIZE(member->offset); nr_bits 1212 kernel/bpf/btf.c if (!nr_bits) { nr_bits 1222 kernel/bpf/btf.c nr_bits = nr_int_data_bits; nr_bits 1223 kernel/bpf/btf.c } else if (nr_bits > nr_int_data_bits) { nr_bits 1230 kernel/bpf/btf.c nr_copy_bits = nr_bits + BITS_PER_BYTE_MASKED(struct_bits_off); nr_bits 1251 kernel/bpf/btf.c u32 int_data, nr_bits, meta_needed = sizeof(int_data); nr_bits 1278 kernel/bpf/btf.c nr_bits = BTF_INT_BITS(int_data) + BTF_INT_OFFSET(int_data); nr_bits 1280 kernel/bpf/btf.c if (nr_bits > BITS_PER_U128) { nr_bits 1286 kernel/bpf/btf.c if (BITS_ROUNDUP_BYTES(nr_bits) > t->size) { nr_bits 1389 kernel/bpf/btf.c u8 nr_bits, struct seq_file *m) nr_bits 1396 kernel/bpf/btf.c nr_copy_bits = nr_bits + bits_offset; nr_bits 1406 kernel/bpf/btf.c right_shift_bits = BITS_PER_U128 - nr_bits; nr_bits 1419 kernel/bpf/btf.c u8 nr_bits = BTF_INT_BITS(int_data); nr_bits 1429 kernel/bpf/btf.c btf_bitfield_seq_show(data, bits_offset, nr_bits, m); nr_bits 1439 kernel/bpf/btf.c u8 nr_bits = BTF_INT_BITS(int_data); nr_bits 1442 kernel/bpf/btf.c BITS_PER_BYTE_MASKED(nr_bits)) { nr_bits 1447 kernel/bpf/btf.c switch (nr_bits) { nr_bits 2326 kernel/bpf/btf.c u32 struct_bits_off, nr_bits, bytes_end, struct_size; nr_bits 2330 kernel/bpf/btf.c nr_bits = BTF_MEMBER_BITFIELD_SIZE(member->offset); nr_bits 2331 kernel/bpf/btf.c if (!nr_bits) { nr_bits 2338 kernel/bpf/btf.c nr_bits = int_bitsize; nr_bits 2339 kernel/bpf/btf.c } else if (nr_bits > int_bitsize) { nr_bits 2346 kernel/bpf/btf.c bytes_end = BITS_ROUNDUP_BYTES(struct_bits_off + nr_bits); nr_bits 1126 lib/vsprintf.c int nr_bits = max_t(int, spec.field_width, 0); nr_bits 1136 lib/vsprintf.c chunksz = nr_bits & (CHUNKSZ - 1); nr_bits 1140 lib/vsprintf.c i = ALIGN(nr_bits, CHUNKSZ) - CHUNKSZ; nr_bits 1169 lib/vsprintf.c int nr_bits = max_t(int, spec.field_width, 0); nr_bits 1177 lib/vsprintf.c rbot = cur = find_first_bit(bitmap, nr_bits); nr_bits 1178 lib/vsprintf.c while (cur < nr_bits) { nr_bits 1180 lib/vsprintf.c cur = find_next_bit(bitmap, nr_bits, cur + 1); nr_bits 1181 lib/vsprintf.c if (cur < nr_bits && cur <= rtop + 1) nr_bits 1601 mm/mempolicy.c unsigned long nr_bits, alloc_size; nr_bits 1604 mm/mempolicy.c nr_bits = min_t(unsigned long, maxnode-1, nr_node_ids); nr_bits 1605 mm/mempolicy.c alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8; nr_bits 1610 mm/mempolicy.c err = kernel_get_mempolicy(policy, nm, nr_bits+1, addr, flags); nr_bits 1618 mm/mempolicy.c err |= compat_put_bitmap(nmask, bm, nr_bits); nr_bits 1628 mm/mempolicy.c unsigned long nr_bits, alloc_size; nr_bits 1631 mm/mempolicy.c nr_bits = min_t(unsigned long, maxnode-1, MAX_NUMNODES); nr_bits 1632 mm/mempolicy.c alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8; nr_bits 1635 mm/mempolicy.c if (compat_get_bitmap(bm, nmask, nr_bits)) nr_bits 1642 mm/mempolicy.c return kernel_set_mempolicy(mode, nm, nr_bits+1); nr_bits 1650 mm/mempolicy.c unsigned long nr_bits, alloc_size; nr_bits 1653 mm/mempolicy.c nr_bits = min_t(unsigned long, maxnode-1, MAX_NUMNODES); nr_bits 1654 mm/mempolicy.c alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8; nr_bits 1657 mm/mempolicy.c if (compat_get_bitmap(nodes_addr(bm), nmask, nr_bits)) nr_bits 1664 mm/mempolicy.c return kernel_mbind(start, len, mode, nm, nr_bits+1, flags); nr_bits 1675 mm/mempolicy.c unsigned long nr_bits; nr_bits 1678 mm/mempolicy.c nr_bits = min_t(unsigned long, maxnode - 1, MAX_NUMNODES); nr_bits 1679 mm/mempolicy.c size = ALIGN(nr_bits, BITS_PER_LONG) / 8; nr_bits 1681 mm/mempolicy.c if (compat_get_bitmap(nodes_addr(tmp_mask), old_nodes, nr_bits)) nr_bits 1690 mm/mempolicy.c if (compat_get_bitmap(nodes_addr(tmp_mask), new_nodes, nr_bits)) nr_bits 1697 mm/mempolicy.c return kernel_migrate_pages(pid, nr_bits + 1, old, new); nr_bits 31 mm/percpu-internal.h int nr_bits; /* total bits responsible for */ nr_bits 611 mm/percpu.c if (end == block->nr_bits) nr_bits 1272 mm/percpu.c static void pcpu_init_md_block(struct pcpu_block_md *block, int nr_bits) nr_bits 1275 mm/percpu.c block->contig_hint = nr_bits; nr_bits 1276 mm/percpu.c block->left_free = nr_bits; nr_bits 1277 mm/percpu.c block->right_free = nr_bits; nr_bits 1279 mm/percpu.c block->nr_bits = nr_bits; nr_bits 150 tools/bpf/bpftool/btf_dumper.c static void btf_dumper_bitfield(__u32 nr_bits, __u8 bit_offset, nr_bits 159 tools/bpf/bpftool/btf_dumper.c bits_to_copy = bit_offset + nr_bits; nr_bits 170 tools/bpf/bpftool/btf_dumper.c right_shift_bits = 128 - nr_bits; nr_bits 181 tools/bpf/bpftool/btf_dumper.c int nr_bits = BTF_INT_BITS(int_type); nr_bits 190 tools/bpf/bpftool/btf_dumper.c btf_dumper_bitfield(nr_bits, bit_offset, data, jw, nr_bits 199 tools/bpf/bpftool/btf_dumper.c __u32 nr_bits; nr_bits 202 tools/bpf/bpftool/btf_dumper.c nr_bits = BTF_INT_BITS(*int_type); nr_bits 205 tools/bpf/bpftool/btf_dumper.c BITS_PER_BYTE_MASKED(nr_bits)) { nr_bits 211 tools/bpf/bpftool/btf_dumper.c if (nr_bits == 128) { nr_bits 17 tools/lib/bpf/libbpf_internal.h #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ nr_bits 18 tools/lib/bpf/libbpf_internal.h ((encoding) << 24 | (bits_offset) << 16 | (nr_bits)) nr_bits 3888 tools/lib/traceevent/event-parse.c int nr_bits = size * 8; nr_bits 3889 tools/lib/traceevent/event-parse.c int str_size = (nr_bits + 3) / 4; nr_bits 3900 tools/lib/traceevent/event-parse.c str_size += (nr_bits - 1) / 32; nr_bits 13 tools/testing/selftests/bpf/test_btf.h #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ nr_bits 14 tools/testing/selftests/bpf/test_btf.h ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))