Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 25 of 1769) sorted by relevance

12345678910>>...71

/linux-6.3-rc2/drivers/bus/
A Domap_l3_smx.h29 static const u64 shift = 1; variable
31 #define L3_STATUS_0_MPUIA_BRST (shift << 0)
32 #define L3_STATUS_0_MPUIA_RSP (shift << 1)
33 #define L3_STATUS_0_MPUIA_INBAND (shift << 2)
34 #define L3_STATUS_0_IVAIA_BRST (shift << 6)
35 #define L3_STATUS_0_IVAIA_RSP (shift << 7)
36 #define L3_STATUS_0_IVAIA_INBAND (shift << 8)
37 #define L3_STATUS_0_SGXIA_BRST (shift << 9)
38 #define L3_STATUS_0_SGXIA_RSP (shift << 10)
40 #define L3_STATUS_0_CAMIA_BRST (shift << 12)
[all …]
A Dda8xx-mstpri.c55 int shift; member
62 .shift = 0,
67 .shift = 4,
72 .shift = 16,
77 .shift = 20,
82 .shift = 0,
87 .shift = 4,
92 .shift = 8,
97 .shift = 12,
117 .shift = 0,
[all …]
/linux-6.3-rc2/arch/alpha/include/uapi/asm/
A Dcompiler.h14 # define __kernel_insbl(val, shift) __builtin_alpha_insbl(val, shift) argument
15 # define __kernel_inswl(val, shift) __builtin_alpha_inswl(val, shift) argument
16 # define __kernel_insql(val, shift) __builtin_alpha_insql(val, shift) argument
17 # define __kernel_inslh(val, shift) __builtin_alpha_inslh(val, shift) argument
18 # define __kernel_extbl(val, shift) __builtin_alpha_extbl(val, shift) argument
19 # define __kernel_extwl(val, shift) __builtin_alpha_extwl(val, shift) argument
22 # define __kernel_insbl(val, shift) \ argument
26 # define __kernel_inswl(val, shift) \ argument
30 # define __kernel_insql(val, shift) \ argument
34 # define __kernel_inslh(val, shift) \ argument
[all …]
/linux-6.3-rc2/drivers/clk/imx/
A Dclk.h126 #define imx_clk_gate(name, parent, reg, shift) \ argument
127 to_clk(imx_clk_hw_gate(name, parent, reg, shift))
132 #define imx_clk_gate2(name, parent, reg, shift) \ argument
306 void __iomem *reg, u8 shift, u8 width,
326 void __iomem *reg, u8 shift, u8 width,
354 void __iomem *reg, u8 shift, in __imx_clk_hw_divider() argument
358 reg, shift, width, 0, &imx_ccm_lock); in __imx_clk_hw_divider()
362 void __iomem *reg, u8 shift, in __imx_clk_hw_gate() argument
367 shift, clk_gate_flags, &imx_ccm_lock); in __imx_clk_hw_gate()
371 void __iomem *reg, u8 shift, u8 cgr_val, in __imx_clk_hw_gate2() argument
[all …]
/linux-6.3-rc2/drivers/mfd/
A Datmel-smc.c113 conf->timings &= ~GENMASK(shift + 3, shift); in atmel_smc_cs_conf_set_timing()
141 if (shift != ATMEL_SMC_NWE_SHIFT && shift != ATMEL_SMC_NCS_WR_SHIFT && in atmel_smc_cs_conf_set_setup()
142 shift != ATMEL_SMC_NRD_SHIFT && shift != ATMEL_SMC_NCS_RD_SHIFT) in atmel_smc_cs_conf_set_setup()
152 conf->setup &= ~GENMASK(shift + 7, shift); in atmel_smc_cs_conf_set_setup()
153 conf->setup |= val << shift; in atmel_smc_cs_conf_set_setup()
180 if (shift != ATMEL_SMC_NWE_SHIFT && shift != ATMEL_SMC_NCS_WR_SHIFT && in atmel_smc_cs_conf_set_pulse()
181 shift != ATMEL_SMC_NRD_SHIFT && shift != ATMEL_SMC_NCS_RD_SHIFT) in atmel_smc_cs_conf_set_pulse()
191 conf->pulse &= ~GENMASK(shift + 7, shift); in atmel_smc_cs_conf_set_pulse()
192 conf->pulse |= val << shift; in atmel_smc_cs_conf_set_pulse()
219 if (shift != ATMEL_SMC_NWE_SHIFT && shift != ATMEL_SMC_NRD_SHIFT) in atmel_smc_cs_conf_set_cycle()
[all …]
/linux-6.3-rc2/drivers/memory/tegra/
A Dtegra114.c21 .shift = 0,
37 .shift = 0,
53 .shift = 0,
69 .shift = 16,
85 .shift = 16,
101 .shift = 0,
117 .shift = 0,
133 .shift = 0,
149 .shift = 0,
181 .shift = 0,
[all …]
A Dtegra210.c26 .shift = 0,
42 .shift = 0,
58 .shift = 16,
74 .shift = 16,
90 .shift = 0,
106 .shift = 0,
122 .shift = 0,
138 .shift = 0,
154 .shift = 0,
170 .shift = 0,
[all …]
A Dtegra124.c22 .shift = 0,
38 .shift = 0,
54 .shift = 0,
70 .shift = 16,
86 .shift = 16,
102 .shift = 0,
118 .shift = 0,
134 .shift = 0,
150 .shift = 0,
166 .shift = 0,
[all …]
A Dtegra30.c43 .shift = 0,
60 .shift = 0,
77 .shift = 0,
94 .shift = 16,
111 .shift = 16,
128 .shift = 0,
145 .shift = 0,
196 .shift = 0,
213 .shift = 0,
247 .shift = 0,
[all …]
/linux-6.3-rc2/drivers/clk/meson/
A Dparm.h14 #define SETPMASK(width, shift) GENMASK(shift + width - 1, shift) argument
15 #define CLRPMASK(width, shift) (~SETPMASK(width, shift)) argument
17 #define PARM_GET(width, shift, reg) \ argument
18 (((reg) & SETPMASK(width, shift)) >> (shift))
19 #define PARM_SET(width, shift, reg, val) \ argument
20 (((reg) & CLRPMASK(width, shift)) | ((val) << (shift)))
26 u8 shift; member
35 return PARM_GET(p->width, p->shift, val); in meson_parm_read()
41 regmap_update_bits(map, p->reg_off, SETPMASK(p->width, p->shift), in meson_parm_write()
42 val << p->shift); in meson_parm_write()
/linux-6.3-rc2/arch/s390/include/asm/
A Dcmpxchg.h21 int shift; in __xchg() local
35 : "d" ((x & 0xff) << shift), "d" (~(0xff << shift)) in __xchg()
37 return old >> shift; in __xchg()
49 : "d" ((x & 0xffff) << shift), "d" (~(0xffff << shift)) in __xchg()
51 return old >> shift; in __xchg()
97 old = (old & 0xff) << shift; in __cmpxchg()
98 new = (new & 0xff) << shift; in __cmpxchg()
99 mask = ~(0xff << shift); in __cmpxchg()
120 return prev >> shift; in __cmpxchg()
129 mask = ~(0xffff << shift); in __cmpxchg()
[all …]
/linux-6.3-rc2/include/drm/
A Ddrm_fixed.h102 for (shift = 62; shift > 0; --shift) in drm_fixp_msbset()
104 return shift; in drm_fixp_msbset()
114 if (shift > 61) { in drm_fixp_mul()
115 shift = shift - 61; in drm_fixp_mul()
116 a >>= (shift >> 1) + (shift & 1); in drm_fixp_mul()
117 b >>= shift >> 1; in drm_fixp_mul()
119 shift = 0; in drm_fixp_mul()
123 if (shift > DRM_FIXED_POINT) in drm_fixp_mul()
126 if (shift < DRM_FIXED_POINT) in drm_fixp_mul()
137 a <<= shift; in drm_fixp_div()
[all …]
/linux-6.3-rc2/include/linux/
A Dbitops.h106 return (word << (shift & 63)) | (word >> ((-shift) & 63)); in rol64()
116 return (word >> (shift & 63)) | (word << ((-shift) & 63)); in ror64()
126 return (word << (shift & 31)) | (word >> ((-shift) & 31)); in rol32()
136 return (word >> (shift & 31)) | (word << ((-shift) & 31)); in ror32()
146 return (word << (shift & 15)) | (word >> ((-shift) & 15)); in rol16()
156 return (word >> (shift & 15)) | (word << ((-shift) & 15)); in ror16()
166 return (word << (shift & 7)) | (word >> ((-shift) & 7)); in rol8()
176 return (word >> (shift & 7)) | (word << ((-shift) & 7)); in ror8()
188 __u8 shift = 31 - index; in sign_extend32() local
189 return (__s32)(value << shift) >> shift; in sign_extend32()
[all …]
/linux-6.3-rc2/arch/mips/kernel/
A Dcmpxchg.c14 unsigned int shift; in __xchg_small() local
28 shift = (unsigned long)ptr & 0x3; in __xchg_small()
30 shift ^= sizeof(u32) - size; in __xchg_small()
31 shift *= BITS_PER_BYTE; in __xchg_small()
32 mask <<= shift; in __xchg_small()
47 return (load32 & mask) >> shift; in __xchg_small()
55 unsigned int shift; in __cmpxchg_small() local
70 shift = (unsigned long)ptr & 0x3; in __cmpxchg_small()
72 shift ^= sizeof(u32) - size; in __cmpxchg_small()
73 shift *= BITS_PER_BYTE; in __cmpxchg_small()
[all …]
/linux-6.3-rc2/drivers/mtd/maps/
A Dphysmap-bt1-rom.c34 unsigned int shift; in bt1_rom_map_read() local
39 shift = (uintptr_t)src & 0x3; in bt1_rom_map_read()
40 data = readl_relaxed(src - shift); in bt1_rom_map_read()
41 if (!shift) { in bt1_rom_map_read()
48 shift = 4 - shift; in bt1_rom_map_read()
49 if (ofs + shift >= map->size) in bt1_rom_map_read()
52 data = readl_relaxed(src + shift); in bt1_rom_map_read()
63 unsigned int shift, chunk; in bt1_rom_map_copy_from() local
78 shift = (uintptr_t)src & 0x3; in bt1_rom_map_copy_from()
79 if (shift) { in bt1_rom_map_copy_from()
[all …]
/linux-6.3-rc2/arch/arm/boot/dts/
A Domap24xx-clocks.dtsi12 ti,bit-shift = <2>;
26 ti,bit-shift = <6>;
78 ti,bit-shift = <23>;
94 ti,bit-shift = <6>;
103 ti,bit-shift = <6>;
132 ti,bit-shift = <2>;
142 ti,bit-shift = <6>;
152 ti,bit-shift = <5>;
180 ti,bit-shift = <3>;
196 ti,bit-shift = <7>;
[all …]
/linux-6.3-rc2/arch/sparc/mm/
A Dhugetlbpage.c145 switch (shift) { in sun4v_hugepage_shift_to_tte()
202 unsigned int shift; in sun4v_huge_tte_to_shift() local
224 return shift; in sun4v_huge_tte_to_shift()
230 unsigned int shift; in sun4u_huge_tte_to_shift() local
246 return shift; in sun4u_huge_tte_to_shift()
265 return shift; in huge_tte_to_shift()
340 shift = PAGE_SHIFT; in set_huge_pte_at()
342 shift = PUD_SHIFT; in set_huge_pte_at()
344 shift = PMD_SHIFT; in set_huge_pte_at()
377 shift = PAGE_SHIFT; in huge_ptep_get_and_clear()
[all …]
/linux-6.3-rc2/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
A Dphy_qmath.c103 if (shift > 31) in qm_shl32()
104 shift = 31; in qm_shl32()
105 else if (shift < -31) in qm_shl32()
106 shift = -31; in qm_shl32()
107 if (shift >= 0) { in qm_shl32()
108 for (i = 0; i < shift; i++) in qm_shl32()
128 if (shift > 15) in qm_shl16()
129 shift = 15; in qm_shl16()
130 else if (shift < -15) in qm_shl16()
131 shift = -15; in qm_shl16()
[all …]
/linux-6.3-rc2/arch/powerpc/mm/
A Dinit-common.c71 #define CTOR(shift) static void ctor_##shift(void *addr) \ argument
73 memset(addr, 0, sizeof(void *) << (shift)); \
79 static inline void (*ctor(int shift))(void *) in ctor() argument
83 switch (shift) { in ctor()
114 void pgtable_cache_add(unsigned int shift) in pgtable_cache_add() argument
117 unsigned long table_size = sizeof(void *) << shift; in pgtable_cache_add()
135 BUG_ON(shift > MAX_PGTABLE_INDEX_SIZE); in pgtable_cache_add()
137 if (PGT_CACHE(shift)) in pgtable_cache_add()
141 name = kasprintf(GFP_KERNEL, "pgtable-2^%d", shift); in pgtable_cache_add()
147 pgtable_cache[shift] = new; in pgtable_cache_add()
[all …]
/linux-6.3-rc2/drivers/soc/fsl/qe/
A Ducc.c102 unsigned int shift; in ucc_mux_set_grant_tsa_bkpt() local
123 unsigned int shift; in ucc_set_qe_mux_rxtx() local
207 shift += 4; in ucc_set_qe_mux_rxtx()
505 u32 shift; in ucc_get_tdm_clk_shift() local
509 shift -= tdm_num * 4; in ucc_get_tdm_clk_shift()
513 return shift; in ucc_get_tdm_clk_shift()
520 u32 shift; in ucc_set_tdm_rxtx_clk() local
622 u32 shift; in ucc_get_tdm_sync_shift() local
625 shift -= tdm_num * 2; in ucc_get_tdm_sync_shift()
627 return shift; in ucc_get_tdm_sync_shift()
[all …]
/linux-6.3-rc2/drivers/video/fbdev/core/
A Dsysimgblt.c67 shift = 0; in color_imageblit()
90 shift += bpp; in color_imageblit()
91 shift &= (32 - 1); in color_imageblit()
94 if (shift) { in color_imageblit()
128 shift = val = 0; in slow_imageblit()
153 shift += bpp; in slow_imageblit()
159 if (shift) { in slow_imageblit()
232 shift = 8; in fast_imageblit()
275 shift -= ppw; in fast_imageblit()
277 if (!shift) { in fast_imageblit()
[all …]
A Dcfbimgblt.c93 shift = 0; in color_imageblit()
116 shift += bpp; in color_imageblit()
117 shift &= (32 - 1); in color_imageblit()
120 if (shift) { in color_imageblit()
157 shift = val = 0; in slow_imageblit()
182 shift += bpp; in slow_imageblit()
188 if (shift) { in slow_imageblit()
262 shift = 8; in fast_imageblit()
305 shift -= ppw; in fast_imageblit()
307 if (!shift) { in fast_imageblit()
[all …]
/linux-6.3-rc2/arch/powerpc/include/asm/book3s/64/
A Dhugetlb.h21 unsigned long shift; in hstate_get_psize() local
23 shift = huge_page_shift(hstate); in hstate_get_psize()
24 if (shift == mmu_psize_defs[MMU_PAGE_2M].shift) in hstate_get_psize()
26 else if (shift == mmu_psize_defs[MMU_PAGE_1G].shift) in hstate_get_psize()
28 else if (shift == mmu_psize_defs[MMU_PAGE_16M].shift) in hstate_get_psize()
30 else if (shift == mmu_psize_defs[MMU_PAGE_16G].shift) in hstate_get_psize()
108 static inline int check_and_get_huge_psize(int shift) in check_and_get_huge_psize() argument
112 if (shift > SLICE_HIGH_SHIFT) in check_and_get_huge_psize()
115 mmu_psize = shift_to_mmu_psize(shift); in check_and_get_huge_psize()
/linux-6.3-rc2/samples/bpf/
A Dlwt_len_hist.bpf.c27 unsigned int shift; in log2() local
30 shift = (v > 0xFF) << 3; v >>= shift; r |= shift; in log2()
31 shift = (v > 0xF) << 2; v >>= shift; r |= shift; in log2()
32 shift = (v > 0x3) << 1; v >>= shift; r |= shift; in log2()
/linux-6.3-rc2/arch/arm64/lib/
A Dinsn.c27 int shift; in aarch64_get_imm_shift_mask() local
32 shift = 0; in aarch64_get_imm_shift_mask()
36 shift = 5; in aarch64_get_imm_shift_mask()
40 shift = 5; in aarch64_get_imm_shift_mask()
44 shift = 5; in aarch64_get_imm_shift_mask()
48 shift = 10; in aarch64_get_imm_shift_mask()
91 int shift; in aarch64_insn_decode_immediate() local
116 int shift; in aarch64_insn_encode_immediate() local
422 if (imm & ~(BIT(12 + shift) - BIT(shift))) { in aarch64_insn_gen_load_store_imm()
869 if (shift != 0 && shift != 16) { in aarch64_insn_gen_movewide()
[all …]

Completed in 52 milliseconds

12345678910>>...71