/kernel/linux/linux-5.10/fs/btrfs/tests/ |
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-5.10/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()
|
/kernel/linux/linux-5.10/drivers/reset/ |
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()
|
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/ |
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/ |
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)
|
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/drivers/infiniband/hw/hfi1/ |
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];
|
D | fault.c | 158 unsigned long bound = 1U << BITS_PER_BYTE; in fault_opcodes_write() 181 BITS_PER_BYTE); in fault_opcodes_write() 213 size_t bitsize = sizeof(fault->opcodes) * BITS_PER_BYTE; in fault_opcodes_read() 280 sizeof(ibd->fault->opcodes) * BITS_PER_BYTE); in hfi1_fault_init_debugfs() 328 BITS_PER_BYTE))) in __hfi1_should_fault()
|
/kernel/linux/linux-5.10/mm/ |
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-5.10/tools/testing/selftests/kvm/x86_64/ |
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,
|
/kernel/linux/linux-5.10/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) 197 for (group = 0; group < f->groups; group += BITS_PER_BYTE / 4, data++) { in pipapo_and_field_buckets_4bit() 263 rules = ilog2(desc->field_len[i] * BITS_PER_BYTE) * 2; in pipapo_estimate_size() 266 BITS_PER_BYTE; in pipapo_estimate_size()
|
D | nft_cmp.c | 215 desc.len *= BITS_PER_BYTE; in nft_cmp_fast_init() 236 .len = priv->len / BITS_PER_BYTE, in nft_cmp_fast_offload() 256 NFT_DATA_VALUE, priv->len / BITS_PER_BYTE) < 0) in nft_cmp_fast_dump() 275 return (__force u32)cpu_to_le32(~0U >> (sizeof(u32) * BITS_PER_BYTE - bitlen)); in nft_cmp_mask() 280 int len = bitlen / BITS_PER_BYTE; in nft_cmp16_fast_mask() 285 bitlen -= sizeof(u32) * BITS_PER_BYTE; in nft_cmp16_fast_mask() 314 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 …]
|
D | nft_set_bitmap.c | 63 *idx = k / BITS_PER_BYTE; in nft_bitmap_location() 64 *off = k % BITS_PER_BYTE; in nft_bitmap_location() 245 return ((2 << ((klen * BITS_PER_BYTE) - 1)) / BITS_PER_BYTE) << 1; in nft_bitmap_size()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
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/drivers/mtd/tests/ |
D | mtd_nandecctest.c | 50 unsigned int offset = prandom_u32() % (size * BITS_PER_BYTE); in single_bit_error_data() 61 offset[0] = prandom_u32() % (size * BITS_PER_BYTE); in double_bit_error_data() 63 offset[1] = prandom_u32() % (size * BITS_PER_BYTE); in double_bit_error_data() 74 unsigned int offset = prandom_u32() % (3 * BITS_PER_BYTE); in random_ecc_bit() 82 offset = prandom_u32() % (3 * BITS_PER_BYTE); in random_ecc_bit()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/fs/exfat/ |
D | balloc.c | 58 need_map_size = ((EXFAT_DATA_CLUSTER_COUNT(sbi) - 1) / BITS_PER_BYTE) in exfat_allocate_bitmap() 215 i += BITS_PER_BYTE) { in exfat_find_free_bitmap() 226 clu_base += BITS_PER_BYTE; in exfat_find_free_bitmap() 253 for (i = 0; i < total_clus; i += BITS_PER_BYTE) { in exfat_count_used_clusters()
|
/kernel/linux/linux-5.10/drivers/soc/qcom/ |
D | qcom-geni-se.c | 403 int idx_delta = msb_to_lsb ? -BITS_PER_BYTE : BITS_PER_BYTE; in geni_se_config_packing() 404 int ceil_bpw = ALIGN(bpw, BITS_PER_BYTE); in geni_se_config_packing() 405 int iter = (ceil_bpw * pack_words) / BITS_PER_BYTE; in geni_se_config_packing() 412 len = min_t(int, temp_bpw, BITS_PER_BYTE) - 1; in geni_se_config_packing() 417 if (temp_bpw <= BITS_PER_BYTE) { in geni_se_config_packing() 418 idx = ((i + 1) * BITS_PER_BYTE) + idx_start; in geni_se_config_packing() 422 temp_bpw = temp_bpw - BITS_PER_BYTE; in geni_se_config_packing()
|
/kernel/linux/common_modules/newip/examples/ |
D | nip_route_cfg_demo.c | 43 rt.rtmsg_dst.bitlen = dst_addr_len * BITS_PER_BYTE; in nip_route_add() 47 rt.rtmsg_gateway.bitlen = gateway_addr_len * BITS_PER_BYTE; in nip_route_add()
|
/kernel/linux/linux-5.10/drivers/spi/ |
D | spi-mtk-nor.c | 163 dummy = op->dummy.nbytes * BITS_PER_BYTE / op->dummy.buswidth; in mtk_nor_match_read() 364 delay = CLK_TO_US(sp, (length + 5) * BITS_PER_BYTE); in mtk_nor_dma_exec() 426 ret = mtk_nor_cmd_exec(sp, MTK_NOR_CMD_READ, 6 * BITS_PER_BYTE); in mtk_nor_read_pio() 481 (op->data.nbytes + 5) * BITS_PER_BYTE); in mtk_nor_pp_buffered() 494 return mtk_nor_cmd_exec(sp, MTK_NOR_CMD_WRITE, 6 * BITS_PER_BYTE); in mtk_nor_pp_unbuffered() 528 bufbyte = (op->cmd.opcode >> ((i - 1) * BITS_PER_BYTE)) & 0xff; in mtk_nor_spi_mem_prg() 534 bufbyte = (op->addr.val >> ((i - 1) * BITS_PER_BYTE)) & 0xff; in mtk_nor_spi_mem_prg() 556 writel(prg_len * BITS_PER_BYTE, sp->base + MTK_NOR_REG_PRG_CNT); in mtk_nor_spi_mem_prg() 558 prg_len * BITS_PER_BYTE); in mtk_nor_spi_mem_prg() 646 writel(trx_len * BITS_PER_BYTE, sp->base + MTK_NOR_REG_PRG_CNT); in mtk_nor_transfer_one_message() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/fs/btrfs/ |
D | extent_io.h | 57 #define BIT_BYTE(nr) ((nr) / BITS_PER_BYTE) 58 #define BYTE_MASK ((1 << BITS_PER_BYTE) - 1) 60 ((BYTE_MASK << ((start) & (BITS_PER_BYTE - 1))) & BYTE_MASK) 62 (BYTE_MASK >> (-(nbits) & (BITS_PER_BYTE - 1)))
|