Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 25 of 50) sorted by relevance

12

/include/linux/
Dbitops.h69 static inline __u64 rol64(__u64 word, unsigned int shift) in rol64() argument
71 return (word << (shift & 63)) | (word >> ((-shift) & 63)); in rol64()
79 static inline __u64 ror64(__u64 word, unsigned int shift) in ror64() argument
81 return (word >> (shift & 63)) | (word << ((-shift) & 63)); in ror64()
89 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() argument
91 return (word << (shift & 31)) | (word >> ((-shift) & 31)); in rol32()
99 static inline __u32 ror32(__u32 word, unsigned int shift) in ror32() argument
101 return (word >> (shift & 31)) | (word << ((-shift) & 31)); in ror32()
109 static inline __u16 rol16(__u16 word, unsigned int shift) in rol16() argument
111 return (word << (shift & 15)) | (word >> ((-shift) & 15)); in rol16()
[all …]
Diommu-helper.h19 unsigned long shift, unsigned long boundary_size) in iommu_is_span_boundary() argument
23 shift = (shift + index) & (boundary_size - 1); in iommu_is_span_boundary()
24 return shift + nr > boundary_size; in iommu_is_span_boundary()
29 unsigned long shift,
Dmath64.h159 static inline u64 mul_u64_u32_shr(u64 a, u32 mul, unsigned int shift) in mul_u64_u32_shr() argument
161 return (u64)(((unsigned __int128)a * mul) >> shift); in mul_u64_u32_shr()
166 static inline u64 mul_u64_u64_shr(u64 a, u64 mul, unsigned int shift) in mul_u64_u64_shr() argument
168 return (u64)(((unsigned __int128)a * mul) >> shift); in mul_u64_u64_shr()
175 static inline u64 mul_u64_u32_shr(u64 a, u32 mul, unsigned int shift) in mul_u64_u32_shr() argument
183 ret = mul_u32_u32(al, mul) >> shift; in mul_u64_u32_shr()
185 ret += mul_u32_u32(ah, mul) << (32 - shift); in mul_u64_u32_shr()
192 static inline u64 mul_u64_u64_shr(u64 a, u64 b, unsigned int shift) in mul_u64_u64_shr() argument
227 if (shift == 0) in mul_u64_u64_shr()
229 if (shift < 64) in mul_u64_u64_shr()
[all …]
Dt10-pi.h42 unsigned int shift = ilog2(queue_logical_block_size(rq->q)); in t10_pi_ref_tag() local
46 shift = rq->q->integrity.interval_exp; in t10_pi_ref_tag()
48 return blk_rq_pos(rq) >> (shift - SECTOR_SHIFT) & 0xffffffff; in t10_pi_ref_tag()
Dclockchips.h108 u32 shift; member
172 div_sc(unsigned long ticks, unsigned long nsec, int shift) in div_sc() argument
174 u64 tmp = ((u64)ticks) << shift; in div_sc()
195 return clocks_calc_mult_shift(&ce->mult, &ce->shift, NSEC_PER_SEC, freq, maxsec); in clockevents_calc_mult_shift()
Dclocksource.h86 u32 shift; member
186 static inline s64 clocksource_cyc2ns(u64 cycles, u32 mult, u32 shift) in clocksource_cyc2ns() argument
188 return ((u64) cycles * mult) >> shift; in clocksource_cyc2ns()
204 clocks_calc_max_nsecs(u32 mult, u32 shift, u32 maxadj, u64 mask, u64 *max_cycles);
206 clocks_calc_mult_shift(u32 *mult, u32 *shift, u32 from, u32 to, u32 minsec);
Dtimecounter.h34 u32 shift; member
77 return ns >> cc->shift; in cyclecounter_cyc2ns()
Dbitmap.h130 unsigned int shift, unsigned int nbits);
132 unsigned int shift, unsigned int nbits);
418 unsigned int shift, unsigned int nbits) in bitmap_shift_right() argument
421 *dst = (*src & BITMAP_LAST_WORD_MASK(nbits)) >> shift; in bitmap_shift_right()
423 __bitmap_shift_right(dst, src, shift, nbits); in bitmap_shift_right()
427 unsigned int shift, unsigned int nbits) in bitmap_shift_left() argument
430 *dst = (*src << shift) & BITMAP_LAST_WORD_MASK(nbits); in bitmap_shift_left()
432 __bitmap_shift_left(dst, src, shift, nbits); in bitmap_shift_left()
Dsbitmap.h57 unsigned int shift; member
155 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
228 #define SB_NR_TO_INDEX(sb, bitnr) ((bitnr) >> (sb)->shift)
229 #define SB_NR_TO_BIT(sb, bitnr) ((bitnr) & ((1U << (sb)->shift) - 1U))
277 if (!fn(sb, (index << sb->shift) + nr, data)) in __sbitmap_for_each_set()
376 int shift, bool round_robin, gfp_t flags, int node);
Dkeyboard.h14 int shift; /* Current shift mask */ member
Dsmsc911x.h20 unsigned int shift; member
Dtnum.h29 struct tnum tnum_lshift(struct tnum a, u8 shift);
31 struct tnum tnum_rshift(struct tnum a, u8 shift);
/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 …]
/include/linux/mfd/
Dtmio.h28 #define sd_config_write8(base, shift, reg, val) \ argument
29 tmio_iowrite8((val), (base) + ((reg) << (shift)))
30 #define sd_config_write16(base, shift, reg, val) \ argument
31 tmio_iowrite16((val), (base) + ((reg) << (shift)))
32 #define sd_config_write32(base, shift, reg, val) \ argument
34 tmio_iowrite16((val), (base) + ((reg) << (shift))); \
35 tmio_iowrite16((val) >> 16, (base) + ((reg + 2) << (shift))); \
85 int tmio_core_mmc_enable(void __iomem *cnf, int shift, unsigned long base);
86 int tmio_core_mmc_resume(void __iomem *cnf, int shift, unsigned long base);
87 void tmio_core_mmc_pwr(void __iomem *cnf, int shift, int state);
[all …]
/include/linux/mfd/syscon/
Datmel-smc.h98 unsigned int shift,
101 unsigned int shift, unsigned int ncycles);
103 unsigned int shift, unsigned int ncycles);
105 unsigned int shift, unsigned int ncycles);
/include/linux/fsl/
Dguts.h158 unsigned int shift = 16 + (8 * (1 - co) + 2 * (3 - ch)); in guts_set_dmacr() local
160 clrsetbits_be32(&guts->dmacr, 3 << shift, device << shift); in guts_set_dmacr()
195 unsigned int shift = 2 * (co + 1) - (ch & 1) - 1; in guts_set_pmuxcr_dma() local
197 clrsetbits_be32(&guts->pmuxcr, 1 << shift, value << shift); in guts_set_pmuxcr_dma()
/include/linux/platform_data/txx9/
Dndfmc.h15 unsigned int shift; member
/include/uapi/linux/
Dtimex.h81 int shift; /* interval duration (s) (shift) (ro) */ member
119 int shift; /* interval duration (s) (shift) (ro) */ member
/include/sound/
Dwss.h162 #define WSS_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
169 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
188 #define WSS_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument
196 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \
Dsoc-dapm.h79 .reg = wreg, .mask = 1, .shift = wshift, \
261 .reg = wreg, .shift = wshift, .mask = wmask, \
269 .reg = SND_SOC_NOPM, .shift = wdelay, .event = dapm_regulator_event, \
287 #define SOC_DAPM_DOUBLE_R(xname, lreg, rreg, shift, max, invert) \ argument
291 .private_value = SOC_DOUBLE_R_VALUE(lreg, rreg, shift, max, invert) }
292 #define SOC_DAPM_SINGLE(xname, reg, shift, max, invert) \ argument
296 .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert, 0) }
297 #define SOC_DAPM_SINGLE_AUTODISABLE(xname, reg, shift, max, invert) \ argument
301 .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert, 1) }
304 #define SOC_DAPM_SINGLE_TLV(xname, reg, shift, max, invert, tlv_array) \ argument
[all …]
Dsb.h326 #define SB_MIXVAL_SINGLE(reg, shift, mask) \ argument
327 ((reg) | ((shift) << 16) | ((mask) << 24))
340 #define SB_SINGLE(xname, reg, shift, mask) \ argument
343 .private_value = SB_MIXVAL_SINGLE(reg, shift, mask) }
/include/linux/sched/
Dloadavg.h16 extern void get_avenrun(unsigned long *loads, unsigned long offset, int shift);
/include/net/
Dred.h257 int shift; in red_calc_qavg_from_idle_time() local
279 shift = p->Stab[(us_idle >> p->Scell_log) & RED_STAB_MASK]; in red_calc_qavg_from_idle_time()
281 if (shift) in red_calc_qavg_from_idle_time()
282 return v->qavg >> shift; in red_calc_qavg_from_idle_time()
/include/uapi/linux/tc_act/
Dtc_pedit.h58 __u32 shift; member
/include/vdso/
Ddatapage.h77 u32 shift; member

12