/openbmc/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()
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_ovec.c | 24 #define OV_MAXBITS (OV_MAXBYTES * BITS_PER_BYTE) 140 for (i = 0; i < BITS_PER_BYTE; i++) { in guest_byte_to_bitmap() 141 if (entry & (1 << (BITS_PER_BYTE - 1 - i))) { in guest_byte_to_bitmap() 152 for (i = 0; i < BITS_PER_BYTE; i++) { in guest_byte_from_bitmap() 154 entry |= (1 << (BITS_PER_BYTE - 1 - i)); in guest_byte_from_bitmap() 203 guest_byte_to_bitmap(entry, ov->bitmap, i * BITS_PER_BYTE); in spapr_ovec_parse_vector() 225 vec_len = (lastbit == OV_MAXBITS) ? 1 : lastbit / BITS_PER_BYTE + 1; in spapr_dt_ovec() 234 vec[i] = guest_byte_from_bitmap(ov->bitmap, (i - 1) * BITS_PER_BYTE); in spapr_dt_ovec()
|
/openbmc/linux/fs/btrfs/tests/ |
H A D | extent-io-tests.c | 346 for (i = 0; i < eb->len * BITS_PER_BYTE; i++) { in check_eb_bitmap() 360 i, i / BITS_PER_BYTE, has, expect); in check_eb_bitmap() 365 i % BITS_PER_BYTE); in check_eb_bitmap() 375 i / BITS_PER_BYTE, i % BITS_PER_BYTE, in check_eb_bitmap() 376 i / BITS_PER_BYTE, has, expect); in check_eb_bitmap() 420 byte_len * BITS_PER_BYTE); in __test_eb_bitmaps() 429 byte_len * BITS_PER_BYTE); in __test_eb_bitmaps() 461 sizeof(long) * BITS_PER_BYTE); in __test_eb_bitmaps() 466 byte_len * BITS_PER_BYTE); in __test_eb_bitmaps() 472 sizeof(long) * BITS_PER_BYTE); in __test_eb_bitmaps() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | npcm7xx_rng-test.c | 110 s_obs = abs(sn) / sqrt(len * BITS_PER_BYTE); in calc_monobit_p() 189 uint8_t buf[TEST_INPUT_BITS / BITS_PER_BYTE]; in test_continuous_monobit() 210 uint8_t c[TEST_INPUT_BITS / BITS_PER_BYTE]; in test_continuous_runs() 220 g_assert_cmpfloat(calc_runs_p(buf.l, sizeof(buf) * BITS_PER_BYTE), >, 0.01); in test_continuous_runs() 231 uint8_t buf[TEST_INPUT_BITS / BITS_PER_BYTE]; in test_first_byte_monobit() 255 uint8_t c[TEST_INPUT_BITS / BITS_PER_BYTE]; in test_first_byte_runs() 267 g_assert_cmpfloat(calc_runs_p(buf.l, sizeof(buf) * BITS_PER_BYTE), >, 0.01); in test_first_byte_runs()
|
/openbmc/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()
|
/openbmc/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() 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()
|
/openbmc/u-boot/drivers/reset/ |
H A D | reset-socfpga.c | 35 int bank = id / (reg_width * BITS_PER_BYTE); in socfpga_reset_assert() 36 int offset = id % (reg_width * BITS_PER_BYTE); in socfpga_reset_assert() 47 int bank = id / (reg_width * BITS_PER_BYTE); in socfpga_reset_deassert() 48 int offset = id % (reg_width * BITS_PER_BYTE); in socfpga_reset_deassert()
|
/openbmc/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()
|
/openbmc/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];
|
/openbmc/linux/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()
|
/openbmc/linux/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()
|
/openbmc/linux/drivers/firmware/efi/ |
H A D | unaccepted_memory.c | 88 if (end > unaccepted->size * unit_size * BITS_PER_BYTE) in accept_memory() 89 end = unaccepted->size * unit_size * BITS_PER_BYTE; in accept_memory() 192 if (end > unaccepted->size * unit_size * BITS_PER_BYTE) in range_contains_unaccepted_memory() 193 end = unaccepted->size * unit_size * BITS_PER_BYTE; in range_contains_unaccepted_memory()
|
/openbmc/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() 180 data->rcdev.nr_resets = resource_size(res) * BITS_PER_BYTE; in reset_simple_probe()
|
/openbmc/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) 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()
|
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 | 919 v = k[group / (BITS_PER_BYTE / f->bb)]; in pipapo_insert() 921 v >>= (BITS_PER_BYTE - bit_offset) - f->bb; in pipapo_insert() 924 bit_offset %= BITS_PER_BYTE; in pipapo_insert() 963 return !(BIT(step % BITS_PER_BYTE) & base[step / BITS_PER_BYTE]); in pipapo_step_diff() 965 return !(BIT(step % BITS_PER_BYTE) & in pipapo_step_diff() 966 base[len - 1 - step / BITS_PER_BYTE]); in pipapo_step_diff() 992 tmp[i / BITS_PER_BYTE] |= BIT(i % BITS_PER_BYTE); in pipapo_step_after_end() 994 tmp[len - 1 - i / BITS_PER_BYTE] |= BIT(i % BITS_PER_BYTE); in pipapo_step_after_end() 1020 base[i] += 1 << (step % BITS_PER_BYTE); 1916 if (bit_offset >= BITS_PER_BYTE) { [all …]
|
/openbmc/linux/arch/loongarch/include/asm/ |
H A 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()
|
/openbmc/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)
|
/openbmc/linux/arch/mips/kvm/ |
H A 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()
|
/openbmc/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()
|
/openbmc/linux/arch/riscv/kernel/ |
H A 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()
|
/openbmc/linux/arch/xtensa/include/asm/ |
H A 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()
|
/openbmc/linux/drivers/misc/ |
H A 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()
|
/openbmc/linux/fs/btrfs/ |
H A 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)))
|