/linux-6.1.9/fs/btrfs/tests/ |
D | extent-io-tests.c | 327 for (i = 0; i < len * BITS_PER_BYTE; i++) { in check_eb_bitmap() 337 bit1 = !!extent_buffer_test_bit(eb, i / BITS_PER_BYTE, in check_eb_bitmap() 338 i % BITS_PER_BYTE); in check_eb_bitmap() 361 bitmap_set(bitmap, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps() 362 extent_buffer_bitmap_set(eb, 0, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps() 369 bitmap_clear(bitmap, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps() 370 extent_buffer_bitmap_clear(eb, 0, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps() 380 (PAGE_SIZE - sizeof(long) / 2) * BITS_PER_BYTE, in __test_eb_bitmaps() 381 sizeof(long) * BITS_PER_BYTE); in __test_eb_bitmaps() 383 sizeof(long) * BITS_PER_BYTE); in __test_eb_bitmaps() [all …]
|
/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/mm/ |
D | page_idle.c | 19 #define BITMAP_CHUNK_BITS (BITMAP_CHUNK_SIZE * BITS_PER_BYTE) 125 pfn = pos * BITS_PER_BYTE; in page_idle_bitmap_read() 129 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_read() 170 pfn = pos * BITS_PER_BYTE; in page_idle_bitmap_write() 174 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_write()
|
/linux-6.1.9/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-6.1.9/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 | 203 data) * BITS_PER_BYTE - len)); in nft_cmp_fast_mask() 228 desc.len *= BITS_PER_BYTE; in nft_cmp_fast_init() 249 .len = priv->len / BITS_PER_BYTE, in nft_cmp_fast_offload() 269 NFT_DATA_VALUE, priv->len / BITS_PER_BYTE) < 0) in nft_cmp_fast_dump() 289 return (__force u32)cpu_to_le32(~0U >> (sizeof(u32) * BITS_PER_BYTE - bitlen)); in nft_cmp_mask() 294 int len = bitlen / BITS_PER_BYTE; in nft_cmp16_fast_mask() 299 bitlen -= sizeof(u32) * BITS_PER_BYTE; in nft_cmp16_fast_mask() 328 nft_cmp16_fast_mask(&priv->mask, desc.len * BITS_PER_BYTE); in nft_cmp16_fast_init()
|
D | nft_set_pipapo.c | 914 v = k[group / (BITS_PER_BYTE / f->bb)]; in pipapo_insert() 915 v &= GENMASK(BITS_PER_BYTE - bit_offset - 1, 0); in pipapo_insert() 916 v >>= (BITS_PER_BYTE - bit_offset) - f->bb; in pipapo_insert() 919 bit_offset %= BITS_PER_BYTE; in pipapo_insert() 958 return !(BIT(step % BITS_PER_BYTE) & base[step / BITS_PER_BYTE]); in pipapo_step_diff() 960 return !(BIT(step % BITS_PER_BYTE) & in pipapo_step_diff() 961 base[len - 1 - step / BITS_PER_BYTE]); in pipapo_step_diff() 987 tmp[i / BITS_PER_BYTE] |= BIT(i % BITS_PER_BYTE); in pipapo_step_after_end() 989 tmp[len - 1 - i / BITS_PER_BYTE] |= BIT(i % BITS_PER_BYTE); in pipapo_step_after_end() 1008 for (i = step / BITS_PER_BYTE; i < len; i++) { [all …]
|
/linux-6.1.9/drivers/reset/ |
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() 181 data->rcdev.nr_resets = resource_size(res) * BITS_PER_BYTE; in reset_simple_probe()
|
/linux-6.1.9/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-6.1.9/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-6.1.9/drivers/mtd/tests/ |
D | mtd_nandecctest.c | 50 unsigned int offset = prandom_u32_max(size * BITS_PER_BYTE); in single_bit_error_data() 61 offset[0] = prandom_u32_max(size * BITS_PER_BYTE); in double_bit_error_data() 63 offset[1] = prandom_u32_max(size * BITS_PER_BYTE); in double_bit_error_data() 74 unsigned int offset = prandom_u32_max(3 * BITS_PER_BYTE); in random_ecc_bit() 82 offset = prandom_u32_max(3 * BITS_PER_BYTE); in random_ecc_bit()
|
/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/drivers/spi/ |
D | spi-mtk-nor.c | 177 dummy = op->dummy.nbytes * BITS_PER_BYTE / op->dummy.buswidth; in mtk_nor_match_read() 378 delay = CLK_TO_US(sp, (length + 5) * BITS_PER_BYTE); in mtk_nor_dma_exec() 440 ret = mtk_nor_cmd_exec(sp, MTK_NOR_CMD_READ, 6 * BITS_PER_BYTE); in mtk_nor_read_pio() 495 (op->data.nbytes + 5) * BITS_PER_BYTE); in mtk_nor_pp_buffered() 508 return mtk_nor_cmd_exec(sp, MTK_NOR_CMD_WRITE, 6 * BITS_PER_BYTE); in mtk_nor_pp_unbuffered() 542 bufbyte = (op->cmd.opcode >> ((i - 1) * BITS_PER_BYTE)) & 0xff; in mtk_nor_spi_mem_prg() 548 bufbyte = (op->addr.val >> ((i - 1) * BITS_PER_BYTE)) & 0xff; in mtk_nor_spi_mem_prg() 571 writel(prg_len * BITS_PER_BYTE + sp->caps->extra_dummy_bit, in mtk_nor_spi_mem_prg() 574 writel(prg_len * BITS_PER_BYTE, sp->base + MTK_NOR_REG_PRG_CNT); in mtk_nor_spi_mem_prg() 577 prg_len * BITS_PER_BYTE); in mtk_nor_spi_mem_prg() [all …]
|
/linux-6.1.9/fs/btrfs/ |
D | extent_io.h | 53 #define BIT_BYTE(nr) ((nr) / BITS_PER_BYTE) 54 #define BYTE_MASK ((1 << BITS_PER_BYTE) - 1) 56 ((BYTE_MASK << ((start) & (BITS_PER_BYTE - 1))) & BYTE_MASK) 58 (BYTE_MASK >> (-(nbits) & (BITS_PER_BYTE - 1)))
|
/linux-6.1.9/drivers/soc/qcom/ |
D | qcom-geni-se.c | 447 int idx_delta = msb_to_lsb ? -BITS_PER_BYTE : BITS_PER_BYTE; in geni_se_config_packing() 448 int ceil_bpw = ALIGN(bpw, BITS_PER_BYTE); in geni_se_config_packing() 449 int iter = (ceil_bpw * pack_words) / BITS_PER_BYTE; in geni_se_config_packing() 456 len = min_t(int, temp_bpw, BITS_PER_BYTE) - 1; in geni_se_config_packing() 461 if (temp_bpw <= BITS_PER_BYTE) { in geni_se_config_packing() 462 idx = ((i + 1) * BITS_PER_BYTE) + idx_start; in geni_se_config_packing() 466 temp_bpw = temp_bpw - BITS_PER_BYTE; in geni_se_config_packing()
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/mtd/maps/ |
D | physmap-bt1-rom.c | 45 ret.x[0] = data >> (shift * BITS_PER_BYTE); in bt1_rom_map_read() 53 ret.x[0] |= data << (shift * BITS_PER_BYTE); in bt1_rom_map_read()
|
/linux-6.1.9/drivers/char/hw_random/ |
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()
|
/linux-6.1.9/drivers/vfio/ |
D | iova_bitmap.c | 10 #define BITS_PER_PAGE (PAGE_SIZE * BITS_PER_BYTE) 405 mapped->pgshift) + mapped->pgoff * BITS_PER_BYTE; in iova_bitmap_set() 407 mapped->pgshift) + mapped->pgoff * BITS_PER_BYTE; in iova_bitmap_set()
|