Home
last modified time | relevance | path

Searched refs:BITS_PER_BYTE (Results 1 – 25 of 237) sorted by relevance

12345678910

/OK3568_Linux_fs/kernel/fs/btrfs/tests/
H A Dextent-io-tests.c276 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 …]
/OK3568_Linux_fs/kernel/drivers/tty/serial/
H A Dmsm_geni_serial_earlycon.c142 int idx_delta = (msb_to_lsb ? -BITS_PER_BYTE : BITS_PER_BYTE); in se_get_packing_config_earlycon()
143 int ceil_bpw = ((bpw & (BITS_PER_BYTE - 1)) ? in se_get_packing_config_earlycon()
144 ((bpw & ~(BITS_PER_BYTE - 1)) + BITS_PER_BYTE) : bpw); in se_get_packing_config_earlycon()
155 len = (temp_bpw < BITS_PER_BYTE) ? in se_get_packing_config_earlycon()
156 (temp_bpw - 1) : BITS_PER_BYTE - 1; in se_get_packing_config_earlycon()
158 idx = ((temp_bpw - BITS_PER_BYTE) <= 0) ? in se_get_packing_config_earlycon()
159 ((i + 1) * BITS_PER_BYTE) + idx_start : in se_get_packing_config_earlycon()
161 temp_bpw = ((temp_bpw - BITS_PER_BYTE) <= 0) ? in se_get_packing_config_earlycon()
162 bpw : (temp_bpw - BITS_PER_BYTE); in se_get_packing_config_earlycon()
/OK3568_Linux_fs/kernel/arch/openrisc/include/asm/
H A Dcmpxchg.h65 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()
/OK3568_Linux_fs/kernel/drivers/reset/
H A Dreset-stm32mp1.c32 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()
H A Dreset-simple.c36 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()
/OK3568_Linux_fs/kernel/arch/mips/kernel/
H A Dcmpxchg.c20 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()
/OK3568_Linux_fs/kernel/arch/sh/include/asm/
H A Dbitops-op32.h12 #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)
H A Dcmpxchg-xchg.h23 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()
/OK3568_Linux_fs/kernel/mm/
H A Dpage_idle.c17 #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()
/OK3568_Linux_fs/kernel/tools/testing/selftests/kvm/x86_64/
H A Duser_msr_test.c59 .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,
/OK3568_Linux_fs/kernel/net/netfilter/
H A Dnft_set_pipapo.h16 #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()
H A Dnft_set_pipapo.c914 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 …]
H A Dnft_cmp.c215 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()
H A Dnft_set_bitmap.c63 *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()
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/hfi1/
H A Dfault.h63 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];
H A Dfault.c158 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()
/OK3568_Linux_fs/kernel/drivers/mtd/tests/
H A Dmtd_nandecctest.c50 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gt/
H A Dintel_sseu.h21 #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()
/OK3568_Linux_fs/kernel/drivers/soc/qcom/
H A Dqcom-geni-se.c403 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()
/OK3568_Linux_fs/kernel/fs/exfat/
H A Dballoc.c58 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()
/OK3568_Linux_fs/kernel/arch/xtensa/include/asm/
H A Dcmpxchg.h180 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()
/OK3568_Linux_fs/kernel/drivers/spi/
H A Dspi-mtk-nor.c163 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 …]
/OK3568_Linux_fs/kernel/fs/btrfs/
H A Dextent_io.h57 #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)))
/OK3568_Linux_fs/kernel/net/ethtool/
H A Deee.c8 (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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/hisilicon/kirin/
H A Dkirin_dpe_reg.h134 #define DMA_ALIGN_BYTES (128 / BITS_PER_BYTE)
135 #define DMA_ADDR_ALIGN (128 / BITS_PER_BYTE)
136 #define DMA_STRIDE_ALIGN (128 / BITS_PER_BYTE)

12345678910