Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/input/misc/
Dregulator-haptic.c36 unsigned int magnitude; member
61 unsigned int magnitude) in regulator_haptic_set_voltage() argument
67 volt_mag_multi = (u64)(haptic->max_volt - haptic->min_volt) * magnitude; in regulator_haptic_set_voltage()
79 regulator_haptic_toggle(haptic, !!magnitude); in regulator_haptic_set_voltage()
92 regulator_haptic_set_voltage(haptic, haptic->magnitude); in regulator_haptic_work()
102 haptic->magnitude = effect->u.rumble.strong_magnitude; in regulator_haptic_play_effect()
103 if (!haptic->magnitude) in regulator_haptic_play_effect()
104 haptic->magnitude = effect->u.rumble.weak_magnitude; in regulator_haptic_play_effect()
230 unsigned int magnitude; in regulator_haptic_resume() local
236 magnitude = ACCESS_ONCE(haptic->magnitude); in regulator_haptic_resume()
[all …]
Dmax77843-haptic.c49 unsigned int magnitude; member
167 if (haptic->magnitude) { in max77843_haptic_play_work()
196 haptic->magnitude = effect->u.rumble.strong_magnitude; in max77843_haptic_play_effect()
197 if (!haptic->magnitude) in max77843_haptic_play_effect()
198 haptic->magnitude = effect->u.rumble.weak_magnitude; in max77843_haptic_play_effect()
200 period_mag_multi = (u64)haptic->pwm_dev->period * haptic->magnitude; in max77843_haptic_play_effect()
329 unsigned int magnitude; in max77843_haptic_resume() local
335 magnitude = ACCESS_ONCE(haptic->magnitude); in max77843_haptic_resume()
336 if (magnitude) in max77843_haptic_resume()
Dmax77693-haptic.c58 unsigned int magnitude; member
187 if (haptic->magnitude) in max77693_haptic_play_work()
199 haptic->magnitude = effect->u.rumble.strong_magnitude; in max77693_haptic_play_effect()
200 if (!haptic->magnitude) in max77693_haptic_play_effect()
201 haptic->magnitude = effect->u.rumble.weak_magnitude; in max77693_haptic_play_effect()
208 period_mag_multi = (u64)haptic->pwm_dev->period * haptic->magnitude; in max77693_haptic_play_effect()
Ddrv2667.c115 u32 magnitude; member
193 if (haptics->magnitude) { in drv2667_worker()
203 haptics->magnitude); in drv2667_worker()
240 haptics->magnitude = effect->u.rumble.strong_magnitude; in drv2667_haptics_play()
242 haptics->magnitude = effect->u.rumble.weak_magnitude; in drv2667_haptics_play()
244 haptics->magnitude = 0; in drv2667_haptics_play()
Ddrv260x.c200 u32 magnitude; member
275 DRV260X_RT_PB_IN, haptics->magnitude); in drv260x_worker()
290 haptics->magnitude = effect->u.rumble.strong_magnitude; in drv260x_haptics_play()
292 haptics->magnitude = effect->u.rumble.weak_magnitude; in drv260x_haptics_play()
294 haptics->magnitude = 0; in drv260x_haptics_play()
Duinput.c184 static void uinput_dev_set_autocenter(struct input_dev *dev, u16 magnitude) in uinput_dev_set_autocenter() argument
186 uinput_dev_event(dev, EV_FF, FF_AUTOCENTER, magnitude); in uinput_dev_set_autocenter()
/linux-4.1.27/drivers/hid/
Dhid-lgff.c111 static void hid_lgff_set_autocenter(struct input_dev *dev, u16 magnitude) in hid_lgff_set_autocenter() argument
117 magnitude = (magnitude >> 12) & 0xf; in hid_lgff_set_autocenter()
120 *value++ = magnitude; /* clockwise strength */ in hid_lgff_set_autocenter()
121 *value++ = magnitude; /* counter-clockwise strength */ in hid_lgff_set_autocenter()
Dhid-lg4ff.c342 static void hid_lg4ff_set_autocenter_default(struct input_dev *dev, u16 magnitude) in hid_lg4ff_set_autocenter_default() argument
365 if (magnitude == 0) { in hid_lg4ff_set_autocenter_default()
378 if (magnitude <= 0xaaaa) { in hid_lg4ff_set_autocenter_default()
379 expand_a = 0x0c * magnitude; in hid_lg4ff_set_autocenter_default()
380 expand_b = 0x80 * magnitude; in hid_lg4ff_set_autocenter_default()
382 expand_a = (0x0c * 0xaaaa) + 0x06 * (magnitude - 0xaaaa); in hid_lg4ff_set_autocenter_default()
383 expand_b = (0x80 * 0xaaaa) + 0xff * (magnitude - 0xaaaa); in hid_lg4ff_set_autocenter_default()
419 static void hid_lg4ff_set_autocenter_ffex(struct input_dev *dev, u16 magnitude) in hid_lg4ff_set_autocenter_ffex() argument
425 magnitude = magnitude * 90 / 65535; in hid_lg4ff_set_autocenter_ffex()
429 value[2] = magnitude >> 14; in hid_lg4ff_set_autocenter_ffex()
[all …]
Dhid-lg3ff.c99 static void hid_lg3ff_set_autocenter(struct input_dev *dev, u16 magnitude) in hid_lg3ff_set_autocenter() argument
/linux-4.1.27/drivers/input/
Dff-core.c65 int magnitude; in compat_effect() local
76 magnitude = effect->u.rumble.strong_magnitude / 3 + in compat_effect()
82 effect->u.periodic.magnitude = max(magnitude, 0x7fff); in compat_effect()
Dinput-compat.h42 __s16 magnitude; member
Dff-memless.c307 i = apply_envelope(state, abs(new->u.periodic.magnitude), in ml_combine_effects()
/linux-4.1.27/Documentation/input/
Dshape.fig61 4 0 0 50 0 0 12 0.0000 4 180 1305 10200 3000 Effect magnitude\001
Diforce-protocol.txt86 08-09 Address of periodicity or magnitude parameters
231 - magnitude : 02
/linux-4.1.27/drivers/input/joystick/iforce/
Diforce-ff.c69 __s16 magnitude, __s16 offset, u16 period, u16 phase) in make_period_modifier() argument
89 data[2] = HIFIX80(magnitude); in make_period_modifier()
286 || old->u.periodic.magnitude != new->u.periodic.magnitude in need_period_modifier()
371 effect->u.periodic.magnitude, effect->u.periodic.offset, in iforce_upload_periodic()
Diforce-main.c112 static void iforce_set_autocenter(struct input_dev *dev, u16 magnitude) in iforce_set_autocenter() argument
118 data[1] = magnitude >> 9; in iforce_set_autocenter()
/linux-4.1.27/drivers/hid/usbhid/
Dhid-pidff.c354 effect->u.periodic.magnitude); in pidff_set_periodic_report()
371 return effect->u.periodic.magnitude != old->u.periodic.magnitude || in pidff_needs_set_periodic()
731 static void pidff_autocenter(struct pidff_device *pidff, u16 magnitude) in pidff_autocenter() argument
736 if (!magnitude) { in pidff_autocenter()
749 pidff_set(&pidff->set_effect[PID_GAIN], magnitude); in pidff_autocenter()
760 static void pidff_set_autocenter(struct input_dev *dev, u16 magnitude) in pidff_set_autocenter() argument
764 pidff_autocenter(pidff, magnitude); in pidff_set_autocenter()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dcommon-spectral.c178 u16 magnitude; in ath_cmn_process_fft() local
190 magnitude = spectral_max_magnitude(mag_info->all_bins); in ath_cmn_process_fft()
191 fft_sample_20.max_magnitude = __cpu_to_be16(magnitude); in ath_cmn_process_fft()
Dar9003_calib.c894 int magnitude, phase; in ar9003_hw_tx_iq_cal_outlier_detection() local
943 magnitude = coeff->mag_coeff[i][im][0]; in ar9003_hw_tx_iq_cal_outlier_detection()
947 (phase & 0x7f) | ((magnitude & 0x7f) << 7); in ar9003_hw_tx_iq_cal_outlier_detection()
/linux-4.1.27/arch/m68k/fpsp040/
Dx_ovfl.S21 | RZ Largest magnitude number, with the sign of the
Dsetox.S34 | argument X whose magnitude is less than 16380 log2, which
/linux-4.1.27/Documentation/hwmon/
Dmax19742 4 RNG Full-scale voltage magnitude at the input
/linux-4.1.27/include/linux/
Dinput.h508 void (*set_autocenter)(struct input_dev *dev, u16 magnitude);
/linux-4.1.27/drivers/usb/
DKconfig132 Note however that some operations are three orders of magnitude
/linux-4.1.27/arch/x86/math-emu/
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-4.1.27/include/uapi/linux/
Dinput.h1104 __s16 magnitude; member
/linux-4.1.27/Documentation/ABI/testing/
Dsysfs-bus-iio204 A computed peak value based on the sum squared magnitude of
935 magnitude of the channel is compared to the threshold, not its
945 The value to which the magnitude of the channel is compared. If
1264 user (which is the norm or magnitude of the velocity vector).
/linux-4.1.27/Documentation/filesystems/
Dxfs-delayed-logging-design.txt148 an order of magnitude.
/linux-4.1.27/Documentation/RCU/
DRTFP.txt895 described System V IPC use of RCU, including order-of-magnitude
/linux-4.1.27/arch/m68k/ifpsp060/src/
Dfplsp.S8443 fabs.x %fp0 # test magnitude