Home
last modified time | relevance | path

Searched refs:magnitude (Results 1 – 25 of 31) sorted by relevance

12

/linux/drivers/hid/
H A Dhid-lgff.c99 static void hid_lgff_set_autocenter(struct input_dev *dev, u16 magnitude) in hid_lgff_set_autocenter() argument
105 magnitude = (magnitude >> 12) & 0xf; in hid_lgff_set_autocenter()
108 *value++ = magnitude; /* clockwise strength */ in hid_lgff_set_autocenter()
109 *value++ = magnitude; /* counter-clockwise strength */ in hid_lgff_set_autocenter()
H A Dhid-lg4ff.c468 static void lg4ff_set_autocenter_default(struct input_dev *dev, u16 magnitude) in lg4ff_set_autocenter_default() argument
492 if (magnitude == 0) { in lg4ff_set_autocenter_default()
506 if (magnitude <= 0xaaaa) { in lg4ff_set_autocenter_default()
507 expand_a = 0x0c * magnitude; in lg4ff_set_autocenter_default()
508 expand_b = 0x80 * magnitude; in lg4ff_set_autocenter_default()
510 expand_a = (0x0c * 0xaaaa) + 0x06 * (magnitude - 0xaaaa); in lg4ff_set_autocenter_default()
511 expand_b = (0x80 * 0xaaaa) + 0xff * (magnitude - 0xaaaa); in lg4ff_set_autocenter_default()
548 static void lg4ff_set_autocenter_ffex(struct input_dev *dev, u16 magnitude) in lg4ff_set_autocenter_ffex() argument
555 magnitude = magnitude * 90 / 65535; in lg4ff_set_autocenter_ffex()
573 value[2] = magnitude >> 14; in lg4ff_set_autocenter_ffex()
[all …]
H A Dhid-microsoft.c53 __u8 magnitude[MAGNITUDE_NUM]; member
299 r->magnitude[MAGNITUDE_STRONG] = ms->strong; /* left actuator */ in ms_ff_worker()
300 r->magnitude[MAGNITUDE_WEAK] = ms->weak; /* right actuator */ in ms_ff_worker()
H A Dhid-lg3ff.c83 static void hid_lg3ff_set_autocenter(struct input_dev *dev, u16 magnitude) in hid_lg3ff_set_autocenter() argument
H A Dhid-logitech-hidpp.c2619 force = (effect->u.periodic.magnitude * fixp_sin16((effect->direction * 360) >> 16)) >> 15; in hidpp_ff_upload_effect()
2620 params[6] = effect->u.periodic.magnitude >> 8; in hidpp_ff_upload_effect()
2621 params[7] = effect->u.periodic.magnitude & 255; in hidpp_ff_upload_effect()
2636 effect->u.periodic.magnitude, effect->direction, in hidpp_ff_upload_effect()
2730 static void hidpp_ff_set_autocenter(struct input_dev *dev, u16 magnitude) in hidpp_ff_set_autocenter() argument
2735 dbg_hid("Setting autocenter to %d.\n", magnitude); in hidpp_ff_set_autocenter()
2742 params[8] = params[14] = magnitude >> 11; in hidpp_ff_set_autocenter()
2743 params[9] = params[15] = (magnitude >> 3) & 255; in hidpp_ff_set_autocenter()
2744 params[6] = params[16] = magnitude >> 9; in hidpp_ff_set_autocenter()
2745 params[7] = params[17] = (magnitude >> 1) & 255; in hidpp_ff_set_autocenter()
/linux/drivers/input/misc/
H A Dmax77693-haptic.c61 unsigned int magnitude; member
234 if (!haptic->magnitude) in max77693_haptic_play_work()
249 haptic->magnitude = effect->u.rumble.strong_magnitude; in max77693_haptic_play_effect()
250 if (!haptic->magnitude) in max77693_haptic_play_effect()
251 haptic->magnitude = effect->u.rumble.weak_magnitude; in max77693_haptic_play_effect()
259 period_mag_multi = (u64)pargs.period * haptic->magnitude; in max77693_haptic_play_effect()
H A Ddrv2667.c109 u32 magnitude; member
187 if (haptics->magnitude) { in drv2667_worker()
197 haptics->magnitude); in drv2667_worker()
234 haptics->magnitude = effect->u.rumble.strong_magnitude; in drv2667_haptics_play()
236 haptics->magnitude = effect->u.rumble.weak_magnitude; in drv2667_haptics_play()
238 haptics->magnitude = 0; in drv2667_haptics_play()
H A Duinput.c236 static void uinput_dev_set_autocenter(struct input_dev *dev, u16 magnitude) in uinput_dev_set_autocenter() argument
238 uinput_dev_event(dev, EV_FF, FF_AUTOCENTER, magnitude); in uinput_dev_set_autocenter()
/linux/drivers/input/
H A Dff-core.c52 int magnitude; in compat_effect() local
63 magnitude = effect->u.rumble.strong_magnitude / 3 + in compat_effect()
69 effect->u.periodic.magnitude = magnitude; in compat_effect()
H A Dff-memless.c293 i = apply_envelope(state, abs(new->u.periodic.magnitude), in ml_combine_effects()
/linux/drivers/net/wireless/ath/ath9k/
H A Dcommon-spectral.c145 u16 magnitude, tmp_mag, length; in ath_cmn_process_ht20_fft() local
158 magnitude = spectral_max_magnitude(mag_info->all_bins); in ath_cmn_process_ht20_fft()
159 fft_sample_20.max_magnitude = __cpu_to_be16(magnitude); in ath_cmn_process_ht20_fft()
176 magnitude >> max_exp, in ath_cmn_process_ht20_fft()
180 ((magnitude >> max_exp) & 0xf8)) { in ath_cmn_process_ht20_fft()
204 magnitude = tmp_mag << max_exp; in ath_cmn_process_ht20_fft()
205 fft_sample_20.max_magnitude = __cpu_to_be16(magnitude); in ath_cmn_process_ht20_fft()
212 if (fft_sample_20.data[i] == (magnitude >> max_exp)) in ath_cmn_process_ht20_fft()
217 if (fft_sample_20.data[i] > (magnitude >> max_exp)) { in ath_cmn_process_ht20_fft()
H A Dar9003_calib.c893 int magnitude, phase; in ar9003_hw_tx_iq_cal_outlier_detection() local
942 magnitude = coeff->mag_coeff[i][im][0]; in ar9003_hw_tx_iq_cal_outlier_detection()
946 (phase & 0x7f) | ((magnitude & 0x7f) << 7); in ar9003_hw_tx_iq_cal_outlier_detection()
/linux/drivers/input/joystick/iforce/
H A Diforce-ff.c49 __s16 magnitude, __s16 offset, u16 period, u16 phase) in make_period_modifier() argument
68 data[2] = HIFIX80(magnitude); in make_period_modifier()
263 || old->u.periodic.magnitude != new->u.periodic.magnitude in need_period_modifier()
348 effect->u.periodic.magnitude, effect->u.periodic.offset, in iforce_upload_periodic()
/linux/drivers/comedi/drivers/
H A Ddas08.c230 unsigned int magnitude = lsb | ((msb & 0x7f) << 8); in das08_ai_insn_read() local
237 data[n] = BIT(15) + magnitude; in das08_ai_insn_read()
239 data[n] = BIT(15) - magnitude; in das08_ai_insn_read()
/linux/drivers/hid/usbhid/
H A Dhid-pidff.c576 effect->u.periodic.magnitude); in pidff_set_periodic_report()
593 return effect->u.periodic.magnitude != old->u.periodic.magnitude || in pidff_needs_set_periodic()
993 static void pidff_autocenter(struct pidff_device *pidff, u16 magnitude) in pidff_autocenter() argument
998 if (!magnitude) { in pidff_autocenter()
1011 pidff_set(&pidff->set_effect[PID_GAIN], magnitude); in pidff_autocenter()
1025 static void pidff_set_autocenter(struct input_dev *dev, u16 magnitude) in pidff_set_autocenter() argument
1027 pidff_autocenter(dev->ff->private, magnitude); in pidff_set_autocenter()
/linux/tools/testing/selftests/bpf/progs/
H A Dbtf_dump_test_case_padding.c166 short magnitude; member
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-iio-health-afe440x30 stages. The values are expressed in 5-bit sign-magnitude.
H A Dsysfs-bus-iio-adc-mcp356432 conversions, which is on the order of magnitude of the noise
H A Dsysfs-bus-iio393 A computed peak value based on the sum squared magnitude of
1358 magnitude of the channel is compared to the threshold, not its
1368 The value to which the magnitude of the channel is compared. If
1379 magnitude of the channel is compared to the adaptive threshold.
1391 value is relative to a reference magnitude. The reference magnitude
1403 The value to which the reference magnitude of the channel is
1780 user (which is the norm or magnitude of the velocity vector).
/linux/arch/m68k/fpsp040/
H A Dx_ovfl.S21 | RZ Largest magnitude number, with the sign of the
/linux/Documentation/input/devices/
H A Diforce-protocol.rst125 08-09 Address of periodicity or magnitude parameters
355 - magnitude : 02
/linux/Documentation/input/
H A Dshape.svg34 …y="sans-serif" font-size="144px" stroke-width=".025in" xml:space="preserve">Effect magnitude</text>
/linux/arch/x86/math-emu/
H A DREADME116 (c) the magnitude of the exact result (before rounding) is less than 2^-16382.
117 (d) the magnitude of the final result (after rounding) is exactly 2^-16382.
118 (e) the magnitude of the exact result would be exactly 2^-16382 if the
/linux/Documentation/iio/
H A Dadxl345.rst174 the IIO perspective, is treated as a fall in magnitude across all axes. In
197 In DC-coupled mode, the current acceleration magnitude is directly compared to
/linux/Documentation/driver-api/soundwire/
H A Dbra.rst24 Mbits/s and reduce transfer times by several orders of magnitude, but

12