/kernel/linux/linux-5.10/drivers/bus/ |
H A D | omap_l3_smx.h | 29 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) 39 #define L3_STATUS_0_SGXIA_MERROR (shift << 1 [all...] |
H A D | da8xx-mstpri.c | 55 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, 102 .shift [all...] |
/kernel/linux/linux-6.6/drivers/bus/ |
H A D | omap_l3_smx.h | 29 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) 39 #define L3_STATUS_0_SGXIA_MERROR (shift << 1 [all...] |
H A D | da8xx-mstpri.c | 55 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, 102 .shift [all...] |
/kernel/linux/linux-6.6/drivers/clk/imx/ |
H A D | clk.h | 118 #define imx_clk_gate_exclusive(name, parent, reg, shift, exclusive_mask) \ 119 to_clk(imx_clk_hw_gate_exclusive(name, parent, reg, shift, exclusive_mask)) 127 #define imx_clk_divider(name, parent, reg, shift, width) \ 128 to_clk(imx_clk_hw_divider(name, parent, reg, shift, width)) 130 #define imx_clk_divider_flags(name, parent, reg, shift, width, flags) \ 131 to_clk(imx_clk_hw_divider_flags(name, parent, reg, shift, width, flags)) 133 #define imx_clk_gate(name, parent, reg, shift) \ 134 to_clk(imx_clk_hw_gate(name, parent, reg, shift)) 136 #define imx_clk_gate_dis(name, parent, reg, shift) \ 137 to_clk(imx_clk_hw_gate_dis(name, parent, reg, shift)) 356 imx_clk_hw_divider_closest(const char *name, const char *parent, void __iomem *reg, u8 shift, u8 width) imx_clk_hw_divider_closest() argument 365 __imx_clk_hw_divider(const char *name, const char *parent, void __iomem *reg, u8 shift, u8 width, unsigned long flags) __imx_clk_hw_divider() argument 374 __imx_clk_hw_gate(const char *name, const char *parent, void __iomem *reg, u8 shift, unsigned long flags, unsigned long clk_gate_flags) __imx_clk_hw_gate() argument 383 __imx_clk_hw_gate2(const char *name, const char *parent, void __iomem *reg, u8 shift, u8 cgr_val, unsigned long flags, unsigned int *share_count) __imx_clk_hw_gate2() argument 392 __imx_clk_hw_mux(const char *name, void __iomem *reg, u8 shift, u8 width, const char * const *parents, int num_parents, unsigned long flags, unsigned long clk_mux_flags) __imx_clk_hw_mux() argument [all...] |
/kernel/linux/linux-5.10/arch/alpha/include/uapi/asm/ |
H A D | compiler.h | 14 # define __kernel_insbl(val, shift) __builtin_alpha_insbl(val, shift) 15 # define __kernel_inswl(val, shift) __builtin_alpha_inswl(val, shift) 16 # define __kernel_insql(val, shift) __builtin_alpha_insql(val, shift) 17 # define __kernel_inslh(val, shift) __builtin_alpha_inslh(val, shift) 18 # define __kernel_extbl(val, shift) __builtin_alpha_extbl(val, shift) [all...] |
/kernel/linux/linux-6.6/arch/alpha/include/uapi/asm/ |
H A D | compiler.h | 14 # define __kernel_insbl(val, shift) __builtin_alpha_insbl(val, shift) 15 # define __kernel_inswl(val, shift) __builtin_alpha_inswl(val, shift) 16 # define __kernel_insql(val, shift) __builtin_alpha_insql(val, shift) 17 # define __kernel_inslh(val, shift) __builtin_alpha_inslh(val, shift) 18 # define __kernel_extbl(val, shift) __builtin_alpha_extbl(val, shift) [all...] |
/kernel/linux/linux-5.10/drivers/clk/imx/ |
H A D | clk.h | 81 #define imx_clk_gate_exclusive(name, parent, reg, shift, exclusive_mask) \ 82 to_clk(imx_clk_hw_gate_exclusive(name, parent, reg, shift, exclusive_mask)) 90 #define imx_clk_divider(name, parent, reg, shift, width) \ 91 to_clk(imx_clk_hw_divider(name, parent, reg, shift, width)) 93 #define imx_clk_divider2(name, parent, reg, shift, width) \ 94 to_clk(imx_clk_hw_divider2(name, parent, reg, shift, width)) 96 #define imx_clk_divider_flags(name, parent, reg, shift, width, flags) \ 97 to_clk(imx_clk_hw_divider_flags(name, parent, reg, shift, width, flags)) 99 #define imx_clk_gate(name, parent, reg, shift) \ 100 to_clk(imx_clk_hw_gate(name, parent, reg, shift)) 264 imx_clk_hw_mux_ldb(const char *name, void __iomem *reg, u8 shift, u8 width, const char * const *parents, int num_parents) imx_clk_hw_mux_ldb() argument 280 imx_clk_hw_divider(const char *name, const char *parent, void __iomem *reg, u8 shift, u8 width) imx_clk_hw_divider() argument 289 imx_clk_hw_divider_flags(const char *name, const char *parent, void __iomem *reg, u8 shift, u8 width, unsigned long flags) imx_clk_hw_divider_flags() argument 298 imx_clk_hw_divider2(const char *name, const char *parent, void __iomem *reg, u8 shift, u8 width) imx_clk_hw_divider2() argument 306 imx_clk_divider2_flags(const char *name, const char *parent, void __iomem *reg, u8 shift, u8 width, unsigned long flags) imx_clk_divider2_flags() argument 315 imx_clk_hw_gate_flags(const char *name, const char *parent, void __iomem *reg, u8 shift, unsigned long flags) imx_clk_hw_gate_flags() argument 322 imx_clk_hw_gate(const char *name, const char *parent, void __iomem *reg, u8 shift) imx_clk_hw_gate() argument 329 imx_dev_clk_hw_gate(struct device *dev, const char *name, const char *parent, void __iomem *reg, u8 shift) imx_dev_clk_hw_gate() argument 336 imx_clk_hw_gate_dis(const char *name, const char *parent, void __iomem *reg, u8 shift) imx_clk_hw_gate_dis() argument 343 imx_clk_hw_gate_dis_flags(const char *name, const char *parent, void __iomem *reg, u8 shift, unsigned long flags) imx_clk_hw_gate_dis_flags() argument 350 imx_clk_hw_gate2(const char *name, const char *parent, void __iomem *reg, u8 shift) imx_clk_hw_gate2() argument 357 imx_clk_hw_gate2_flags(const char *name, const char *parent, void __iomem *reg, u8 shift, unsigned long flags) imx_clk_hw_gate2_flags() argument 364 imx_clk_hw_gate2_shared(const char *name, const char *parent, void __iomem *reg, u8 shift, unsigned int *share_count) imx_clk_hw_gate2_shared() argument 372 imx_clk_hw_gate2_shared2(const char *name, const char *parent, void __iomem *reg, u8 shift, unsigned int *share_count) imx_clk_hw_gate2_shared2() argument 381 imx_dev_clk_hw_gate_shared(struct device *dev, const char *name, const char *parent, void __iomem *reg, u8 shift, unsigned int *share_count) imx_dev_clk_hw_gate_shared() argument 392 imx_clk_gate2_cgr(const char *name, const char *parent, void __iomem *reg, u8 shift, u8 cgr_val) imx_clk_gate2_cgr() argument 399 imx_clk_hw_gate3(const char *name, const char *parent, void __iomem *reg, u8 shift) imx_clk_hw_gate3() argument 407 imx_clk_hw_gate3_flags(const char *name, const char *parent, void __iomem *reg, u8 shift, unsigned long flags) imx_clk_hw_gate3_flags() argument 419 imx_clk_hw_gate4(const char *name, const char *parent, void __iomem *reg, u8 shift) imx_clk_hw_gate4() argument 427 imx_clk_hw_gate4_flags(const char *name, const char *parent, void __iomem *reg, u8 shift, unsigned long flags) imx_clk_hw_gate4_flags() argument 439 imx_clk_hw_mux(const char *name, void __iomem *reg, u8 shift, u8 width, const char * const *parents, int num_parents) imx_clk_hw_mux() argument 448 imx_dev_clk_hw_mux(struct device *dev, const char *name, void __iomem *reg, u8 shift, u8 width, const char * const *parents, int num_parents) imx_dev_clk_hw_mux() argument 457 imx_clk_mux2(const char *name, void __iomem *reg, u8 shift, u8 width, const char * const *parents, int num_parents) imx_clk_mux2() argument 466 imx_clk_hw_mux2(const char *name, void __iomem *reg, u8 shift, u8 width, const char * const *parents, int num_parents) imx_clk_hw_mux2() argument 477 imx_clk_mux_flags(const char *name, void __iomem *reg, u8 shift, u8 width, const char * const *parents, int num_parents, unsigned long flags) imx_clk_mux_flags() argument 487 imx_clk_hw_mux2_flags(const char *name, void __iomem *reg, u8 shift, u8 width, const char * const *parents, int num_parents, unsigned long flags) imx_clk_hw_mux2_flags() argument 497 imx_clk_mux2_flags(const char *name, void __iomem *reg, u8 shift, u8 width, const char * const *parents, int num_parents, unsigned long flags) imx_clk_mux2_flags() argument 507 imx_clk_hw_mux_flags(const char *name, void __iomem *reg, u8 shift, u8 width, const char * const *parents, int num_parents, unsigned long flags) imx_clk_hw_mux_flags() argument 519 imx_dev_clk_hw_mux_flags(struct device *dev, const char *name, void __iomem *reg, u8 shift, u8 width, const char * const *parents, int num_parents, unsigned long flags) imx_dev_clk_hw_mux_flags() argument [all...] |
/kernel/linux/linux-5.10/drivers/mfd/ |
H A D | atmel-smc.c | 82 * @shift: the position of the Txx field in the TIMINGS register 88 * @conf->timings field at @shift position. 90 * Returns -EINVAL if shift is invalid, -ERANGE if ncycles does not fit in 94 unsigned int shift, unsigned int ncycles) in atmel_smc_cs_conf_set_timing() 99 if (shift != ATMEL_HSMC_TIMINGS_TCLR_SHIFT && in atmel_smc_cs_conf_set_timing() 100 shift != ATMEL_HSMC_TIMINGS_TADL_SHIFT && in atmel_smc_cs_conf_set_timing() 101 shift != ATMEL_HSMC_TIMINGS_TAR_SHIFT && in atmel_smc_cs_conf_set_timing() 102 shift != ATMEL_HSMC_TIMINGS_TRR_SHIFT && in atmel_smc_cs_conf_set_timing() 103 shift != ATMEL_HSMC_TIMINGS_TWB_SHIFT) in atmel_smc_cs_conf_set_timing() 113 conf->timings &= ~GENMASK(shift in atmel_smc_cs_conf_set_timing() 93 atmel_smc_cs_conf_set_timing(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) atmel_smc_cs_conf_set_timing() argument 135 atmel_smc_cs_conf_set_setup(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) atmel_smc_cs_conf_set_setup() argument 174 atmel_smc_cs_conf_set_pulse(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) atmel_smc_cs_conf_set_pulse() argument 213 atmel_smc_cs_conf_set_cycle(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) atmel_smc_cs_conf_set_cycle() argument [all...] |
/kernel/linux/linux-6.6/drivers/mfd/ |
H A D | atmel-smc.c | 82 * @shift: the position of the Txx field in the TIMINGS register 88 * @conf->timings field at @shift position. 90 * Returns -EINVAL if shift is invalid, -ERANGE if ncycles does not fit in 94 unsigned int shift, unsigned int ncycles) in atmel_smc_cs_conf_set_timing() 99 if (shift != ATMEL_HSMC_TIMINGS_TCLR_SHIFT && in atmel_smc_cs_conf_set_timing() 100 shift != ATMEL_HSMC_TIMINGS_TADL_SHIFT && in atmel_smc_cs_conf_set_timing() 101 shift != ATMEL_HSMC_TIMINGS_TAR_SHIFT && in atmel_smc_cs_conf_set_timing() 102 shift != ATMEL_HSMC_TIMINGS_TRR_SHIFT && in atmel_smc_cs_conf_set_timing() 103 shift != ATMEL_HSMC_TIMINGS_TWB_SHIFT) in atmel_smc_cs_conf_set_timing() 113 conf->timings &= ~GENMASK(shift in atmel_smc_cs_conf_set_timing() 93 atmel_smc_cs_conf_set_timing(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) atmel_smc_cs_conf_set_timing() argument 135 atmel_smc_cs_conf_set_setup(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) atmel_smc_cs_conf_set_setup() argument 174 atmel_smc_cs_conf_set_pulse(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) atmel_smc_cs_conf_set_pulse() argument 213 atmel_smc_cs_conf_set_cycle(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) atmel_smc_cs_conf_set_cycle() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | bitops.h | 81 * @shift: bits to roll 83 static inline __u64 rol64(__u64 word, unsigned int shift) in rol64() argument 85 return (word << (shift & 63)) | (word >> ((-shift) & 63)); in rol64() 91 * @shift: bits to roll 93 static inline __u64 ror64(__u64 word, unsigned int shift) in ror64() argument 95 return (word >> (shift & 63)) | (word << ((-shift) & 63)); in ror64() 101 * @shift: bits to roll 103 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() argument 113 ror32(__u32 word, unsigned int shift) ror32() argument 123 rol16(__u16 word, unsigned int shift) rol16() argument 133 ror16(__u16 word, unsigned int shift) ror16() argument 143 rol8(__u8 word, unsigned int shift) rol8() argument 153 ror8(__u8 word, unsigned int shift) ror8() argument 167 __u8 shift = 31 - index; sign_extend32() local 178 __u8 shift = 63 - index; sign_extend64() local [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | bitops.h | 102 * @shift: bits to roll 104 static inline __u64 rol64(__u64 word, unsigned int shift) in rol64() argument 106 return (word << (shift & 63)) | (word >> ((-shift) & 63)); in rol64() 112 * @shift: bits to roll 114 static inline __u64 ror64(__u64 word, unsigned int shift) in ror64() argument 116 return (word >> (shift & 63)) | (word << ((-shift) & 63)); in ror64() 122 * @shift: bits to roll 124 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() argument 134 ror32(__u32 word, unsigned int shift) ror32() argument 144 rol16(__u16 word, unsigned int shift) rol16() argument 154 ror16(__u16 word, unsigned int shift) ror16() argument 164 rol8(__u8 word, unsigned int shift) rol8() argument 174 ror8(__u8 word, unsigned int shift) ror8() argument 188 __u8 shift = 31 - index; sign_extend32() local 199 __u8 shift = 63 - index; sign_extend64() local [all...] |
/kernel/linux/linux-6.6/arch/s390/include/asm/ |
H A D | cmpxchg.h | 21 int shift; in __arch_xchg() local 25 shift = (3 ^ (address & 3)) << 3; in __arch_xchg() 35 : "d" ((x & 0xff) << shift), "d" (~(0xff << shift)) in __arch_xchg() 37 return old >> shift; in __arch_xchg() 39 shift = (2 ^ (address & 2)) << 3; in __arch_xchg() 49 : "d" ((x & 0xffff) << shift), "d" (~(0xffff << shift)) in __arch_xchg() 51 return old >> shift; in __arch_xchg() 93 unsigned int prev, shift, mas in __cmpxchg() local 123 unsigned int prev, shift, mask; __cmpxchg() local [all...] |
/kernel/linux/linux-5.10/include/drm/ |
H A D | drm_fixed.h | 99 unsigned shift, sign = (a >> 63) & 1; in drm_fixp_msbset() local 101 for (shift = 62; shift > 0; --shift) in drm_fixp_msbset() 102 if (((a >> shift) & 1) != sign) in drm_fixp_msbset() 103 return shift; in drm_fixp_msbset() 110 unsigned shift = drm_fixp_msbset(a) + drm_fixp_msbset(b); in drm_fixp_mul() local 113 if (shift > 61) { in drm_fixp_mul() 114 shift = shift in drm_fixp_mul() 116 b >>= shift >> 1; drm_fixp_mul() local 133 unsigned shift = 62 - drm_fixp_msbset(a); drm_fixp_div() local 136 a <<= shift; drm_fixp_div() local [all...] |
/kernel/linux/linux-6.6/include/drm/ |
H A D | drm_fixed.h | 105 unsigned shift, sign = (a >> 63) & 1; in drm_fixp_msbset() local 107 for (shift = 62; shift > 0; --shift) in drm_fixp_msbset() 108 if (((a >> shift) & 1) != sign) in drm_fixp_msbset() 109 return shift; in drm_fixp_msbset() 116 unsigned shift = drm_fixp_msbset(a) + drm_fixp_msbset(b); in drm_fixp_mul() local 119 if (shift > 61) { in drm_fixp_mul() 120 shift = shift in drm_fixp_mul() 122 b >>= shift >> 1; drm_fixp_mul() local 139 unsigned shift = 62 - drm_fixp_msbset(a); drm_fixp_div() local 142 a <<= shift; drm_fixp_div() local [all...] |
/kernel/linux/linux-5.10/drivers/clk/meson/ |
H A D | parm.h | 14 #define SETPMASK(width, shift) GENMASK(shift + width - 1, shift) 15 #define CLRPMASK(width, shift) (~SETPMASK(width, shift)) 17 #define PARM_GET(width, shift, reg) \ 18 (((reg) & SETPMASK(width, shift)) >> (shift)) 19 #define PARM_SET(width, shift, reg, val) \ 20 (((reg) & CLRPMASK(width, shift)) | ((va 26 u8 shift; global() member [all...] |
/kernel/linux/linux-6.6/drivers/clk/meson/ |
H A D | parm.h | 14 #define SETPMASK(width, shift) GENMASK(shift + width - 1, shift) 15 #define CLRPMASK(width, shift) (~SETPMASK(width, shift)) 17 #define PARM_GET(width, shift, reg) \ 18 (((reg) & SETPMASK(width, shift)) >> (shift)) 19 #define PARM_SET(width, shift, reg, val) \ 20 (((reg) & CLRPMASK(width, shift)) | ((va 26 u8 shift; global() member [all...] |
/kernel/linux/linux-5.10/drivers/memory/tegra/ |
H A D | tegra114.c | 28 .shift = 0, 42 .shift = 0, 56 .shift = 16, 70 .shift = 16, 84 .shift = 0, 98 .shift = 0, 112 .shift = 0, 126 .shift = 0, 140 .shift = 16, 154 .shift [all...] |
H A D | tegra210.c | 25 .shift = 0, 39 .shift = 0, 53 .shift = 16, 67 .shift = 16, 81 .shift = 0, 95 .shift = 0, 109 .shift = 0, 123 .shift = 0, 137 .shift = 0, 151 .shift [all...] |
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | cmpxchg.c | 14 unsigned int shift; in __xchg_small() local 24 * Calculate a shift & mask that correspond to the value we wish to in __xchg_small() 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() local 43 new32 = (load32 & ~mask) | (val << shift); in __xchg_small() 47 return (load32 & mask) >> shift; in __xchg_small() 55 unsigned int shift; in __cmpxchg_small() local 66 * Calculate a shift in __cmpxchg_small() 74 mask <<= shift; __cmpxchg_small() local [all...] |
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | cmpxchg.c | 14 unsigned int shift; in __xchg_small() local 24 * Calculate a shift & mask that correspond to the value we wish to in __xchg_small() 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() local 43 new32 = (load32 & ~mask) | (val << shift); in __xchg_small() 47 return (load32 & mask) >> shift; in __xchg_small() 55 unsigned int shift; in __cmpxchg_small() local 66 * Calculate a shift in __cmpxchg_small() 74 mask <<= shift; __cmpxchg_small() local [all...] |
/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | cmpxchg.c | 18 unsigned int shift; in __xchg_small() local 28 * Calculate a shift & mask that correspond to the value we wish to in __xchg_small() 32 shift = (unsigned long)ptr & 0x3; in __xchg_small() 33 shift *= BITS_PER_BYTE; in __xchg_small() 34 mask <<= shift; in __xchg_small() local 49 : "ZC" (*ptr32), "Jr" (mask), "Jr" (val << shift) in __xchg_small() 52 return (old32 & mask) >> shift; in __xchg_small() 60 unsigned int shift; in __cmpxchg_small() local 71 * Calculate a shift & mask that correspond to the value we wish to in __cmpxchg_small() 75 shift in __cmpxchg_small() 77 old <<= shift; __cmpxchg_small() local 78 new <<= shift; __cmpxchg_small() local 79 mask <<= shift; __cmpxchg_small() local [all...] |
/kernel/linux/linux-6.6/drivers/memory/tegra/ |
H A D | tegra210.c | 26 .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 [all...] |
H A D | tegra30.c | 43 .shift = 0, 60 .shift = 0, 77 .shift = 0, 94 .shift = 16, 111 .shift = 16, 128 .shift = 0, 145 .shift = 0, 162 .shift = 16, 179 .shift = 16, 196 .shift [all...] |
H A D | tegra124.c | 22 .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 [all...] |