/Linux-v4.19/drivers/bus/ |
D | omap_l3_smx.h | 43 static const u64 shift = 1; variable 45 #define L3_STATUS_0_MPUIA_BRST (shift << 0) 46 #define L3_STATUS_0_MPUIA_RSP (shift << 1) 47 #define L3_STATUS_0_MPUIA_INBAND (shift << 2) 48 #define L3_STATUS_0_IVAIA_BRST (shift << 6) 49 #define L3_STATUS_0_IVAIA_RSP (shift << 7) 50 #define L3_STATUS_0_IVAIA_INBAND (shift << 8) 51 #define L3_STATUS_0_SGXIA_BRST (shift << 9) 52 #define L3_STATUS_0_SGXIA_RSP (shift << 10) 53 #define L3_STATUS_0_SGXIA_MERROR (shift << 11) [all …]
|
D | da8xx-mstpri.c | 58 int shift; member 65 .shift = 0, 70 .shift = 4, 75 .shift = 16, 80 .shift = 20, 85 .shift = 0, 90 .shift = 4, 95 .shift = 8, 100 .shift = 12, 105 .shift = 16, [all …]
|
/Linux-v4.19/arch/alpha/include/uapi/asm/ |
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 24 __asm__("insbl %2,%1,%0" : "=r"(__kir) : "rI"(shift), "r"(val)); \ 26 # define __kernel_inswl(val, shift) \ argument 28 __asm__("inswl %2,%1,%0" : "=r"(__kir) : "rI"(shift), "r"(val)); \ [all …]
|
/Linux-v4.19/drivers/memory/tegra/ |
D | tegra30.c | 31 .shift = 0, 45 .shift = 0, 59 .shift = 16, 73 .shift = 16, 87 .shift = 0, 101 .shift = 0, 115 .shift = 16, 129 .shift = 16, 143 .shift = 0, 157 .shift = 0, [all …]
|
D | tegra210.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 = 0, 154 .shift = 0, [all …]
|
D | tegra114.c | 31 .shift = 0, 45 .shift = 0, 59 .shift = 16, 73 .shift = 16, 87 .shift = 0, 101 .shift = 0, 115 .shift = 0, 129 .shift = 0, 143 .shift = 16, 157 .shift = 0, [all …]
|
D | tegra124.c | 73 .shift = 0, 87 .shift = 0, 101 .shift = 16, 115 .shift = 16, 129 .shift = 0, 143 .shift = 0, 157 .shift = 0, 171 .shift = 0, 185 .shift = 0, 199 .shift = 0, [all …]
|
/Linux-v4.19/include/linux/ |
D | bitops.h | 61 static inline __u64 rol64(__u64 word, unsigned int shift) in rol64() argument 63 return (word << shift) | (word >> (64 - shift)); in rol64() 71 static inline __u64 ror64(__u64 word, unsigned int shift) in ror64() argument 73 return (word >> shift) | (word << (64 - shift)); in ror64() 81 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() argument 83 return (word << shift) | (word >> ((-shift) & 31)); in rol32() 91 static inline __u32 ror32(__u32 word, unsigned int shift) in ror32() argument 93 return (word >> shift) | (word << (32 - shift)); in ror32() 101 static inline __u16 rol16(__u16 word, unsigned int shift) in rol16() argument 103 return (word << shift) | (word >> (16 - shift)); in rol16() [all …]
|
/Linux-v4.19/drivers/mfd/ |
D | atmel-smc.c | 97 unsigned int shift, unsigned int ncycles) in atmel_smc_cs_conf_set_timing() argument 102 if (shift != ATMEL_HSMC_TIMINGS_TCLR_SHIFT && in atmel_smc_cs_conf_set_timing() 103 shift != ATMEL_HSMC_TIMINGS_TADL_SHIFT && in atmel_smc_cs_conf_set_timing() 104 shift != ATMEL_HSMC_TIMINGS_TAR_SHIFT && in atmel_smc_cs_conf_set_timing() 105 shift != ATMEL_HSMC_TIMINGS_TRR_SHIFT && in atmel_smc_cs_conf_set_timing() 106 shift != ATMEL_HSMC_TIMINGS_TWB_SHIFT) in atmel_smc_cs_conf_set_timing() 116 conf->timings &= ~GENMASK(shift + 3, shift); in atmel_smc_cs_conf_set_timing() 117 conf->timings |= val << shift; in atmel_smc_cs_conf_set_timing() 139 unsigned int shift, unsigned int ncycles) in atmel_smc_cs_conf_set_setup() argument 144 if (shift != ATMEL_SMC_NWE_SHIFT && shift != ATMEL_SMC_NCS_WR_SHIFT && in atmel_smc_cs_conf_set_setup() [all …]
|
D | tmio_core.c | 32 int tmio_core_mmc_enable(void __iomem *cnf, int shift, unsigned long base) in tmio_core_mmc_enable() argument 35 sd_config_write16(cnf, shift, CNF_CMD, SDCREN); in tmio_core_mmc_enable() 36 sd_config_write32(cnf, shift, CNF_CTL_BASE, base & 0xfffe); in tmio_core_mmc_enable() 39 sd_config_write8(cnf, shift, CNF_PWR_CTL_3, 0x01); in tmio_core_mmc_enable() 42 sd_config_write8(cnf, shift, CNF_STOP_CLK_CTL, 0x1f); in tmio_core_mmc_enable() 45 sd_config_write8(cnf, shift, CNF_PWR_CTL_2, 0x00); in tmio_core_mmc_enable() 51 int tmio_core_mmc_resume(void __iomem *cnf, int shift, unsigned long base) in tmio_core_mmc_resume() argument 55 sd_config_write16(cnf, shift, CNF_CMD, SDCREN); in tmio_core_mmc_resume() 56 sd_config_write32(cnf, shift, CNF_CTL_BASE, base & 0xfffe); in tmio_core_mmc_resume() 62 void tmio_core_mmc_pwr(void __iomem *cnf, int shift, int state) in tmio_core_mmc_pwr() argument [all …]
|
/Linux-v4.19/drivers/clk/imx/ |
D | clk.h | 55 void __iomem *reg, u8 shift, u32 exclusive_mask); 61 void __iomem *reg, u8 shift, u8 width, 64 struct clk *imx_clk_busy_mux(const char *name, void __iomem *reg, u8 shift, 69 void __iomem *reg, u8 shift, u8 width, 73 u8 shift, u8 width, const char **parents, 82 u8 shift, u8 width, const char **parents, int num_parents) in imx_clk_mux_ldb() argument 86 shift, width, CLK_MUX_READ_ONLY, &imx_ccm_lock); in imx_clk_mux_ldb() 97 void __iomem *reg, u8 shift, u8 width) in imx_clk_divider() argument 100 reg, shift, width, 0, &imx_ccm_lock); in imx_clk_divider() 104 const char *parent, void __iomem *reg, u8 shift, u8 width, in imx_clk_divider_flags() argument [all …]
|
/Linux-v4.19/include/drm/ |
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 - 61; in drm_fixp_mul() 115 a >>= (shift >> 1) + (shift & 1); in drm_fixp_mul() 116 b >>= shift >> 1; in drm_fixp_mul() 118 shift = 0; in drm_fixp_mul() [all …]
|
/Linux-v4.19/arch/mips/kernel/ |
D | cmpxchg.c | 18 unsigned int shift; in __xchg_small() local 32 shift = (unsigned long)ptr & 0x3; in __xchg_small() 34 shift ^= sizeof(u32) - size; in __xchg_small() 35 shift *= BITS_PER_BYTE; in __xchg_small() 36 mask <<= shift; in __xchg_small() 47 new32 = (load32 & ~mask) | (val << shift); in __xchg_small() 51 return (load32 & mask) >> shift; in __xchg_small() 59 unsigned int shift; in __cmpxchg_small() local 75 shift = (unsigned long)ptr & 0x3; in __cmpxchg_small() 77 shift ^= sizeof(u32) - size; in __cmpxchg_small() [all …]
|
/Linux-v4.19/arch/arm/boot/dts/ |
D | omap24xx-clocks.dtsi | 15 ti,bit-shift = <2>; 29 ti,bit-shift = <6>; 81 ti,bit-shift = <23>; 97 ti,bit-shift = <6>; 106 ti,bit-shift = <6>; 135 ti,bit-shift = <2>; 136 ti,idlest-shift = <8>; 145 ti,bit-shift = <6>; 146 ti,idlest-shift = <9>; 155 ti,bit-shift = <5>; [all …]
|
D | omap3xxx-clocks.dtsi | 28 ti,bit-shift = <6>; 39 ti,bit-shift = <7>; 88 ti,bit-shift = <4>; 102 ti,bit-shift = <2>; 116 ti,bit-shift = <6>; 143 ti,bit-shift = <2>; 224 ti,bit-shift = <0x1b>; 248 ti,bit-shift = <16>; 266 ti,bit-shift = <0xc>; 295 ti,bit-shift = <27>; [all …]
|
/Linux-v4.19/arch/sparc/mm/ |
D | hugetlbpage.c | 135 static pte_t sun4u_hugepage_shift_to_tte(pte_t entry, unsigned int shift) in sun4u_hugepage_shift_to_tte() argument 140 static pte_t sun4v_hugepage_shift_to_tte(pte_t entry, unsigned int shift) in sun4v_hugepage_shift_to_tte() argument 146 switch (shift) { in sun4v_hugepage_shift_to_tte() 166 WARN_ONCE(1, "unsupported hugepage shift=%u\n", shift); in sun4v_hugepage_shift_to_tte() 173 static pte_t hugepage_shift_to_tte(pte_t entry, unsigned int shift) in hugepage_shift_to_tte() argument 176 return sun4v_hugepage_shift_to_tte(entry, shift); in hugepage_shift_to_tte() 178 return sun4u_hugepage_shift_to_tte(entry, shift); in hugepage_shift_to_tte() 184 unsigned int shift = huge_page_shift(hstate_vma(vma)); in arch_make_huge_pte() local 187 pte = hugepage_shift_to_tte(entry, shift); in arch_make_huge_pte() 204 unsigned int shift; in sun4v_huge_tte_to_shift() local [all …]
|
/Linux-v4.19/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
D | phy_qmath.c | 109 s32 qm_shl32(s32 op, int shift) in qm_shl32() argument 114 if (shift > 31) in qm_shl32() 115 shift = 31; in qm_shl32() 116 else if (shift < -31) in qm_shl32() 117 shift = -31; in qm_shl32() 118 if (shift >= 0) { in qm_shl32() 119 for (i = 0; i < shift; i++) in qm_shl32() 122 result = result >> (-shift); in qm_shl32() 134 s16 qm_shl16(s16 op, int shift) in qm_shl16() argument 139 if (shift > 15) in qm_shl16() [all …]
|
/Linux-v4.19/drivers/video/fbdev/core/ |
D | sysimgblt.c | 57 u32 color = 0, val, shift; in color_imageblit() local 67 shift = 0; in color_imageblit() 74 shift = start_index; in color_imageblit() 83 val |= FB_SHIFT_HIGH(p, color, shift); in color_imageblit() 84 if (shift >= null_bits) { in color_imageblit() 87 val = (shift == null_bits) ? 0 : in color_imageblit() 88 FB_SHIFT_LOW(p, color, 32 - shift); in color_imageblit() 90 shift += bpp; in color_imageblit() 91 shift &= (32 - 1); in color_imageblit() 94 if (shift) { in color_imageblit() [all …]
|
D | cfbimgblt.c | 82 u32 color = 0, val, shift; in color_imageblit() local 93 shift = 0; in color_imageblit() 100 shift = start_index; in color_imageblit() 109 val |= FB_SHIFT_HIGH(p, color, shift ^ bswapmask); in color_imageblit() 110 if (shift >= null_bits) { in color_imageblit() 113 val = (shift == null_bits) ? 0 : in color_imageblit() 114 FB_SHIFT_LOW(p, color, 32 - shift); in color_imageblit() 116 shift += bpp; in color_imageblit() 117 shift &= (32 - 1); in color_imageblit() 120 if (shift) { in color_imageblit() [all …]
|
/Linux-v4.19/arch/powerpc/include/asm/book3s/64/ |
D | hugetlb.h | 18 unsigned long shift; in hstate_get_psize() local 20 shift = huge_page_shift(hstate); in hstate_get_psize() 21 if (shift == mmu_psize_defs[MMU_PAGE_2M].shift) in hstate_get_psize() 23 else if (shift == mmu_psize_defs[MMU_PAGE_1G].shift) in hstate_get_psize() 25 else if (shift == mmu_psize_defs[MMU_PAGE_16M].shift) in hstate_get_psize() 27 else if (shift == mmu_psize_defs[MMU_PAGE_16G].shift) in hstate_get_psize()
|
/Linux-v4.19/drivers/soc/fsl/qe/ |
D | ucc.c | 94 unsigned int *reg_num, unsigned int *shift) in get_cmxucr_reg() argument 100 *shift = 16 - 8 * (ucc_num & 2); in get_cmxucr_reg() 107 unsigned int shift; in ucc_mux_set_grant_tsa_bkpt() local 113 get_cmxucr_reg(ucc_num, &cmxucr, ®_num, &shift); in ucc_mux_set_grant_tsa_bkpt() 116 setbits32(cmxucr, mask << shift); in ucc_mux_set_grant_tsa_bkpt() 118 clrbits32(cmxucr, mask << shift); in ucc_mux_set_grant_tsa_bkpt() 128 unsigned int shift; in ucc_set_qe_mux_rxtx() local 139 get_cmxucr_reg(ucc_num, &cmxucr, ®_num, &shift); in ucc_set_qe_mux_rxtx() 212 shift += 4; in ucc_set_qe_mux_rxtx() 214 clrsetbits_be32(cmxucr, QE_CMXUCR_TX_CLK_SRC_MASK << shift, in ucc_set_qe_mux_rxtx() [all …]
|
/Linux-v4.19/drivers/clk/meson/ |
D | clkc.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()
|
D | axg.c | 29 .shift = 0, 34 .shift = 9, 39 .shift = 16, 44 .shift = 0, 49 .shift = 31, 54 .shift = 29, 70 .shift = 0, 75 .shift = 9, 80 .shift = 16, 85 .shift = 31, [all …]
|
/Linux-v4.19/arch/powerpc/mm/ |
D | tlb_nohash.c | 60 .shift = 12, 64 .shift = 21, 68 .shift = 22, 72 .shift = 24, 76 .shift = 26, 80 .shift = 28, 84 .shift = 30, 93 .shift = 12, 97 .shift = 14, 101 .shift = 19, [all …]
|
/Linux-v4.19/samples/bpf/ |
D | lwt_len_hist_kern.c | 47 unsigned int shift; in log2() local 50 shift = (v > 0xFF) << 3; v >>= shift; r |= shift; in log2() 51 shift = (v > 0xF) << 2; v >>= shift; r |= shift; in log2() 52 shift = (v > 0x3) << 1; v >>= shift; r |= shift; in log2()
|