/linux/drivers/bus/ |
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) 40 #define L3_STATUS_0_CAMIA_BRST (shift << 12) [all …]
|
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, 117 .shift = 0, [all …]
|
/linux/arch/alpha/include/uapi/asm/ |
A D | compiler.h | 14 # 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/drivers/clk/imx/ |
A D | clk.h | 133 #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 …]
|
/linux/drivers/mfd/ |
A D | atmel-smc.c | 113 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/drivers/memory/tegra/ |
A D | tegra114.c | 21 .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 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 = 0, [all …]
|
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 = 0, [all …]
|
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, 196 .shift = 0, 213 .shift = 0, 247 .shift = 0, [all …]
|
/linux/arch/s390/include/asm/ |
A D | cmpxchg.h | 21 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 …]
|
/linux/drivers/clk/meson/ |
A D | parm.h | 14 #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()
|
A D | s4-pll.c | 33 .shift = 28, 38 .shift = 0, 43 .shift = 0, 48 .shift = 10, 53 .shift = 31, 58 .shift = 29, 75 .shift = 16, 312 .shift = 16, 385 .shift = 16, 443 .shift = 16, [all …]
|
/linux/include/linux/ |
A D | bitops.h | 107 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 …]
|
/linux/include/drm/ |
A D | drm_fixed.h | 108 for (shift = 62; shift > 0; --shift) in drm_fixp_msbset() 110 return shift; in drm_fixp_msbset() 120 if (shift > 61) { in drm_fixp_mul() 121 shift = shift - 61; in drm_fixp_mul() 122 a >>= (shift >> 1) + (shift & 1); in drm_fixp_mul() 123 b >>= shift >> 1; in drm_fixp_mul() 125 shift = 0; in drm_fixp_mul() 129 if (shift > DRM_FIXED_POINT) in drm_fixp_mul() 132 if (shift < DRM_FIXED_POINT) in drm_fixp_mul() 143 a <<= shift; in drm_fixp_div() [all …]
|
/linux/arch/mips/kernel/ |
A D | cmpxchg.c | 14 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/drivers/mtd/maps/ |
A D | physmap-bt1-rom.c | 33 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 …]
|
/linux/arch/arm/boot/dts/ti/omap/ |
A D | omap24xx-clocks.dtsi | 12 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/arch/powerpc/include/asm/book3s/64/ |
A D | hugetlb.h | 21 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() 70 static inline int check_and_get_huge_psize(int shift) in check_and_get_huge_psize() argument 74 if (shift > SLICE_HIGH_SHIFT) in check_and_get_huge_psize() 77 mmu_psize = shift_to_mmu_psize(shift); in check_and_get_huge_psize()
|
/linux/arch/sparc/mm/ |
A D | hugetlbpage.c | 142 switch (shift) { in sun4v_hugepage_shift_to_tte() 199 unsigned int shift; in sun4v_huge_tte_to_shift() local 221 return shift; in sun4v_huge_tte_to_shift() 227 unsigned int shift; in sun4u_huge_tte_to_shift() local 243 return shift; in sun4u_huge_tte_to_shift() 262 return shift; in huge_tte_to_shift() 337 shift = PAGE_SHIFT; in __set_huge_pte_at() 339 shift = PUD_SHIFT; in __set_huge_pte_at() 341 shift = PMD_SHIFT; in __set_huge_pte_at() 380 shift = PAGE_SHIFT; in huge_ptep_get_and_clear() [all …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
A D | phy_qmath.c | 103 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/drivers/soc/fsl/qe/ |
A D | ucc.c | 102 unsigned int shift; in ucc_mux_set_grant_tsa_bkpt() local 124 unsigned int shift; in ucc_set_qe_mux_rxtx() local 208 shift += 4; in ucc_set_qe_mux_rxtx() 506 u32 shift; in ucc_get_tdm_clk_shift() local 510 shift -= tdm_num * 4; in ucc_get_tdm_clk_shift() 514 return shift; in ucc_get_tdm_clk_shift() 521 u32 shift; in ucc_set_tdm_rxtx_clk() local 623 u32 shift; in ucc_get_tdm_sync_shift() local 626 shift -= tdm_num * 2; in ucc_get_tdm_sync_shift() 628 return shift; in ucc_get_tdm_sync_shift() [all …]
|
/linux/arch/powerpc/mm/ |
A D | init-common.c | 74 #define CTOR(shift) static void ctor_##shift(void *addr) \ argument 76 memset(addr, 0, sizeof(pgd_t) << (shift)); \ 82 static inline void (*ctor(int shift))(void *) in ctor() argument 86 switch (shift) { in ctor() 117 void pgtable_cache_add(unsigned int shift) in pgtable_cache_add() argument 120 unsigned long table_size = sizeof(pgd_t) << shift; in pgtable_cache_add() 134 BUG_ON(shift > MAX_PGTABLE_INDEX_SIZE); in pgtable_cache_add() 136 if (PGT_CACHE(shift)) in pgtable_cache_add() 140 name = kasprintf(GFP_KERNEL, "pgtable-2^%d", shift); in pgtable_cache_add() 147 pgtable_cache[shift] = new; in pgtable_cache_add() [all …]
|
/linux/drivers/video/fbdev/core/ |
A D | sysimgblt.c | 67 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 D | cfbimgblt.c | 93 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/drivers/gpio/ |
A D | gpio-tangier.c | 79 *bit = shift; in gpio_reg_and_bit() 86 u8 shift; in tng_gpio_get() local 97 u8 shift; in tng_gpio_set() local 111 u8 shift; in tng_gpio_direction_input() local 118 value &= ~BIT(shift); in tng_gpio_direction_input() 129 u8 shift; in tng_gpio_direction_output() local 137 value |= BIT(shift); in tng_gpio_direction_output() 146 u8 shift; in tng_gpio_get_direction() local 162 u8 shift; in tng_gpio_set_debounce() local 202 u8 shift; in tng_irq_ack() local [all …]
|