Searched refs:shift (Results 1 - 25 of 1663) sorted by relevance

1234567891011>>

/linux-master/drivers/clk/meson/
H A Dparm.h14 #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; member in struct:parm
[all...]
/linux-master/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)
39 #define L3_STATUS_0_SGXIA_MERROR (shift << 1
[all...]
H A Dda8xx-mstpri.c55 int shift; member in struct:da8xx_mstpri_descr
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...]
/linux-master/arch/alpha/include/uapi/asm/
H A Dcompiler.h14 # 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...]
/linux-master/include/clocksource/
H A Dtimer-riscv.h14 extern void riscv_cs_get_mult_shift(u32 *mult, u32 *shift);
/linux-master/arch/s390/include/asm/
H A Dcmpxchg.h21 int shift; local
25 shift = (3 ^ (address & 3)) << 3;
35 : "d" ((x & 0xff) << shift), "d" (~(0xff << shift))
37 return old >> shift;
39 shift = (2 ^ (address & 2)) << 3;
49 : "d" ((x & 0xffff) << shift), "d" (~(0xffff << shift))
51 return old >> shift;
93 unsigned int prev, shift, mas local
123 unsigned int prev, shift, mask; local
[all...]
/linux-master/arch/mips/kernel/
H A Dcmpxchg.c14 unsigned int shift; local
24 * Calculate a shift & mask that correspond to the value we wish to
28 shift = (unsigned long)ptr & 0x3;
30 shift ^= sizeof(u32) - size;
31 shift *= BITS_PER_BYTE;
32 mask <<= shift; local
43 new32 = (load32 & ~mask) | (val << shift);
47 return (load32 & mask) >> shift;
55 unsigned int shift; local
66 * Calculate a shift
74 mask <<= shift; local
[all...]
/linux-master/samples/bpf/
H A Dlwt_len_hist.bpf.c27 unsigned int shift; local
30 shift = (v > 0xFF) << 3; v >>= shift; r |= shift; local
31 shift = (v > 0xF) << 2; v >>= shift; r |= shift; local
32 shift = (v > 0x3) << 1; v >>= shift; r |= shift; local
[all...]
H A Dlathist_kern.c43 unsigned int shift; local
46 shift = (v > 0xFF) << 3; v >>= shift; r |= shift; local
47 shift = (v > 0xF) << 2; v >>= shift; r |= shift; local
48 shift = (v > 0x3) << 1; v >>= shift; r |= shift; local
[all...]
H A Dtracex2.bpf.c46 unsigned int shift; local
49 shift = (v > 0xFF) << 3; v >>= shift; r |= shift; local
50 shift = (v > 0xF) << 2; v >>= shift; r |= shift; local
51 shift = (v > 0x3) << 1; v >>= shift; r |= shift; local
[all...]
/linux-master/arch/powerpc/include/asm/book3s/64/
H A Dhugetlb.h21 unsigned long shift; local
23 shift = huge_page_shift(hstate);
24 if (shift == mmu_psize_defs[MMU_PAGE_2M].shift)
26 else if (shift == mmu_psize_defs[MMU_PAGE_1G].shift)
28 else if (shift == mmu_psize_defs[MMU_PAGE_16M].shift)
30 else if (shift == mmu_psize_defs[MMU_PAGE_16G].shift)
108 check_and_get_huge_psize(int shift) argument
[all...]
/linux-master/include/drm/
H A Ddrm_fixed.h105 unsigned shift, sign = (a >> 63) & 1; local
107 for (shift = 62; shift > 0; --shift)
108 if (((a >> shift) & 1) != sign)
109 return shift;
116 unsigned shift = drm_fixp_msbset(a) + drm_fixp_msbset(b); local
119 if (shift > 61) {
120 shift = shift
122 b >>= shift >> 1; local
139 unsigned shift = 62 - drm_fixp_msbset(a); local
142 a <<= shift; local
[all...]
/linux-master/lib/
H A Diommu-helper.c11 unsigned long shift, unsigned long boundary_size,
21 if (iommu_is_span_boundary(index, nr, shift, boundary_size)) {
22 start = ALIGN(shift + index, boundary_size) - shift;
9 iommu_area_alloc(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long shift, unsigned long boundary_size, unsigned long align_mask) argument
/linux-master/drivers/staging/media/atomisp/pci/isp/kernels/fpn/fpn_1.0/
H A Dia_css_fpn_param.h27 s32 shift; member in struct:sh_css_isp_fpn_params
/linux-master/arch/powerpc/include/asm/nohash/
H A Dpgalloc.h37 static inline void pgtable_free(void *table, int shift) argument
39 if (!shift) {
42 BUG_ON(shift > MAX_PGTABLE_INDEX_SIZE);
43 kmem_cache_free(PGT_CACHE(shift), table);
49 static inline void pgtable_free_tlb(struct mmu_gather *tlb, void *table, int shift) argument
53 BUG_ON(shift > MAX_PGTABLE_INDEX_SIZE);
54 pgf |= shift;
61 unsigned shift = (unsigned long)_table & MAX_PGTABLE_INDEX_SIZE; local
63 pgtable_free(table, shift);
/linux-master/drivers/mtd/maps/
H A Dphysmap-bt1-rom.c33 unsigned int shift; local
38 shift = (uintptr_t)src & 0x3;
39 data = readl_relaxed(src - shift);
40 if (!shift) {
44 ret.x[0] = data >> (shift * BITS_PER_BYTE);
47 shift = 4 - shift;
48 if (ofs + shift >= map->size)
51 data = readl_relaxed(src + shift);
52 ret.x[0] |= data << (shift * BITS_PER_BYT
62 unsigned int shift, chunk; local
81 memcpy(to, (char *)&data + shift, chunk); local
[all...]
/linux-master/drivers/clk/mxs/
H A Dclk.c14 int mxs_clk_wait(void __iomem *reg, u8 shift) argument
18 while (readl_relaxed(reg) & (1 << shift))
/linux-master/drivers/clk/sunxi/
H A Dclk-sun6i-ar100.c28 int shift; local
37 shift = 0;
39 shift = 1;
41 shift = 2;
43 shift = 3;
45 div >>= shift; local
50 req->rate = (req->parent_rate >> shift) / div;
52 req->p = shift;
/linux-master/arch/powerpc/mm/
H A Dinit-common.c71 #define CTOR(shift) static void ctor_##shift(void *addr) \
73 memset(addr, 0, sizeof(void *) << (shift)); \
79 static inline void (*ctor(int shift))(void *) argument
83 switch (shift) {
114 void pgtable_cache_add(unsigned int shift) argument
117 unsigned long table_size = sizeof(void *) << shift;
125 * shift value in the low bits. All tables must be aligned so
135 BUG_ON(shift > MAX_PGTABLE_INDEX_SIZE);
137 if (PGT_CACHE(shift))
[all...]
/linux-master/drivers/clk/st/
H A Dclkgen.h18 unsigned int shift; member in struct:clkgen_field
24 return (readl(base + field->offset) >> field->shift) & field->mask;
32 ~(field->mask << field->shift)) | (val << field->shift),
41 .shift = _shift, \
/linux-master/include/linux/
H A Diommu-helper.h21 unsigned long shift, unsigned long boundary_size)
25 shift = (shift + index) & (boundary_size - 1);
26 return shift + nr > boundary_size;
31 unsigned long shift,
20 iommu_is_span_boundary(unsigned int index, unsigned int nr, unsigned long shift, unsigned long boundary_size) argument
H A Dbitops.h102 * @shift: bits to roll
104 static inline __u64 rol64(__u64 word, unsigned int shift) argument
106 return (word << (shift & 63)) | (word >> ((-shift) & 63));
112 * @shift: bits to roll
114 static inline __u64 ror64(__u64 word, unsigned int shift) argument
116 return (word >> (shift & 63)) | (word << ((-shift) & 63));
122 * @shift: bits to roll
124 static inline __u32 rol32(__u32 word, unsigned int shift) argument
134 ror32(__u32 word, unsigned int shift) argument
144 rol16(__u16 word, unsigned int shift) argument
154 ror16(__u16 word, unsigned int shift) argument
164 rol8(__u8 word, unsigned int shift) argument
174 ror8(__u8 word, unsigned int shift) argument
188 __u8 shift = 31 - index; local
199 __u8 shift = 63 - index; local
[all...]
/linux-master/drivers/mfd/
H A 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)
99 if (shift != ATMEL_HSMC_TIMINGS_TCLR_SHIFT &&
100 shift != ATMEL_HSMC_TIMINGS_TADL_SHIFT &&
101 shift != ATMEL_HSMC_TIMINGS_TAR_SHIFT &&
102 shift != ATMEL_HSMC_TIMINGS_TRR_SHIFT &&
103 shift != ATMEL_HSMC_TIMINGS_TWB_SHIFT)
113 conf->timings &= ~GENMASK(shift
93 atmel_smc_cs_conf_set_timing(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) argument
135 atmel_smc_cs_conf_set_setup(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) argument
174 atmel_smc_cs_conf_set_pulse(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) argument
213 atmel_smc_cs_conf_set_cycle(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) argument
[all...]
/linux-master/drivers/clk/imx/
H A Dclk.h118 #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) argument
365 __imx_clk_hw_divider(const char *name, const char *parent, void __iomem *reg, u8 shift, u8 width, unsigned long flags) 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) 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) 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) argument
[all...]
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
H A Dphy_qmath.c93 * Description: This function make a 32 bit saturated left shift when the
94 * specified shift is +ve. This function will make a 32 bit right shift when
95 * the specified shift is -ve. This function return the result after shifting
98 s32 qm_shl32(s32 op, int shift) argument
103 if (shift > 31)
104 shift = 31;
105 else if (shift < -31)
106 shift = -31;
107 if (shift >
123 qm_shl16(s16 op, int shift) argument
147 qm_shr16(s16 op, int shift) argument
[all...]

Completed in 902 milliseconds

1234567891011>>