Home
last modified time | relevance | path

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

12345678910>>...86

/openbmc/linux/drivers/bus/
H 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 …]
H 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 …]
/openbmc/qemu/target/arm/tcg/
H A Dvec_internal.h82 if (shift <= -bits) { in do_sqrshl_bhs()
88 } else if (shift < 0) { in do_sqrshl_bhs()
93 return src >> -shift; in do_sqrshl_bhs()
94 } else if (shift < bits) { in do_sqrshl_bhs()
119 } else if (shift < 0) { in do_uqrshl_bhs()
124 return src >> -shift; in do_uqrshl_bhs()
158 if (shift <= -64) { in do_sqrshl_d()
164 } else if (shift < 0) { in do_sqrshl_d()
170 } else if (shift < 64) { in do_sqrshl_d()
188 } else if (shift < 0) { in do_uqrshl_d()
[all …]
/openbmc/linux/arch/alpha/include/uapi/asm/
H 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 …]
/openbmc/qemu/pc-bios/keymaps/
H A Dsl41 ISO_Left_Tab 0xf shift
81 greater 0x56 shift
179 exclam 0x02 shift
188 dollar 0x05 shift
197 slash 0x08 shift
205 equal 0x0b shift
237 Scaron 0x1a shift
258 Ccaron 0x27 shift
260 Cacute 0x28 shift
265 Zcaron 0x2b shift
[all …]
H A Dsv41 ISO_Left_Tab 0xf shift
81 greater 0x56 shift
182 onehalf 0x29 shift
185 exclam 0x2 shift
188 quotedbl 0x3 shift
198 percent 0x6 shift
202 slash 0x8 shift
211 equal 0xb shift
220 grave 0xd shift
228 Aring 0x1a shift
[all …]
/openbmc/linux/arch/s390/include/asm/
H A Dcmpxchg.h21 int shift; in __arch_xchg() local
35 : "d" ((x & 0xff) << shift), "d" (~(0xff << shift)) in __arch_xchg()
37 return old >> shift; in __arch_xchg()
49 : "d" ((x & 0xffff) << shift), "d" (~(0xffff << shift)) in __arch_xchg()
51 return old >> shift; in __arch_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 …]
/openbmc/linux/drivers/mfd/
H 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 …]
/openbmc/linux/drivers/clk/imx/
H A Dclk.h133 #define imx_clk_gate(name, parent, reg, shift) \ argument
134 to_clk(imx_clk_hw_gate(name, parent, reg, shift))
139 #define imx_clk_gate2(name, parent, reg, shift) \ argument
310 void __iomem *reg, u8 shift, u8 width,
330 void __iomem *reg, u8 shift, u8 width,
358 void __iomem *reg, u8 shift, in imx_clk_hw_divider_closest() argument
367 void __iomem *reg, u8 shift, in __imx_clk_hw_divider() argument
371 reg, shift, width, 0, &imx_ccm_lock); in __imx_clk_hw_divider()
375 void __iomem *reg, u8 shift, in __imx_clk_hw_gate() argument
380 shift, clk_gate_flags, &imx_ccm_lock); in __imx_clk_hw_gate()
[all …]
/openbmc/linux/drivers/memory/tegra/
H 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 …]
H 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 …]
H 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 …]
H 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 …]
/openbmc/linux/drivers/clk/meson/
H 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()
/openbmc/linux/include/drm/
H A Ddrm_fixed.h107 for (shift = 62; shift > 0; --shift) in drm_fixp_msbset()
109 return shift; in drm_fixp_msbset()
119 if (shift > 61) { in drm_fixp_mul()
120 shift = shift - 61; in drm_fixp_mul()
121 a >>= (shift >> 1) + (shift & 1); in drm_fixp_mul()
122 b >>= shift >> 1; in drm_fixp_mul()
124 shift = 0; in drm_fixp_mul()
128 if (shift > DRM_FIXED_POINT) in drm_fixp_mul()
131 if (shift < DRM_FIXED_POINT) in drm_fixp_mul()
142 a <<= shift; in drm_fixp_div()
[all …]
/openbmc/linux/include/linux/
H A Dbitops.h107 return (word << (shift & 63)) | (word >> ((-shift) & 63)); in rol64()
117 return (word >> (shift & 63)) | (word << ((-shift) & 63)); in ror64()
127 return (word << (shift & 31)) | (word >> ((-shift) & 31)); in rol32()
137 return (word >> (shift & 31)) | (word << ((-shift) & 31)); in ror32()
147 return (word << (shift & 15)) | (word >> ((-shift) & 15)); in rol16()
157 return (word >> (shift & 15)) | (word << ((-shift) & 15)); in ror16()
167 return (word << (shift & 7)) | (word >> ((-shift) & 7)); in rol8()
177 return (word >> (shift & 7)) | (word << ((-shift) & 7)); in ror8()
189 __u8 shift = 31 - index; in sign_extend32() local
190 return (__s32)(value << shift) >> shift; in sign_extend32()
[all …]
/openbmc/linux/arch/mips/kernel/
H 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 …]
/openbmc/linux/drivers/mtd/maps/
H A Dphysmap-bt1-rom.c33 unsigned int shift; in bt1_rom_map_read() local
38 shift = (uintptr_t)src & 0x3; in bt1_rom_map_read()
39 data = readl_relaxed(src - shift); in bt1_rom_map_read()
40 if (!shift) { in bt1_rom_map_read()
47 shift = 4 - shift; in bt1_rom_map_read()
48 if (ofs + shift >= map->size) in bt1_rom_map_read()
51 data = readl_relaxed(src + shift); in bt1_rom_map_read()
62 unsigned int shift, chunk; in bt1_rom_map_copy_from() local
77 shift = (uintptr_t)src & 0x3; in bt1_rom_map_copy_from()
78 if (shift) { in bt1_rom_map_copy_from()
[all …]
/openbmc/u-boot/drivers/clk/
H A Dclk_meson.h28 u8 shift; member
33 #define SETPMASK(width, shift) GENMASK(shift + width - 1, shift) argument
34 #define CLRPMASK(width, shift) (~SETPMASK(width, shift)) argument
36 #define PARM_GET(width, shift, reg) \ argument
37 (((reg) & SETPMASK(width, shift)) >> (shift))
38 #define PARM_SET(width, shift, reg, val) \ argument
39 (((reg) & CLRPMASK(width, shift)) | ((val) << (shift)))
/openbmc/u-boot/include/
H A Dbitfield.h42 static inline uint bitfield_mask(uint shift, uint width) in bitfield_mask() argument
44 return ((1 << width) - 1) << shift; in bitfield_mask()
48 static inline uint bitfield_extract(uint reg_val, uint shift, uint width) in bitfield_extract() argument
50 return (reg_val & bitfield_mask(shift, width)) >> shift; in bitfield_extract()
57 static inline uint bitfield_replace(uint reg_val, uint shift, uint width, in bitfield_replace() argument
60 uint mask = bitfield_mask(shift, width); in bitfield_replace()
62 return (reg_val & ~mask) | ((bitfield_val << shift) & mask); in bitfield_replace()
74 uint shift = bitfield_shift(mask); in bitfield_extract_by_mask() local
76 return (reg_val & mask) >> shift; in bitfield_extract_by_mask()
86 uint shift = bitfield_shift(mask); in bitfield_replace_by_mask() local
[all …]
/openbmc/linux/arch/arm/boot/dts/ti/omap/
H 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 …]
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
H 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 …]
/openbmc/linux/arch/powerpc/mm/
H 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()
148 pgtable_cache[shift] = new; in pgtable_cache_add()
[all …]
/openbmc/qemu/include/qemu/
H A Dbitops.h28 #define MAKE_64BIT_MASK(shift, length) \ argument
29 (((~0ULL) >> (64 - (length))) << (shift))
219 static inline uint8_t rol8(uint8_t word, unsigned int shift) in rol8() argument
221 return (word << (shift & 7)) | (word >> (-shift & 7)); in rol8()
231 return (word >> (shift & 7)) | (word << (-shift & 7)); in ror8()
241 return (word << (shift & 15)) | (word >> (-shift & 15)); in rol16()
251 return (word >> (shift & 15)) | (word << (-shift & 15)); in ror16()
261 return (word << (shift & 31)) | (word >> (-shift & 31)); in rol32()
271 return (word >> (shift & 31)) | (word << (-shift & 31)); in ror32()
281 return (word << (shift & 63)) | (word >> (-shift & 63)); in rol64()
[all …]
/openbmc/u-boot/arch/x86/lib/
H A Ddiv64.c19 u64 __ashldi3(u64 num, unsigned int shift) in __ashldi3() argument
24 if (shift >= 32) { in __ashldi3()
28 if (!shift) in __ashldi3()
31 (output.words.lower >> (32 - shift)); in __ashldi3()
32 output.words.lower = output.words.lower << shift; in __ashldi3()
37 u64 __lshrdi3(u64 num, unsigned int shift) in __lshrdi3() argument
42 if (shift >= 32) { in __lshrdi3()
46 if (!shift) in __lshrdi3()
48 output.words.lower = output.words.lower >> shift | in __lshrdi3()
49 (output.words.higher << (32 - shift)); in __lshrdi3()
[all …]

12345678910>>...86