| /linux/drivers/md/dm-vdo/indexer/ |
| H A D | delta-index.c | 73 #define MAX_FIELD_BITS ((sizeof(u32) - 1) * BITS_PER_BYTE + 1) 79 #define MAX_BIG_FIELD_BITS ((sizeof(u64) - 1) * BITS_PER_BYTE + 1) 90 #define GUARD_BITS (POST_FIELD_GUARD_BYTES * BITS_PER_BYTE) 97 ((U16_MAX + BITS_PER_BYTE) / BITS_PER_BYTE + POST_FIELD_GUARD_BYTES) 101 #define COLLISION_BITS (COLLISION_BYTES * BITS_PER_BYTE) 144 return delta_list->start / BITS_PER_BYTE; in get_delta_list_byte_start() 149 unsigned int bit_offset = delta_list->start % BITS_PER_BYTE; in get_delta_list_byte_size() 230 list_bits = (u64) zone->size * BITS_PER_BYTE - GUARD_BITS; in uds_reset_delta_index() 233 memset(zone->memory + (list_bits / BITS_PER_BYTE), ~0, in uds_reset_delta_index() 406 const void *addr = memory + offset / BITS_PER_BYTE; in get_field() [all …]
|
| /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/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/mm/ |
| H A D | page_idle.c | 19 #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()
|
| /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/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) 198 for (group = 0; group < f->groups; group += BITS_PER_BYTE / 4, data++) { in pipapo_and_field_buckets_4bit() 264 rules = ilog2(desc->field_len[i] * BITS_PER_BYTE) * 2; in pipapo_estimate_size() 267 BITS_PER_BYTE; in pipapo_estimate_size()
|
| H A 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()
|
| H A D | nft_set_pipapo.c | 1005 v = k[group / (BITS_PER_BYTE / f->bb)]; in pipapo_insert() 1006 v &= GENMASK(BITS_PER_BYTE - bit_offset - 1, 0); in pipapo_insert() 1007 v >>= (BITS_PER_BYTE - bit_offset) - f->bb; in pipapo_insert() 1010 bit_offset %= BITS_PER_BYTE; in pipapo_insert() 1049 return !(BIT(step % BITS_PER_BYTE) & base[step / BITS_PER_BYTE]); in pipapo_step_diff() 1051 return !(BIT(step % BITS_PER_BYTE) & in pipapo_step_diff() 1052 base[len - 1 - step / BITS_PER_BYTE]); in pipapo_step_diff() 1078 tmp[i / BITS_PER_BYTE] |= BIT(i % BITS_PER_BYTE); in pipapo_step_after_end() 1080 tmp[len - 1 - i / BITS_PER_BYTE] |= BIT(i % BITS_PER_BYTE); in pipapo_step_after_end() 1099 for (i = step / BITS_PER_BYTE; i < len; i++) { [all …]
|
| /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/ |
| H A D | units.h | 60 #define BYTES_PER_KBIT (KILO / BITS_PER_BYTE) in kelvin_to_millicelsius() 61 #define BYTES_PER_MBIT (MEGA / BITS_PER_BYTE) 62 #define BYTES_PER_GBIT (GIGA / BITS_PER_BYTE) in millicelsius_to_kelvin()
|
| /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/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/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/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/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/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()
|