| /linux/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()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_parser.c | 352 idd = (ICE_IM_ALU_BA_S + off) / BITS_PER_BYTE; in ice_imem_alu_init() 353 off = (ICE_IM_ALU_BA_S + off) % BITS_PER_BYTE; in ice_imem_alu_init() 367 #define ICE_IMEM_BKB_IDD (ICE_IMEM_BKB_S / BITS_PER_BYTE) 368 #define ICE_IMEM_BKB_OFF (ICE_IMEM_BKB_S % BITS_PER_BYTE) 371 #define ICE_IMEM_NPKB_IDD (ICE_IMEM_NPKB_S / BITS_PER_BYTE) 372 #define ICE_IMEM_NPKB_OFF (ICE_IMEM_NPKB_S % BITS_PER_BYTE) 374 #define ICE_IMEM_PGKB_IDD (ICE_IMEM_PGKB_S / BITS_PER_BYTE) 375 #define ICE_IMEM_PGKB_OFF (ICE_IMEM_PGKB_S % BITS_PER_BYTE) 377 #define ICE_IMEM_ALU0_IDD (ICE_IMEM_ALU0_S / BITS_PER_BYTE) 378 #define ICE_IMEM_ALU0_OFF (ICE_IMEM_ALU0_S % BITS_PER_BYTE) [all …]
|
| /linux/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() 206 if (end > unaccepted_table->size * unit_size * BITS_PER_BYTE) in accept_memory() 207 end = unaccepted_table->size * unit_size * BITS_PER_BYTE; in accept_memory()
|
| /linux/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()
|
| /linux/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()
|
| /linux/drivers/base/regmap/ |
| H A D | regmap-sdw-mbq.c | 79 int shift = mbq_size * BITS_PER_BYTE; in regmap_sdw_mbq_write_impl() 83 shift -= BITS_PER_BYTE; in regmap_sdw_mbq_write_impl() 132 int shift = BITS_PER_BYTE; in regmap_sdw_mbq_read_impl() 147 shift += BITS_PER_BYTE; in regmap_sdw_mbq_read_impl() 196 if (config->val_bits > (sizeof(unsigned int) * BITS_PER_BYTE)) in regmap_sdw_mbq_config_check() 227 ctx->val_size = config->val_bits / BITS_PER_BYTE; in regmap_sdw_mbq_gen_context()
|
| /linux/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() 183 data->rcdev.nr_resets = resource_size(res) * BITS_PER_BYTE; in reset_simple_probe()
|
| /linux/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) 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()
|
| H A D | nft_set_pipapo.c | 1003 v = k[group / (BITS_PER_BYTE / f->bb)]; in pipapo_insert() 1004 v &= GENMASK(BITS_PER_BYTE - bit_offset - 1, 0); in pipapo_insert() 1005 v >>= (BITS_PER_BYTE - bit_offset) - f->bb; in pipapo_insert() 1008 bit_offset %= BITS_PER_BYTE; in pipapo_insert() 1047 return !(BIT(step % BITS_PER_BYTE) & base[step / BITS_PER_BYTE]); in pipapo_step_diff() 1049 return !(BIT(step % BITS_PER_BYTE) & in pipapo_step_diff() 1050 base[len - 1 - step / BITS_PER_BYTE]); in pipapo_step_diff() 1076 tmp[i / BITS_PER_BYTE] |= BIT(i % BITS_PER_BYTE); in pipapo_step_after_end() 1078 tmp[len - 1 - i / BITS_PER_BYTE] |= BIT(i % BITS_PER_BYTE); in pipapo_step_after_end() 1097 for (i = step / BITS_PER_BYTE; i < len; i++) { [all …]
|
| H A D | nft_set_bitmap.c | 64 *idx = k / BITS_PER_BYTE; in nft_bitmap_location() 65 *off = k % BITS_PER_BYTE; in nft_bitmap_location() 249 return ((2 << ((klen * BITS_PER_BYTE) - 1)) / BITS_PER_BYTE) << 1; in nft_bitmap_size()
|
| /linux/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];
|
| H A D | fault.c | 113 unsigned long bound = 1U << BITS_PER_BYTE; in fault_opcodes_write() 136 BITS_PER_BYTE); in fault_opcodes_write() 167 size_t bitsize = sizeof(fault->opcodes) * BITS_PER_BYTE; in fault_opcodes_read() 228 sizeof(ibd->fault->opcodes) * BITS_PER_BYTE); in hfi1_fault_init_debugfs() 276 BITS_PER_BYTE))) in __hfi1_should_fault()
|
| /linux/drivers/firmware/efi/ |
| H A D | unaccepted_memory.c | 93 if (end > unaccepted->size * unit_size * BITS_PER_BYTE) in accept_memory() 94 end = unaccepted->size * unit_size * BITS_PER_BYTE; in accept_memory() 201 if (end > unaccepted->size * unit_size * BITS_PER_BYTE) in range_contains_unaccepted_memory() 202 end = unaccepted->size * unit_size * BITS_PER_BYTE; in range_contains_unaccepted_memory()
|
| /linux/include/linux/can/ |
| H A D | length.h | 187 (data_len) * BITS_PER_BYTE + \ 199 (data_len) * BITS_PER_BYTE) + \ 243 BITS_PER_BYTE)
|
| /linux/drivers/mtd/tests/ |
| H A 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/arch/s390/include/asm/ |
| H A D | bitops.h | 62 addr += (nr ^ (BITS_PER_LONG - BITS_PER_BYTE)) / BITS_PER_BYTE; in arch_test_bit() 63 mask = 1UL << (nr & (BITS_PER_BYTE - 1)); in arch_test_bit()
|
| /linux/arch/loongarch/include/asm/ |
| H A D | cmpxchg.h | 50 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __xchg_small() 59 shift *= BITS_PER_BYTE; in __xchg_small() 149 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __cmpxchg_small() 159 shift *= BITS_PER_BYTE; in __cmpxchg_small()
|
| /linux/arch/riscv/include/asm/ |
| H A D | cmpxchg.h | 33 ulong __s = ((ulong)(p) & (0x4 - sizeof(*p))) * BITS_PER_BYTE; \ 34 ulong __mask = GENMASK(((sizeof(*p)) * BITS_PER_BYTE) - 1, 0) \ 151 ulong __s = ((ulong)(p) & (0x4 - sizeof(*p))) * BITS_PER_BYTE; \ 152 ulong __mask = GENMASK(((sizeof(*p)) * BITS_PER_BYTE) - 1, 0) \ 384 __s = ((ulong)(ptr) & 0x3) * BITS_PER_BYTE; in __cmpwait() 401 __s = ((ulong)(ptr) & 0x2) * BITS_PER_BYTE; in __cmpwait()
|
| /linux/drivers/misc/ |
| H A D | hi6421v600-irq.c | 94 (irqd_to_hwirq(irq_data) / BITS_PER_BYTE)) 95 #define HISI_IRQ_MASK_BIT(irq_data) BIT(irqd_to_hwirq(irq_data) & (BITS_PER_BYTE - 1)) 127 for_each_set_bit(offset, &pending, BITS_PER_BYTE) { in hi6421v600_irq_handler() 128 generic_handle_irq_safe(priv->irqs[offset + i * BITS_PER_BYTE]); in hi6421v600_irq_handler()
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | userspace_msr_exit_test.c | 106 .nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE, 111 .nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE, 116 .nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE, 121 .nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE, 126 .nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE, 711 int nflags = sizeof(cap.args[0]) * BITS_PER_BYTE; in run_user_space_msr_flag_test() 746 nflags = sizeof(filter.flags) * BITS_PER_BYTE; in run_msr_filter_flag_test() 754 nflags = sizeof(filter.ranges[0].flags) * BITS_PER_BYTE; in run_msr_filter_flag_test()
|
| /linux/arch/riscv/kernel/ |
| H A D | sbi-ipi.c | 60 virq = ipi_mux_create(BITS_PER_BYTE, sbi_send_ipi); in sbi_ipi_init() 78 riscv_ipi_set_virq_range(virq, BITS_PER_BYTE); in sbi_ipi_init()
|
| /linux/arch/xtensa/include/asm/ |
| H A D | cmpxchg.h | 182 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in xchg_small() 184 int bitoff = off * BITS_PER_BYTE; in xchg_small() 186 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in xchg_small()
|
| /linux/fs/btrfs/ |
| H A D | extent_io.h | 74 #define BIT_BYTE(nr) ((nr) / BITS_PER_BYTE) 75 #define BYTE_MASK ((1U << BITS_PER_BYTE) - 1) 77 ((BYTE_MASK << ((start) & (BITS_PER_BYTE - 1))) & BYTE_MASK) 79 (BYTE_MASK >> (-(nbits) & (BITS_PER_BYTE - 1)))
|
| /linux/drivers/char/hw_random/ |
| H A D | arm_smccc_trng.c | 70 size_t bits = min_t(size_t, (max - copied) * BITS_PER_BYTE, in smccc_trng_read() 78 bits / BITS_PER_BYTE); in smccc_trng_read()
|