/kernel/linux/linux-5.10/fs/btrfs/tests/ |
H A D | extent-io-tests.c | 276 for (i = 0; i < len * BITS_PER_BYTE; i++) { in check_eb_bitmap() 286 bit1 = !!extent_buffer_test_bit(eb, i / BITS_PER_BYTE, in check_eb_bitmap() 287 i % BITS_PER_BYTE); in check_eb_bitmap() 310 bitmap_set(bitmap, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps() 311 extent_buffer_bitmap_set(eb, 0, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps() 318 bitmap_clear(bitmap, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps() 319 extent_buffer_bitmap_clear(eb, 0, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps() 329 (PAGE_SIZE - sizeof(long) / 2) * BITS_PER_BYTE, in __test_eb_bitmaps() 330 sizeof(long) * BITS_PER_BYTE); in __test_eb_bitmaps() 332 sizeof(long) * BITS_PER_BYTE); in __test_eb_bitmaps() [all...] |
/kernel/linux/linux-6.6/fs/btrfs/tests/ |
H A 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() [all...] |
/kernel/linux/linux-5.10/arch/openrisc/include/asm/ |
H A 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()
|
/kernel/linux/linux-6.6/arch/openrisc/include/asm/ |
H A 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()
|
/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | cmpxchg.c | 24 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __xchg_small() 33 shift *= BITS_PER_BYTE; in __xchg_small() 66 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __cmpxchg_small() 76 shift *= BITS_PER_BYTE; in __cmpxchg_small()
|
/kernel/linux/linux-6.6/drivers/firmware/efi/libstub/ |
H A 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()
|
/kernel/linux/linux-5.10/drivers/reset/ |
H A D | reset-stm32mp1.c | 32 int bank = id / (reg_width * BITS_PER_BYTE); in stm32_reset_update() 33 int offset = id % (reg_width * BITS_PER_BYTE); in stm32_reset_update() 62 int bank = id / (reg_width * BITS_PER_BYTE); in stm32_reset_status() 63 int offset = id % (reg_width * BITS_PER_BYTE); in stm32_reset_status() 100 data->rcdev.nr_resets = resource_size(res) * BITS_PER_BYTE; in stm32_reset_probe()
|
H A D | reset-simple.c | 36 int bank = id / (reg_width * BITS_PER_BYTE); in reset_simple_update() 37 int offset = id % (reg_width * BITS_PER_BYTE); in reset_simple_update() 90 int bank = id / (reg_width * BITS_PER_BYTE); in reset_simple_status() 91 int offset = id % (reg_width * BITS_PER_BYTE); in reset_simple_status() 178 data->rcdev.nr_resets = resource_size(res) * BITS_PER_BYTE; in reset_simple_probe()
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A 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()
|
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
H A D | bitops-op32.h | 12 #define BYTE_NUMBER(nr) ((nr ^ BITOP_LE_SWIZZLE) / BITS_PER_BYTE) 13 #define BYTE_OFFSET(nr) ((nr ^ BITOP_LE_SWIZZLE) % BITS_PER_BYTE) 15 #define BYTE_NUMBER(nr) ((nr) / BITS_PER_BYTE) 16 #define BYTE_OFFSET(nr) ((nr) % BITS_PER_BYTE)
|
H A 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()
|
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A 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()
|
/kernel/linux/linux-6.6/arch/sh/include/asm/ |
H A 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)
|
H A 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()
|
/kernel/linux/linux-5.10/net/netfilter/ |
H A 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) 205 for (group = 0; group < f->groups; group += BITS_PER_BYTE / 4, data++) { in pipapo_and_field_buckets_4bit() 271 rules = ilog2(desc->field_len[i] * BITS_PER_BYTE) * 2; in pipapo_estimate_size() 274 BITS_PER_BYTE; in pipapo_estimate_size()
|
/kernel/linux/linux-5.10/mm/ |
H A D | page_idle.c | 17 #define BITMAP_CHUNK_BITS (BITMAP_CHUNK_SIZE * BITS_PER_BYTE) 130 pfn = pos * BITS_PER_BYTE; in page_idle_bitmap_read() 134 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_read() 175 pfn = pos * BITS_PER_BYTE; in page_idle_bitmap_write() 179 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_write()
|
/kernel/linux/linux-6.6/drivers/reset/ |
H A 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()
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A 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) 203 for (group = 0; group < f->groups; group += BITS_PER_BYTE / 4, data++) { in pipapo_and_field_buckets_4bit() 269 rules = ilog2(desc->field_len[i] * BITS_PER_BYTE) * 2; in pipapo_estimate_size() 272 BITS_PER_BYTE; in pipapo_estimate_size()
|
/kernel/linux/linux-6.6/mm/ |
H A 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()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
H A D | fault.h | 63 u64 n_rxfaults[(1U << BITS_PER_BYTE)]; 64 u64 n_txfaults[(1U << BITS_PER_BYTE)]; 69 unsigned long opcodes[(1U << BITS_PER_BYTE) / BITS_PER_LONG];
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/ |
H A 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];
|
/kernel/linux/linux-6.6/drivers/firmware/efi/ |
H A 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()
|
/kernel/linux/linux-6.6/drivers/clk/stm32/ |
H A 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
H A D | intel_sseu.h | 21 #define GEN_SSEU_STRIDE(max_entries) DIV_ROUND_UP(max_entries, BITS_PER_BYTE) 76 int ss_idx = subslice / BITS_PER_BYTE; in intel_sseu_has_subslice() 82 return mask & BIT(subslice % BITS_PER_BYTE); in intel_sseu_has_subslice()
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/x86_64/ |
H A D | user_msr_test.c | 59 .nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE, 64 .nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE, 69 .nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE, 74 .nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE, 79 .nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE,
|