| /Linux-v6.6/fs/btrfs/tests/ |
| D | extent-io-tests.c | 326 for (i = 0; i < eb->len * BITS_PER_BYTE; i++) { in check_eb_bitmap() 335 read_extent_buffer(eb, &has, i / BITS_PER_BYTE, 1); in check_eb_bitmap() 336 expect = bitmap_get_value8(bitmap, ALIGN(i, BITS_PER_BYTE)); in check_eb_bitmap() 340 i, i / BITS_PER_BYTE, has, expect); in check_eb_bitmap() 344 bit1 = !!extent_buffer_test_bit(eb, i / BITS_PER_BYTE, in check_eb_bitmap() 345 i % BITS_PER_BYTE); in check_eb_bitmap() 350 read_extent_buffer(eb, &has, i / BITS_PER_BYTE, 1); in check_eb_bitmap() 351 expect = bitmap_get_value8(bitmap, ALIGN(i, BITS_PER_BYTE)); in check_eb_bitmap() 355 i / BITS_PER_BYTE, i % BITS_PER_BYTE, in check_eb_bitmap() 356 i / BITS_PER_BYTE, has, expect); in check_eb_bitmap() [all …]
|
| /Linux-v6.6/arch/openrisc/include/asm/ |
| D | cmpxchg.h | 65 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in cmpxchg_small() 67 int bitoff = off * BITS_PER_BYTE; in cmpxchg_small() 69 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in cmpxchg_small() 97 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in xchg_small() 99 int bitoff = off * BITS_PER_BYTE; in xchg_small() 101 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in xchg_small()
|
| /Linux-v6.6/drivers/firmware/efi/libstub/ |
| D | unaccepted_memory.c | 63 EFI_UNACCEPTED_UNIT_SIZE * BITS_PER_BYTE); in allocate_unaccepted_bitmap() 161 if (end > bitmap_size * unit_size * BITS_PER_BYTE) { in process_unaccepted_memory() 164 phys_start = bitmap_size * unit_size * BITS_PER_BYTE + in process_unaccepted_memory() 169 end = bitmap_size * unit_size * BITS_PER_BYTE; in process_unaccepted_memory() 205 if (end > unaccepted_table->size * unit_size * BITS_PER_BYTE) in accept_memory() 206 end = unaccepted_table->size * unit_size * BITS_PER_BYTE; in accept_memory()
|
| /Linux-v6.6/arch/mips/kernel/ |
| D | cmpxchg.c | 20 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __xchg_small() 31 shift *= BITS_PER_BYTE; in __xchg_small() 61 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __cmpxchg_small() 73 shift *= BITS_PER_BYTE; in __cmpxchg_small()
|
| /Linux-v6.6/arch/sh/include/asm/ |
| D | bitops-op32.h | 14 #define BYTE_NUMBER(nr) ((nr ^ BITOP_LE_SWIZZLE) / BITS_PER_BYTE) 15 #define BYTE_OFFSET(nr) ((nr ^ BITOP_LE_SWIZZLE) % BITS_PER_BYTE) 17 #define BYTE_NUMBER(nr) ((nr) / BITS_PER_BYTE) 18 #define BYTE_OFFSET(nr) ((nr) % BITS_PER_BYTE)
|
| D | cmpxchg-xchg.h | 23 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in __xchg_cmpxchg() 25 int bitoff = off * BITS_PER_BYTE; in __xchg_cmpxchg() 27 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in __xchg_cmpxchg()
|
| /Linux-v6.6/drivers/infiniband/hw/hfi1/ |
| D | fault.h | 23 u64 n_rxfaults[(1U << BITS_PER_BYTE)]; 24 u64 n_txfaults[(1U << BITS_PER_BYTE)]; 29 unsigned long opcodes[(1U << BITS_PER_BYTE) / BITS_PER_LONG];
|
| D | fault.c | 116 unsigned long bound = 1U << BITS_PER_BYTE; in fault_opcodes_write() 139 BITS_PER_BYTE); in fault_opcodes_write() 171 size_t bitsize = sizeof(fault->opcodes) * BITS_PER_BYTE; in fault_opcodes_read() 238 sizeof(ibd->fault->opcodes) * BITS_PER_BYTE); in hfi1_fault_init_debugfs() 286 BITS_PER_BYTE))) in __hfi1_should_fault()
|
| /Linux-v6.6/mm/ |
| D | page_idle.c | 19 #define BITMAP_CHUNK_BITS (BITMAP_CHUNK_SIZE * BITS_PER_BYTE) 126 pfn = pos * BITS_PER_BYTE; in page_idle_bitmap_read() 130 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_read() 171 pfn = pos * BITS_PER_BYTE; in page_idle_bitmap_write() 175 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_write()
|
| /Linux-v6.6/drivers/reset/ |
| D | reset-simple.c | 35 int bank = id / (reg_width * BITS_PER_BYTE); in reset_simple_update() 36 int offset = id % (reg_width * BITS_PER_BYTE); in reset_simple_update() 89 int bank = id / (reg_width * BITS_PER_BYTE); in reset_simple_status() 90 int offset = id % (reg_width * BITS_PER_BYTE); in reset_simple_status() 180 data->rcdev.nr_resets = resource_size(res) * BITS_PER_BYTE; in reset_simple_probe()
|
| /Linux-v6.6/net/netfilter/ |
| D | nft_set_pipapo.h | 16 #define NFT_PIPAPO_MAX_BITS (NFT_PIPAPO_MAX_BYTES * BITS_PER_BYTE) 25 #define NFT_PIPAPO_GROUPS_PER_BYTE(f) (BITS_PER_BYTE / (f)->bb) 195 for (group = 0; group < f->groups; group += BITS_PER_BYTE / 4, data++) { in pipapo_and_field_buckets_4bit() 261 rules = ilog2(desc->field_len[i] * BITS_PER_BYTE) * 2; in pipapo_estimate_size() 264 BITS_PER_BYTE; in pipapo_estimate_size()
|
| D | nft_cmp.c | 204 data) * BITS_PER_BYTE - len)); in nft_cmp_fast_mask() 229 desc.len *= BITS_PER_BYTE; in nft_cmp_fast_init() 250 .len = priv->len / BITS_PER_BYTE, in nft_cmp_fast_offload() 271 NFT_DATA_VALUE, priv->len / BITS_PER_BYTE) < 0) in nft_cmp_fast_dump() 291 return (__force u32)cpu_to_le32(~0U >> (sizeof(u32) * BITS_PER_BYTE - bitlen)); in nft_cmp_mask() 296 int len = bitlen / BITS_PER_BYTE; in nft_cmp16_fast_mask() 301 bitlen -= sizeof(u32) * BITS_PER_BYTE; in nft_cmp16_fast_mask() 330 nft_cmp16_fast_mask(&priv->mask, desc.len * BITS_PER_BYTE); in nft_cmp16_fast_init()
|
| D | nft_set_pipapo.c | 917 v = k[group / (BITS_PER_BYTE / f->bb)]; in pipapo_insert() 918 v &= GENMASK(BITS_PER_BYTE - bit_offset - 1, 0); in pipapo_insert() 919 v >>= (BITS_PER_BYTE - bit_offset) - f->bb; in pipapo_insert() 922 bit_offset %= BITS_PER_BYTE; in pipapo_insert() 961 return !(BIT(step % BITS_PER_BYTE) & base[step / BITS_PER_BYTE]); in pipapo_step_diff() 963 return !(BIT(step % BITS_PER_BYTE) & in pipapo_step_diff() 964 base[len - 1 - step / BITS_PER_BYTE]); in pipapo_step_diff() 990 tmp[i / BITS_PER_BYTE] |= BIT(i % BITS_PER_BYTE); in pipapo_step_after_end() 992 tmp[len - 1 - i / BITS_PER_BYTE] |= BIT(i % BITS_PER_BYTE); in pipapo_step_after_end() 1011 for (i = step / BITS_PER_BYTE; i < len; i++) { [all …]
|
| /Linux-v6.6/drivers/clk/stm32/ |
| D | reset-stm32.c | 37 int bank = id / (reg_width * BITS_PER_BYTE); in stm32_reset_update() 38 int offset = id % (reg_width * BITS_PER_BYTE); in stm32_reset_update() 87 int bank = id / (reg_width * BITS_PER_BYTE); in stm32_reset_status() 88 int offset = id % (reg_width * BITS_PER_BYTE); in stm32_reset_status()
|
| /Linux-v6.6/drivers/firmware/efi/ |
| D | unaccepted_memory.c | 87 if (end > unaccepted->size * unit_size * BITS_PER_BYTE) in accept_memory() 88 end = unaccepted->size * unit_size * BITS_PER_BYTE; in accept_memory() 188 if (end > unaccepted->size * unit_size * BITS_PER_BYTE) in range_contains_unaccepted_memory() 189 end = unaccepted->size * unit_size * BITS_PER_BYTE; in range_contains_unaccepted_memory()
|
| /Linux-v6.6/arch/loongarch/include/asm/ |
| D | cmpxchg.h | 33 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __xchg_small() 42 shift *= BITS_PER_BYTE; in __xchg_small() 122 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __cmpxchg_small() 132 shift *= BITS_PER_BYTE; in __cmpxchg_small()
|
| /Linux-v6.6/include/linux/can/ |
| D | length.h | 187 (data_len) * BITS_PER_BYTE + \ 199 (data_len) * BITS_PER_BYTE) + \ 243 BITS_PER_BYTE)
|
| /Linux-v6.6/drivers/mtd/tests/ |
| D | mtd_nandecctest.c | 50 unsigned int offset = get_random_u32_below(size * BITS_PER_BYTE); in single_bit_error_data() 61 offset[0] = get_random_u32_below(size * BITS_PER_BYTE); in double_bit_error_data() 63 offset[1] = get_random_u32_below(size * BITS_PER_BYTE); in double_bit_error_data() 74 unsigned int offset = get_random_u32_below(3 * BITS_PER_BYTE); in random_ecc_bit() 82 offset = get_random_u32_below(3 * BITS_PER_BYTE); in random_ecc_bit()
|
| /Linux-v6.6/arch/mips/kvm/ |
| D | interrupt.c | 38 BITS_PER_BYTE * sizeof(*pending_clr), in kvm_mips_deliver_interrupts() 47 BITS_PER_BYTE * sizeof(*pending), in kvm_mips_deliver_interrupts()
|
| /Linux-v6.6/arch/riscv/kernel/ |
| D | sbi-ipi.c | 57 virq = ipi_mux_create(BITS_PER_BYTE, sbi_send_ipi); in sbi_ipi_init() 75 riscv_ipi_set_virq_range(virq, BITS_PER_BYTE, false); in sbi_ipi_init()
|
| /Linux-v6.6/drivers/misc/ |
| D | hi6421v600-irq.c | 95 (irqd_to_hwirq(irq_data) / BITS_PER_BYTE)) 96 #define HISI_IRQ_MASK_BIT(irq_data) BIT(irqd_to_hwirq(irq_data) & (BITS_PER_BYTE - 1)) 128 for_each_set_bit(offset, &pending, BITS_PER_BYTE) { in hi6421v600_irq_handler() 129 generic_handle_irq_safe(priv->irqs[offset + i * BITS_PER_BYTE]); in hi6421v600_irq_handler()
|
| /Linux-v6.6/arch/xtensa/include/asm/ |
| D | cmpxchg.h | 180 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in xchg_small() 182 int bitoff = off * BITS_PER_BYTE; in xchg_small() 184 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in xchg_small()
|
| /Linux-v6.6/fs/btrfs/ |
| D | extent_io.h | 58 #define BIT_BYTE(nr) ((nr) / BITS_PER_BYTE) 59 #define BYTE_MASK ((1 << BITS_PER_BYTE) - 1) 61 ((BYTE_MASK << ((start) & (BITS_PER_BYTE - 1))) & BYTE_MASK) 63 (BYTE_MASK >> (-(nbits) & (BITS_PER_BYTE - 1)))
|
| /Linux-v6.6/tools/testing/selftests/kvm/x86_64/ |
| D | userspace_msr_exit_test.c | 112 .nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE, 117 .nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE, 122 .nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE, 127 .nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE, 132 .nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE, 737 int nflags = sizeof(cap.args[0]) * BITS_PER_BYTE; in run_user_space_msr_flag_test() 772 nflags = sizeof(filter.flags) * BITS_PER_BYTE; in run_msr_filter_flag_test() 780 nflags = sizeof(filter.ranges[0].flags) * BITS_PER_BYTE; in run_msr_filter_flag_test()
|
| /Linux-v6.6/net/ethtool/ |
| D | eee.c | 8 (sizeof_field(struct ethtool_eee, supported) * BITS_PER_BYTE) 55 BUILD_BUG_ON(sizeof(eee->advertised) * BITS_PER_BYTE != in eee_reply_size() 57 BUILD_BUG_ON(sizeof(eee->lp_advertised) * BITS_PER_BYTE != in eee_reply_size()
|