Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/input/misc/
Dregulator-haptic.c33 unsigned int magnitude; member
58 unsigned int magnitude) in regulator_haptic_set_voltage() argument
64 volt_mag_multi = (u64)(haptic->max_volt - haptic->min_volt) * magnitude; in regulator_haptic_set_voltage()
76 regulator_haptic_toggle(haptic, !!magnitude); in regulator_haptic_set_voltage()
89 regulator_haptic_set_voltage(haptic, haptic->magnitude); in regulator_haptic_work()
99 haptic->magnitude = effect->u.rumble.strong_magnitude; in regulator_haptic_play_effect()
100 if (!haptic->magnitude) in regulator_haptic_play_effect()
101 haptic->magnitude = effect->u.rumble.weak_magnitude; in regulator_haptic_play_effect()
227 unsigned int magnitude; in regulator_haptic_resume() local
233 magnitude = READ_ONCE(haptic->magnitude); in regulator_haptic_resume()
[all …]
Dmsm-vibrator.c40 u16 magnitude; member
84 d_reg_val = 127 - ((126 * vibrator->magnitude) / 0xffff); in msm_vibrator_start()
121 if (vibrator->magnitude) in msm_vibrator_worker()
135 vibrator->magnitude = effect->u.rumble.strong_magnitude; in msm_vibrator_play_effect()
137 vibrator->magnitude = effect->u.rumble.weak_magnitude; in msm_vibrator_play_effect()
Dmax77693-haptic.c59 unsigned int magnitude; member
226 if (haptic->magnitude) in max77693_haptic_play_work()
239 haptic->magnitude = effect->u.rumble.strong_magnitude; in max77693_haptic_play_effect()
240 if (!haptic->magnitude) in max77693_haptic_play_effect()
241 haptic->magnitude = effect->u.rumble.weak_magnitude; in max77693_haptic_play_effect()
249 period_mag_multi = (u64)pargs.period * haptic->magnitude; in max77693_haptic_play_effect()
Ddrv2667.c107 u32 magnitude; member
185 if (haptics->magnitude) { in drv2667_worker()
195 haptics->magnitude); in drv2667_worker()
232 haptics->magnitude = effect->u.rumble.strong_magnitude; in drv2667_haptics_play()
234 haptics->magnitude = effect->u.rumble.weak_magnitude; in drv2667_haptics_play()
236 haptics->magnitude = 0; in drv2667_haptics_play()
Ddrv260x.c189 u32 magnitude; member
264 DRV260X_RT_PB_IN, haptics->magnitude); in drv260x_worker()
279 haptics->magnitude = effect->u.rumble.strong_magnitude; in drv260x_haptics_play()
281 haptics->magnitude = effect->u.rumble.weak_magnitude; in drv260x_haptics_play()
283 haptics->magnitude = 0; in drv260x_haptics_play()
Duinput.c220 static void uinput_dev_set_autocenter(struct input_dev *dev, u16 magnitude) in uinput_dev_set_autocenter() argument
222 uinput_dev_event(dev, EV_FF, FF_AUTOCENTER, magnitude); in uinput_dev_set_autocenter()
/Linux-v5.4/drivers/hid/
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()
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 …]
Dhid-microsoft.c53 __u8 magnitude[MAGNITUDE_NUM]; member
302 r->magnitude[MAGNITUDE_STRONG] = ms->strong; /* left actuator */ in ms_ff_worker()
303 r->magnitude[MAGNITUDE_WEAK] = ms->weak; /* right actuator */ in ms_ff_worker()
Dhid-lg3ff.c87 static void hid_lg3ff_set_autocenter(struct input_dev *dev, u16 magnitude) in hid_lg3ff_set_autocenter() argument
Dhid-logitech-hidpp.c1899 force = (effect->u.periodic.magnitude * fixp_sin16((effect->direction * 360) >> 16)) >> 15; in hidpp_ff_upload_effect()
1900 params[6] = effect->u.periodic.magnitude >> 8; in hidpp_ff_upload_effect()
1901 params[7] = effect->u.periodic.magnitude & 255; in hidpp_ff_upload_effect()
1916 effect->u.periodic.magnitude, effect->direction, in hidpp_ff_upload_effect()
2010 static void hidpp_ff_set_autocenter(struct input_dev *dev, u16 magnitude) in hidpp_ff_set_autocenter() argument
2015 dbg_hid("Setting autocenter to %d.\n", magnitude); in hidpp_ff_set_autocenter()
2022 params[8] = params[14] = magnitude >> 11; in hidpp_ff_set_autocenter()
2023 params[9] = params[15] = (magnitude >> 3) & 255; in hidpp_ff_set_autocenter()
2024 params[6] = params[16] = magnitude >> 9; in hidpp_ff_set_autocenter()
2025 params[7] = params[17] = (magnitude >> 1) & 255; in hidpp_ff_set_autocenter()
/Linux-v5.4/drivers/input/
Dff-core.c53 int magnitude; in compat_effect() local
64 magnitude = effect->u.rumble.strong_magnitude / 3 + in compat_effect()
70 effect->u.periodic.magnitude = max(magnitude, 0x7fff); in compat_effect()
Dinput-compat.h28 __s16 magnitude; member
/Linux-v5.4/drivers/net/wireless/ath/ath9k/
Dcommon-spectral.c144 u16 magnitude, tmp_mag, length; in ath_cmn_process_ht20_fft() local
157 magnitude = spectral_max_magnitude(mag_info->all_bins); in ath_cmn_process_ht20_fft()
158 fft_sample_20.max_magnitude = __cpu_to_be16(magnitude); in ath_cmn_process_ht20_fft()
175 magnitude >> max_exp, in ath_cmn_process_ht20_fft()
179 ((magnitude >> max_exp) & 0xf8)) { in ath_cmn_process_ht20_fft()
203 magnitude = tmp_mag << max_exp; in ath_cmn_process_ht20_fft()
204 fft_sample_20.max_magnitude = __cpu_to_be16(magnitude); in ath_cmn_process_ht20_fft()
211 if (fft_sample_20.data[i] == (magnitude >> max_exp)) in ath_cmn_process_ht20_fft()
216 if (fft_sample_20.data[i] > (magnitude >> max_exp)) { in ath_cmn_process_ht20_fft()
/Linux-v5.4/drivers/input/joystick/iforce/
Diforce-ff.c50 __s16 magnitude, __s16 offset, u16 period, u16 phase) in make_period_modifier() argument
70 data[2] = HIFIX80(magnitude); in make_period_modifier()
267 || old->u.periodic.magnitude != new->u.periodic.magnitude in need_period_modifier()
352 effect->u.periodic.magnitude, effect->u.periodic.offset, in iforce_upload_periodic()
Diforce-main.c88 static void iforce_set_autocenter(struct input_dev *dev, u16 magnitude) in iforce_set_autocenter() argument
94 data[1] = magnitude >> 9; in iforce_set_autocenter()
/Linux-v5.4/drivers/staging/comedi/drivers/
Ddas08.c232 unsigned int magnitude = lsb | ((msb & 0x7f) << 8); in das08_ai_insn_read() local
239 data[n] = BIT(15) + magnitude; in das08_ai_insn_read()
241 data[n] = BIT(15) - magnitude; in das08_ai_insn_read()
/Linux-v5.4/drivers/hid/usbhid/
Dhid-pidff.c342 effect->u.periodic.magnitude); in pidff_set_periodic_report()
359 return effect->u.periodic.magnitude != old->u.periodic.magnitude || in pidff_needs_set_periodic()
719 static void pidff_autocenter(struct pidff_device *pidff, u16 magnitude) in pidff_autocenter() argument
724 if (!magnitude) { in pidff_autocenter()
737 pidff_set(&pidff->set_effect[PID_GAIN], magnitude); in pidff_autocenter()
748 static void pidff_set_autocenter(struct input_dev *dev, u16 magnitude) in pidff_set_autocenter() argument
752 pidff_autocenter(pidff, magnitude); in pidff_set_autocenter()
/Linux-v5.4/Documentation/ABI/testing/
Dsysfs-bus-iio-health-afe440x24 stages. The values are expressed in 5-bit sign-magnitude.
/Linux-v5.4/arch/m68k/fpsp040/
Dx_ovfl.S21 | RZ Largest magnitude number, with the sign of the
/Linux-v5.4/Documentation/hwmon/
Dmax197.rst49 4 RNG Full-scale voltage magnitude at the input
/Linux-v5.4/include/uapi/linux/
Dinput.h403 __s16 magnitude; member
/Linux-v5.4/Documentation/input/devices/
Diforce-protocol.rst125 08-09 Address of periodicity or magnitude parameters
355 - magnitude : 02
/Linux-v5.4/Documentation/input/
Dshape.svg34 …y="sans-serif" font-size="144px" stroke-width=".025in" xml:space="preserve">Effect magnitude</text>
/Linux-v5.4/include/linux/
Dinput.h540 void (*set_autocenter)(struct input_dev *dev, u16 magnitude);

12