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

/include/linux/
H A Dkeyboard.h13 int shift; /* Current shift mask */ member in struct:keyboard_notifier_param
H A Dsmsc911x.h33 unsigned int shift; member in struct:smsc911x_platform_config
H A Dmath64.h139 static inline u64 mul_u64_u32_shr(u64 a, u32 mul, unsigned int shift) argument
141 return (u64)(((unsigned __int128)a * mul) >> shift);
148 static inline u64 mul_u64_u32_shr(u64 a, u32 mul, unsigned int shift) argument
156 ret = ((u64)al * mul) >> shift;
158 ret += ((u64)ah * mul) << (32 - shift);
H A Dproportions.h21 * period = 2^shift
23 int shift; member in struct:prop_global
27 * Treated as an unsigned long; the lower 'shift - 1' bits are the
44 int prop_descriptor_init(struct prop_descriptor *pd, int shift, gfp_t gfp);
60 int shift; member in struct:prop_local_percpu
113 int shift; member in struct:prop_local_single
H A Dbitops.h86 * @shift: bits to roll
88 static inline __u64 rol64(__u64 word, unsigned int shift) argument
90 return (word << shift) | (word >> (64 - shift));
96 * @shift: bits to roll
98 static inline __u64 ror64(__u64 word, unsigned int shift) argument
100 return (word >> shift) | (word << (64 - shift));
106 * @shift: bits to roll
108 static inline __u32 rol32(__u32 word, unsigned int shift) argument
118 ror32(__u32 word, unsigned int shift) argument
128 rol16(__u16 word, unsigned int shift) argument
138 ror16(__u16 word, unsigned int shift) argument
148 rol8(__u8 word, unsigned int shift) argument
158 ror8(__u8 word, unsigned int shift) argument
170 __u8 shift = 31 - index; local
[all...]
H A Drhashtable.h75 * @shift: Current size (1 << shift)
81 size_t shift; member in struct:rhashtable
H A Dtimekeeper_internal.h20 * @shift: Shift value for scaled math conversion
36 u32 shift; member in struct:tk_read_base
H A Dclocksource.h42 * @shift: cycle to nanosecond divisor (power of two)
48 u32 shift; member in struct:cyclecounter
85 ret = (ret * cc->mult) >> cc->shift;
158 * @shift: cycle to nanosecond divisor (power of two)
175 u32 shift; member in struct:clocksource
217 * clocksource_khz2mult - calculates mult from khz and shift
219 * @shift_constant: Clocksource shift factor
222 * multiplier, given the clocksource shift value
227 * mult/2^shift = ns/cyc
228 * mult = ns/cyc * 2^shift
277 clocksource_cyc2ns(cycle_t cycles, u32 mult, u32 shift) argument
[all...]
H A Dclockchips.h80 * @shift: nanoseconds to cycles divisor (power of two)
106 u32 shift; member in struct:clock_event_device
132 * clock_ticks = (nanoseconds * factor) >> shift.
137 * factor = (clock_ticks << shift) / nanoseconds
140 int shift)
142 uint64_t tmp = ((uint64_t)ticks) << shift;
173 return clocks_calc_mult_shift(&ce->mult, &ce->shift, NSEC_PER_SEC,
139 div_sc(unsigned long ticks, unsigned long nsec, int shift) argument
H A Dclk-provider.h308 * @shift: shift to the divider bit field
340 u8 shift; member in struct:clk_divider
357 void __iomem *reg, u8 shift, u8 width,
361 void __iomem *reg, u8 shift, u8 width,
370 * @shift: shift to multiplexer bit field
391 u8 shift; member in struct:clk_mux
406 void __iomem *reg, u8 shift, u8 width,
411 void __iomem *reg, u8 shift, u3
[all...]
H A Dhost1x.h175 unsigned long shift; member in struct:host1x_reloc
H A Dcompat.h116 compat_int_t shift; member in struct:compat_timex
/include/uapi/linux/tc_act/
H A Dtc_pedit.h23 __u32 shift; member in struct:tc_pedit_key
/include/drm/
H A Ddrm_fixed.h89 unsigned shift, sign = (a >> 63) & 1; local
91 for (shift = 62; shift > 0; --shift)
92 if (((a >> shift) & 1) != sign)
93 return shift;
100 unsigned shift = drm_fixp_msbset(a) + drm_fixp_msbset(b); local
103 if (shift > 61) {
104 shift = shift
106 b >>= shift >> 1; local
123 unsigned shift = 62 - drm_fixp_msbset(a); local
126 a <<= shift; local
[all...]
/include/linux/mfd/
H A Dlp3943.h83 * @shift: Register bit shift
88 u8 shift; member in struct:lp3943_reg_cfg
/include/net/
H A Dred.h235 int shift; local
257 shift = p->Stab[(us_idle >> p->Scell_log) & RED_STAB_MASK];
259 if (shift)
260 return v->qavg >> shift;
H A Dsch_generic.h774 u8 shift; member in struct:psched_ratecfg
783 return ((u64)(DIV_ROUND_UP(len,48)*53) * r->mult) >> r->shift;
785 return ((u64)len * r->mult) >> r->shift;
H A Dtcp.h310 static inline bool tcp_too_many_orphans(struct sock *sk, int shift) argument
315 if (orphans << shift > sysctl_tcp_max_orphans) {
317 if (orphans << shift > sysctl_tcp_max_orphans)
323 bool tcp_check_oom(struct sock *sk, int shift);
/include/uapi/drm/
H A Dmsm_drm.h113 * ((relocbuf->gpuaddr + reloc_offset) << shift) | or
116 * with this by emit'ing two reloc entries with appropriate shift
125 int32_t shift; /* in, amount of left shift (can be negative) */ member in struct:drm_msm_gem_submit_reloc
H A Dtegra_drm.h104 __u32 shift; member in struct:drm_tegra_reloc
/include/uapi/linux/tc_ematch/
H A Dtc_em_meta.h18 __u8 shift; member in struct:tcf_meta_val
/include/uapi/linux/
H A Dtimex.h81 int shift; /* interval duration (s) (shift) (ro) */ member in struct:timex
/include/linux/iio/
H A Diio.h177 * shift: Shift right by this before masking out
227 u8 shift; member in struct:iio_chan_spec::__anon402
/include/sound/
H A Dsoc-dapm.h74 .reg = wreg, .mask = 1, .shift = wshift, \
251 .reg = wreg, .shift = wshift, .mask = wmask, \
259 .reg = SND_SOC_NOPM, .shift = wdelay, .event = dapm_regulator_event, \
265 #define SOC_DAPM_SINGLE(xname, reg, shift, max, invert) \
269 .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert, 0) }
270 #define SOC_DAPM_SINGLE_AUTODISABLE(xname, reg, shift, max, invert) \
274 .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert, 1) }
277 #define SOC_DAPM_SINGLE_TLV(xname, reg, shift, max, invert, tlv_array) \
283 .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert, 0) }
284 #define SOC_DAPM_SINGLE_TLV_AUTODISABLE(xname, reg, shift, ma
539 unsigned char shift; /* bits to shift */ member in struct:snd_soc_dapm_widget
[all...]
H A Dsoc.h36 {.reg = xreg, .rreg = xreg, .shift = shift_left, \
46 {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
50 {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
55 {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
57 #define SOC_SINGLE(xname, reg, shift, max, invert) \
61 .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert, 0) }
67 {.reg = xreg, .rreg = xreg, .shift = xshift, \
70 #define SOC_SINGLE_TLV(xname, reg, shift, max, invert, tlv_array) \
77 .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert, 0) }
88 .shift
1147 unsigned int shift, rshift; member in struct:soc_mixer_control
[all...]

Completed in 2715 milliseconds