Home
last modified time | relevance | path

Searched refs:SHIFT (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/scsi/
H A Dscsi_logging.h44 #define SCSI_LOG_LEVEL(SHIFT, BITS) \ argument
45 ((scsi_logging_level >> (SHIFT)) & ((1 << (BITS)) - 1))
47 #define SCSI_CHECK_LOGGING(SHIFT, BITS, LEVEL, CMD) \ argument
49 if (unlikely((SCSI_LOG_LEVEL(SHIFT, BITS)) > (LEVEL))) \
55 #define SCSI_LOG_LEVEL(SHIFT, BITS) 0 argument
56 #define SCSI_CHECK_LOGGING(SHIFT, BITS, LEVEL, CMD) do { } while (0) argument
/linux/arch/arc/lib/
H A Dmemcmp.S10 #define SHIFT r3 macro
13 #define SHIFT r2 macro
50 asl_s SHIFT,SHIFT,3
60 bset r0,r0,SHIFT
96 neg_s SHIFT,SHIFT
97 lsr r4,r4,SHIFT
98 lsr r5,r5,SHIFT
/linux/drivers/gpu/drm/i915/selftests/
H A Di915_syncmap.c55 len = scnprintf(buf, *sz, "0x%016llx", p->prefix << p->height << SHIFT); in __sync_print()
58 X = (p->height + SHIFT) / 4; in __sync_print()
296 for (order = 0; order < 64; order += SHIFT) { in igt_syncmap_join_above()
345 for (order = 64 - SHIFT; order > 0; order -= SHIFT) { in igt_syncmap_join_below()
362 for (order = SHIFT; order < 64; order += SHIFT) { in igt_syncmap_join_below()
383 for (order = SHIFT; order < 64; order += SHIFT) { in igt_syncmap_join_below()
462 for (order = SHIFT; order < 64; order += SHIFT) { in igt_syncmap_compact()
/linux/sound/core/oss/
H A Drate.c12 #define SHIFT 11 macro
13 #define BITS (1<<SHIFT)
179 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_src_frames()
181 res = DIV_ROUND_CLOSEST(frames << SHIFT, data->pitch); in rate_src_frames()
212 res = DIV_ROUND_CLOSEST(frames << SHIFT, data->pitch); in rate_dst_frames()
214 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_dst_frames()
318 data->pitch = ((src_format->rate << SHIFT) + (dst_format->rate >> 1)) / dst_format->rate; in snd_pcm_plugin_build_rate()
321 data->pitch = ((dst_format->rate << SHIFT) + (src_format->rate >> 1)) / src_format->rate; in snd_pcm_plugin_build_rate()
/linux/drivers/gpu/drm/i915/
H A Di915_syncmap.c32 #define SHIFT ilog2(KSYNCMAP) macro
91 BUILD_BUG_ON_NOT_POWER_OF_2(SHIFT); in i915_syncmap_init()
123 return id >> p->height >> SHIFT; in __sync_branch_prefix()
129 return id >> SHIFT; in __sync_leaf_prefix()
288 above = round_up(above, SHIFT); in __sync_set()
301 idx = p->prefix >> (above - SHIFT) & MASK; in __sync_set()
/linux/rust/kernel/num/
H A Dbounded.rs500 /// Right-shifts `self` by `SHIFT` and returns the result as a `Bounded<_, RES>`, where `RES >= in shr()
501 /// N - SHIFT`. in shr()
513 pub fn shr<const SHIFT: u32, const RES: u32>(self) -> Bounded<T, RES> {
514 const_assert!(SHIFT < T::BITS);
515 const_assert!(RES + SHIFT >= N);
517 // SAFETY: We shift the value right by `SHIFT`, reducing the number of bits needed to
518 // represent the shifted value by as much, and just asserted that `RES >= N - SHIFT`.
519 unsafe { Bounded::__new(self.0 >> SHIFT) }
522 /// Right-shifts `self` by `SHIFT` if that loses no set bits, and returns the result as a
523 /// `Bounded<_, RES>`, where `RES >= N - SHIFT`
[all...]
/linux/arch/riscv/lib/
H A Dstrnlen.S52 # define SHIFT sll macro
55 # define SHIFT srl macro
119 SHIFT t1, t1, t2
/linux/tools/testing/shared/
H A Dshared.mk26 ifndef SHIFT
27 SHIFT=3
65 @if ! grep -qws $(SHIFT) generated/map-shift.h; then \
/linux/Documentation/scheduler/
H A Dsched-pelt.c14 #define SHIFT 32 macro
66 max = ((max*y_inv)>>SHIFT) + 1024; in calc_converged_max()
/linux/drivers/net/wireless/ath/carl9170/
H A Dphy.c1089 #define SHIFT 8 in carl9170_interpolate_u8() macro
1092 y = carl9170_interpolate_s32(x << SHIFT, x1 << SHIFT, in carl9170_interpolate_u8()
1093 y1 << SHIFT, x2 << SHIFT, y2 << SHIFT); in carl9170_interpolate_u8()
1100 return (y >> SHIFT) + ((y & (1 << (SHIFT - 1))) >> (SHIFT - 1)); in carl9170_interpolate_u8()
1101 #undef SHIFT in carl9170_interpolate_u8()
/linux/drivers/scsi/device_handler/
H A Dscsi_dh_rdac.c255 #define RDAC_LOG_LEVEL(SHIFT) \ argument
256 ((rdac_logging >> (SHIFT)) & ((1 << (RDAC_LOG_BITS)) - 1))
258 #define RDAC_LOG(SHIFT, sdev, f, arg...) \ argument
260 if (unlikely(RDAC_LOG_LEVEL(SHIFT))) \
/linux/drivers/pinctrl/cirrus/
H A Dpinctrl-lochnagar.c53 #define LN_PIN_GPIO(REV, ID, NAME, REG, SHIFT, INVERT) \ argument
56 .shift = LOCHNAGAR##REV##_##SHIFT##_SHIFT, .invert = INVERT, \
69 #define LN1_PIN_GPIO(ID, NAME, REG, SHIFT, INVERT) \ argument
70 LN_PIN_GPIO(1, ID, NAME, REG, SHIFT, INVERT)
78 #define LN2_PIN_GPIO(ID, NAME, REG, SHIFT, INVERT) \ argument
79 LN_PIN_GPIO(2, ID, NAME, REG, SHIFT, INVERT)
/linux/rust/kernel/
H A Dbitfield.rs419 const SHIFT: u32 = <$name>::[<$field:upper _SHIFT>];
421 let value = value.get() << SHIFT;
411 const SHIFT: u32 = <$name>::[<$field:upper _SHIFT>]; global() constant
/linux/drivers/net/ethernet/atheros/alx/
H A Dhw.h146 #define DESC_GET(_x, _name) ((_x) >> _name##SHIFT & _name##MASK)
/linux/tools/testing/selftests/kvm/arm64/
H A Dset_id_regs.c51 #define __REG_FTR_BITS(NAME, SIGNED, TYPE, SHIFT, MASK, SAFE_VAL, MUT) \
56 .shift = SHIFT, \
50 __REG_FTR_BITS(NAME,SIGNED,TYPE,SHIFT,MASK,SAFE_VAL,MUT) global() argument
/linux/fs/ext4/
H A Dextents.c5496 * and EXT_LAST_EXTENT(path[depth].p_hdr), by @shift blocks. @SHIFT tells in ext4_ext_shift_extents() argument
5502 enum SHIFT_DIRECTION SHIFT) in ext4_ext_shift_extents()
5539 if (SHIFT == SHIFT_LEFT) { in ext4_ext_shift_extents()
5571 if (SHIFT == SHIFT_LEFT) in ext4_ext_shift_extents()
5594 * upon @SHIFT) by @shift blocks. in ext4_ext_shift_extents()
5600 enum SHIFT_DIRECTION SHIFT) in ext4_ext_shift_extents()
5626 if (SHIFT == SHIFT_LEFT) { in ext4_ext_shift_extents()
5662 if (SHIFT == SHIFT_LEFT) in ext4_collapse_range()
5688 if (SHIFT == SHIFT_LEFT && *iterator > in ext4_collapse_range()
5700 if (SHIFT in ext4_collapse_range()
5398 ext4_ext_shift_path_extents(struct ext4_ext_path * path,ext4_lblk_t shift,struct inode * inode,handle_t * handle,enum SHIFT_DIRECTION SHIFT) ext4_ext_shift_path_extents() argument
[all...]
/linux/arch/arm64/kernel/
H A Dcpufeature.c195 #define __ARM64_FTR_BITS(SIGNED, VISIBLE, STRICT, TYPE, SHIFT, WIDTH, SAFE_VAL) \ argument
201 .shift = SHIFT, \
207 #define ARM64_FTR_BITS(VISIBLE, STRICT, TYPE, SHIFT, WIDTH, SAFE_VAL) \ argument
208 __ARM64_FTR_BITS(FTR_UNSIGNED, VISIBLE, STRICT, TYPE, SHIFT, WIDTH, SAFE_VAL)
211 #define S_ARM64_FTR_BITS(VISIBLE, STRICT, TYPE, SHIFT, WIDTH, SAFE_VAL) \ argument
212 __ARM64_FTR_BITS(FTR_SIGNED, VISIBLE, STRICT, TYPE, SHIFT, WIDTH, SAFE_VAL)
/linux/Documentation/userspace-api/media/rc/
H A Drc-tables.rst250 - TIME SHIFT
/linux/Documentation/input/devices/
H A Datarikbd.rst757 2A (LEFT) SHIFT
769 36 (RIGHT) SHIFT