/drivers/hid/ |
D | hid-lg4ff.c | 232 static void hid_lg4ff_set_autocenter_default(struct input_dev *dev, u16 magnitude) in hid_lg4ff_set_autocenter_default() argument 255 if (magnitude == 0) { in hid_lg4ff_set_autocenter_default() 268 if (magnitude <= 0xaaaa) { in hid_lg4ff_set_autocenter_default() 269 expand_a = 0x0c * magnitude; in hid_lg4ff_set_autocenter_default() 270 expand_b = 0x80 * magnitude; in hid_lg4ff_set_autocenter_default() 272 expand_a = (0x0c * 0xaaaa) + 0x06 * (magnitude - 0xaaaa); in hid_lg4ff_set_autocenter_default() 273 expand_b = (0x80 * 0xaaaa) + 0xff * (magnitude - 0xaaaa); in hid_lg4ff_set_autocenter_default() 309 static void hid_lg4ff_set_autocenter_ffex(struct input_dev *dev, u16 magnitude) in hid_lg4ff_set_autocenter_ffex() argument 315 magnitude = magnitude * 90 / 65535; in hid_lg4ff_set_autocenter_ffex() 319 value[2] = magnitude >> 14; in hid_lg4ff_set_autocenter_ffex() [all …]
|
D | hid-lgff.c | 111 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()
|
D | hid-lg3ff.c | 99 static void hid_lg3ff_set_autocenter(struct input_dev *dev, u16 magnitude) in hid_lg3ff_set_autocenter() argument
|
/drivers/input/misc/ |
D | max77693-haptic.c | 58 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()
|
D | drv2667.c | 115 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()
|
D | drv260x.c | 200 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()
|
D | uinput.c | 184 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()
|
/drivers/input/ |
D | ff-core.c | 67 int magnitude; in compat_effect() local 78 magnitude = effect->u.rumble.strong_magnitude / 3 + in compat_effect() 84 effect->u.periodic.magnitude = max(magnitude, 0x7fff); in compat_effect()
|
D | input-compat.h | 42 __s16 magnitude; member
|
D | ff-memless.c | 295 i = apply_envelope(state, abs(new->u.periodic.magnitude), in ml_combine_effects()
|
/drivers/input/joystick/iforce/ |
D | iforce-ff.c | 69 __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()
|
D | iforce-main.c | 112 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()
|
/drivers/hid/usbhid/ |
D | hid-pidff.c | 354 effect->u.periodic.magnitude); in pidff_set_periodic_report() 371 return effect->u.periodic.magnitude != old->u.periodic.magnitude || in pidff_needs_set_periodic() 725 static void pidff_autocenter(struct pidff_device *pidff, u16 magnitude) in pidff_autocenter() argument 730 if (!magnitude) { in pidff_autocenter() 743 pidff_set(&pidff->set_effect[PID_GAIN], magnitude); in pidff_autocenter() 754 static void pidff_set_autocenter(struct input_dev *dev, u16 magnitude) in pidff_set_autocenter() argument 758 pidff_autocenter(pidff, magnitude); in pidff_set_autocenter()
|
/drivers/net/wireless/ath/ath9k/ |
D | spectral.c | 177 u16 magnitude; in ath_process_fft() local 189 magnitude = spectral_max_magnitude(mag_info->all_bins); in ath_process_fft() 190 fft_sample_20.max_magnitude = __cpu_to_be16(magnitude); in ath_process_fft()
|
D | ar9003_calib.c | 893 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()
|
/drivers/usb/ |
D | Kconfig | 130 Note however that some operations are three orders of magnitude
|