/drivers/input/misc/ |
D | regulator-haptic.c | 36 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 …]
|
D | max77693-haptic.c | 63 unsigned int magnitude; member 227 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() 248 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/hid/ |
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-lg4ff.c | 423 static void lg4ff_set_autocenter_default(struct input_dev *dev, u16 magnitude) in lg4ff_set_autocenter_default() argument 449 if (magnitude == 0) { in lg4ff_set_autocenter_default() 463 if (magnitude <= 0xaaaa) { in lg4ff_set_autocenter_default() 464 expand_a = 0x0c * magnitude; in lg4ff_set_autocenter_default() 465 expand_b = 0x80 * magnitude; in lg4ff_set_autocenter_default() 467 expand_a = (0x0c * 0xaaaa) + 0x06 * (magnitude - 0xaaaa); in lg4ff_set_autocenter_default() 468 expand_b = (0x80 * 0xaaaa) + 0xff * (magnitude - 0xaaaa); in lg4ff_set_autocenter_default() 505 static void lg4ff_set_autocenter_ffex(struct input_dev *dev, u16 magnitude) in lg4ff_set_autocenter_ffex() argument 512 magnitude = magnitude * 90 / 65535; in lg4ff_set_autocenter_ffex() 530 value[2] = magnitude >> 14; in lg4ff_set_autocenter_ffex() [all …]
|
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/ |
D | ff-core.c | 65 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()
|
D | input-compat.h | 42 __s16 magnitude; member
|
D | ff-memless.c | 307 i = apply_envelope(state, abs(new->u.periodic.magnitude), in ml_combine_effects()
|
/drivers/net/wireless/ath/ath9k/ |
D | common-spectral.c | 156 u16 magnitude, tmp_mag, length; in ath_cmn_process_ht20_fft() local 169 magnitude = spectral_max_magnitude(mag_info->all_bins); in ath_cmn_process_ht20_fft() 170 fft_sample_20.max_magnitude = __cpu_to_be16(magnitude); in ath_cmn_process_ht20_fft() 188 magnitude >> max_exp, in ath_cmn_process_ht20_fft() 191 if (fft_sample_20.data[max_index] != (magnitude >> max_exp)) { in ath_cmn_process_ht20_fft() 215 magnitude = tmp_mag << max_exp; in ath_cmn_process_ht20_fft() 216 fft_sample_20.max_magnitude = __cpu_to_be16(magnitude); in ath_cmn_process_ht20_fft() 223 if (fft_sample_20.data[i] == (magnitude >> max_exp)) in ath_cmn_process_ht20_fft() 228 if (fft_sample_20.data[i] > (magnitude >> max_exp)) { in ath_cmn_process_ht20_fft()
|
D | ar9003_calib.c | 894 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()
|
/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() 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()
|
/drivers/staging/comedi/drivers/ |
D | das08.c | 241 unsigned int magnitude = lsb | ((msb & 0x7f) << 8); in das08_ai_insn_read() local 248 data[n] = (1 << 15) + magnitude; in das08_ai_insn_read() 250 data[n] = (1 << 15) - magnitude; in das08_ai_insn_read()
|
/drivers/usb/ |
D | Kconfig | 132 Note however that some operations are three orders of magnitude
|