Home
last modified time | relevance | path

Searched full:shift (Results 1 – 25 of 4071) sorted by relevance

12345678910>>...163

/kernel/linux/linux-4.19/tools/testing/selftests/net/forwarding/
Dmirror_lib.sh5 local from_dev=$1; shift
6 local direction=$1; shift
7 local to_dev=$1; shift
8 local filter=$1; shift
17 local from_dev=$1; shift
18 local direction=$1; shift
25 local vrf_name=$1; shift
26 local sip=$1; shift
27 local dip=$1; shift
28 local dev=$1; shift
[all …]
Dmirror_gre_lib.sh7 local tundev=$1; shift
14 local tundev=$1; shift
21 local tundev=$1; shift
28 local tundev=$1; shift
29 local direction=$1; shift
30 local forward_type=$1; shift
31 local backward_type=$1; shift
32 local what=$1; shift
33 local ip1=$1; shift
34 local ip2=$1; shift
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
Dmirror_lib.sh5 local from_dev=$1; shift
6 local direction=$1; shift
7 local to_dev=$1; shift
8 local filter=$1; shift
17 local from_dev=$1; shift
18 local direction=$1; shift
25 local addr=$1; shift
32 local vrf_name=$1; shift
33 local sip=$1; shift
34 local dip=$1; shift
[all …]
Dmirror_gre_lib.sh7 local tundev=$1; shift
14 local tundev=$1; shift
21 local tundev=$1; shift
28 local tundev=$1; shift
29 local direction=$1; shift
30 local forward_type=$1; shift
31 local backward_type=$1; shift
32 local what=$1; shift
33 local ip1=$1; shift
34 local ip2=$1; shift
[all …]
Ddevlink_lib.sh70 shift
95 shift
128 local port=$1; shift
129 local pool=$1; shift
137 local port=$1; shift
138 local pool=$1; shift
146 local port=$1; shift
147 local pool=$1; shift
148 local th=$1; shift
155 local port=$1; shift
[all …]
Dlib.sh83 local cmd=$1; shift
111 shift
192 local should_fail=$1; shift
193 local err=$1; shift
194 local what=$1; shift
239 local timeout=$1; shift
268 local addr=$1; shift
273 word=$1; shift
275 flag=$1; shift
289 local expr=$1; shift
[all …]
/kernel/linux/linux-5.10/drivers/clk/imx/
Dclk.h81 #define imx_clk_gate_exclusive(name, parent, reg, shift, exclusive_mask) \ argument
82 to_clk(imx_clk_hw_gate_exclusive(name, parent, reg, shift, exclusive_mask))
90 #define imx_clk_divider(name, parent, reg, shift, width) \ argument
91 to_clk(imx_clk_hw_divider(name, parent, reg, shift, width))
93 #define imx_clk_divider2(name, parent, reg, shift, width) \ argument
94 to_clk(imx_clk_hw_divider2(name, parent, reg, shift, width))
96 #define imx_clk_divider_flags(name, parent, reg, shift, width, flags) \ argument
97 to_clk(imx_clk_hw_divider_flags(name, parent, reg, shift, width, flags))
99 #define imx_clk_gate(name, parent, reg, shift) \ argument
100 to_clk(imx_clk_hw_gate(name, parent, reg, shift))
[all …]
/kernel/linux/linux-4.19/drivers/clk/imx/
Dclk.h55 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 * const *parents,
82 u8 shift, u8 width, const char * const *parents, in imx_clk_mux_ldb() argument
87 shift, width, CLK_MUX_READ_ONLY, &imx_ccm_lock); in imx_clk_mux_ldb()
98 void __iomem *reg, u8 shift, u8 width) in imx_clk_divider() argument
101 reg, shift, width, 0, &imx_ccm_lock); in imx_clk_divider()
105 const char *parent, void __iomem *reg, u8 shift, u8 width, in imx_clk_divider_flags() argument
[all …]
/kernel/linux/linux-5.10/drivers/bus/
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)
39 #define L3_STATUS_0_SGXIA_MERROR (shift << 11)
[all …]
/kernel/linux/linux-4.19/include/linux/
Dbitops.h59 * @shift: bits to roll
61 static inline __u64 rol64(__u64 word, unsigned int shift) in rol64() argument
63 return (word << (shift & 63)) | (word >> ((-shift) & 63)); in rol64()
69 * @shift: bits to roll
71 static inline __u64 ror64(__u64 word, unsigned int shift) in ror64() argument
73 return (word >> (shift & 63)) | (word << ((-shift) & 63)); in ror64()
79 * @shift: bits to roll
81 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() argument
83 return (word << (shift & 31)) | (word >> ((-shift) & 31)); in rol32()
89 * @shift: bits to roll
[all …]
/kernel/linux/linux-4.19/drivers/bus/
Domap_l3_smx.h43 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 …]
/kernel/linux/linux-4.19/drivers/mfd/
Datmel-smc.c85 * @shift: the position of the Txx field in the TIMINGS register
91 * @conf->timings field at @shift position.
93 * Returns -EINVAL if shift is invalid, -ERANGE if ncycles does not fit in
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()
[all …]
/kernel/linux/linux-5.10/drivers/mfd/
Datmel-smc.c82 * @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() argument
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 + 3, shift); in atmel_smc_cs_conf_set_timing()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dbitops.h81 * @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
105 return (word << (shift & 31)) | (word >> ((-shift) & 31)); in rol32()
111 * @shift: bits to roll
[all …]
/kernel/linux/linux-5.10/scripts/atomic/
Datomic-tbl.sh42 local pfx="$1"; shift
43 local name="$1"; shift
44 local sfx="$1"; shift
45 local order="$1"; shift
67 local meta="$1"; shift
68 local int="$1"; shift
96 local type="${1%%:*}"; shift
97 local int="$1"; shift
98 local atomic="$1"; shift
113 local arg="$1"; shift
[all …]
/kernel/linux/linux-5.10/drivers/clk/meson/
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()
/kernel/linux/linux-4.19/arch/arm/boot/dts/
Domap24xx-clocks.dtsi15 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 …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
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>;
133 ti,idlest-shift = <8>;
142 ti,bit-shift = <6>;
143 ti,idlest-shift = <9>;
152 ti,bit-shift = <5>;
[all …]
/kernel/linux/linux-4.19/arch/alpha/include/uapi/asm/
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
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 …]
/kernel/linux/linux-5.10/arch/alpha/include/uapi/asm/
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
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 …]
/kernel/linux/linux-4.19/arch/sparc/mm/
Dhugetlbpage.c135 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 …]
/kernel/linux/linux-5.10/arch/sparc/mm/
Dhugetlbpage.c134 static pte_t sun4u_hugepage_shift_to_tte(pte_t entry, unsigned int shift) in sun4u_hugepage_shift_to_tte() argument
139 static pte_t sun4v_hugepage_shift_to_tte(pte_t entry, unsigned int shift) in sun4v_hugepage_shift_to_tte() argument
145 switch (shift) { in sun4v_hugepage_shift_to_tte()
165 WARN_ONCE(1, "unsupported hugepage shift=%u\n", shift); in sun4v_hugepage_shift_to_tte()
172 static pte_t hugepage_shift_to_tte(pte_t entry, unsigned int shift) in hugepage_shift_to_tte() argument
175 return sun4v_hugepage_shift_to_tte(entry, shift); in hugepage_shift_to_tte()
177 return sun4u_hugepage_shift_to_tte(entry, shift); in hugepage_shift_to_tte()
183 unsigned int shift = huge_page_shift(hstate_vma(vma)); in arch_make_huge_pte() local
186 pte = hugepage_shift_to_tte(entry, shift); in arch_make_huge_pte()
203 unsigned int shift; in sun4v_huge_tte_to_shift() local
[all …]
/kernel/linux/linux-5.10/drivers/memory/tegra/
Dtegra30.c49 .shift = 0,
63 .shift = 0,
77 .shift = 16,
91 .shift = 16,
105 .shift = 0,
119 .shift = 0,
133 .shift = 16,
147 .shift = 16,
161 .shift = 0,
175 .shift = 0,
[all …]
/kernel/linux/linux-4.19/drivers/memory/tegra/
Dtegra30.c31 .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 …]
/kernel/linux/linux-4.19/include/drm/
Ddrm_fixed.h99 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 …]

12345678910>>...163