Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/input/misc/
H A Dregulator-haptic.c33 unsigned int magnitude; member
58 unsigned int magnitude) in regulator_haptic_set_voltage() argument
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()
234 if (magnitude) in regulator_haptic_resume()
[all …]
H A 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()
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 Ddrv260x.c189 u8 magnitude; member
226 DRV260X_RT_PB_IN, haptics->magnitude); in drv260x_worker()
242 haptics->magnitude = effect->u.rumble.strong_magnitude >> 8; in drv260x_haptics_play()
244 haptics->magnitude = effect->u.rumble.weak_magnitude >> 8; in drv260x_haptics_play()
246 haptics->magnitude = 0; in drv260x_haptics_play()
/openbmc/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.c492 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()
574 value[3] = 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.c87 static void hid_lg3ff_set_autocenter(struct input_dev *dev, u16 magnitude) in hid_lg3ff_set_autocenter() argument
/openbmc/linux/Documentation/devicetree/bindings/sound/
H A Dadi,max98396.yaml95 adi,dmon-magnitude-enable:
97 Enables the "data monitor magnitude" feature. Once the data monitor is
103 adi,dmon-magnitude-threshold-bits:
105 Sets the threshold for the "data monitor magnitude" feature, in bits.
/openbmc/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 Dinput-compat.h28 __s16 magnitude; member
/openbmc/linux/drivers/net/wireless/ath/ath9k/
H A 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()
/openbmc/linux/drivers/iio/magnetometer/
H A Dtmag5273.c159 s16 *y, s16 *z, u16 *angle, u16 *magnitude) in tmag5273_get_measure() argument
204 *magnitude = val; in tmag5273_get_measure()
288 u16 angle, magnitude; in tmag5273_read_raw() local
298 ret = tmag5273_get_measure(data, &t, &x, &y, &z, &angle, &magnitude); in tmag5273_read_raw()
323 *val = magnitude; in tmag5273_read_raw()
/openbmc/linux/drivers/input/joystick/iforce/
H A 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()
H A Diforce-main.c89 static void iforce_set_autocenter(struct input_dev *dev, u16 magnitude) in iforce_set_autocenter() argument
95 data[1] = magnitude >> 9; in iforce_set_autocenter()
/openbmc/linux/drivers/comedi/drivers/
H A Ddas08.c231 unsigned int magnitude = lsb | ((msb & 0x7f) << 8); in das08_ai_insn_read() local
238 data[n] = BIT(15) + magnitude; in das08_ai_insn_read()
240 data[n] = BIT(15) - magnitude; in das08_ai_insn_read()
/openbmc/linux/Documentation/devicetree/bindings/phy/
H A Drealtek,usb2phy.yaml104 Control the magnitude of High speed Dp/Dm output swing (mV).
105 For a different board or port, the original magnitude maybe not meet
117 If the magnitude of High speed Dp/Dm output swing still not meet the
/openbmc/linux/drivers/hid/usbhid/
H A 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()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dbtf_dump_test_case_padding.c166 short magnitude; member
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-bus-iio-health-afe440x30 stages. The values are expressed in 5-bit sign-magnitude.
/openbmc/linux/arch/m68k/fpsp040/
H A Dx_ovfl.S21 | RZ Largest magnitude number, with the sign of the
/openbmc/linux/Documentation/hwmon/
H A Dmax197.rst49 4 RNG Full-scale voltage magnitude at the input
/openbmc/qemu/include/standard-headers/linux/
H A Dinput.h405 int16_t magnitude; member
/openbmc/linux/include/uapi/linux/
H A Dinput.h408 __s16 magnitude; member
/openbmc/linux/Documentation/input/devices/
H A Diforce-protocol.rst125 08-09 Address of periodicity or magnitude parameters
355 - magnitude : 02

12