/kernel/linux/linux-5.10/drivers/input/misc/ |
H A D | regulator-haptic.c | 33 unsigned int magnitude; member 58 unsigned int magnitude) in regulator_haptic_set_voltage() 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 in regulator_haptic_resume() 57 regulator_haptic_set_voltage(struct regulator_haptic *haptic, unsigned int magnitude) regulator_haptic_set_voltage() argument [all...] |
H A D | max77693-haptic.c | 59 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() 244 * The magnitude comes from force-feedback interface. in max77693_haptic_play_effect() 245 * The formula to convert magnitude to pwm_duty as follows: in max77693_haptic_play_effect() 246 * - pwm_duty = (magnitude * pwm_period) / MAX_MAGNITUDE(0xFFFF) in max77693_haptic_play_effect() 249 period_mag_multi = (u64)pargs.period * haptic->magnitude; in max77693_haptic_play_effect()
|
H A D | drv2667.c | 98 * @magnitude - Magnitude of the vibration event 107 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()
|
H A D | drv260x.c | 176 * @magnitude - Magnitude of the vibration event 189 u32 magnitude; member 264 DRV260X_RT_PB_IN, haptics->magnitude); in drv260x_worker() 267 "Failed to set magnitude: %d\n", error); 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()
|
/kernel/linux/linux-6.6/drivers/input/misc/ |
H A D | regulator-haptic.c | 33 unsigned int magnitude; member 58 unsigned int magnitude) in regulator_haptic_set_voltage() 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 in regulator_haptic_resume() 57 regulator_haptic_set_voltage(struct regulator_haptic *haptic, unsigned int magnitude) regulator_haptic_set_voltage() argument [all...] |
H A D | max77693-haptic.c | 59 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() 244 * The magnitude comes from force-feedback interface. in max77693_haptic_play_effect() 245 * The formula to convert magnitude to pwm_duty as follows: in max77693_haptic_play_effect() 246 * - pwm_duty = (magnitude * pwm_period) / MAX_MAGNITUDE(0xFFFF) in max77693_haptic_play_effect() 249 period_mag_multi = (u64)pargs.period * haptic->magnitude; in max77693_haptic_play_effect()
|
H A D | drv2667.c | 99 * @magnitude: Magnitude of the vibration event 109 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 D | drv260x.c | 176 * @magnitude: Magnitude of the vibration event 189 u8 magnitude; member 226 DRV260X_RT_PB_IN, haptics->magnitude); in drv260x_worker() 229 "Failed to set magnitude: %d\n", error); in drv260x_worker() 240 /* Scale u16 magnitude into u8 register value */ in drv260x_haptics_play() 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()
|
/kernel/linux/linux-5.10/drivers/hid/ |
H A D | hid-lgff.c | 99 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 D | hid-lg4ff.c | 468 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 * 9 in lg4ff_set_autocenter_ffex() [all...] |
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hid-lgff.c | 99 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 D | hid-lg4ff.c | 468 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 * 9 in lg4ff_set_autocenter_ffex() [all...] |
/kernel/linux/linux-5.10/drivers/input/ |
H A D | ff-core.c | 53 int magnitude; in compat_effect() local 61 * calculate magnitude of sine wave as average of rumble's in compat_effect() 62 * 2/3 of strong magnitude and 1/3 of weak magnitude in compat_effect() 64 magnitude = effect->u.rumble.strong_magnitude / 3 + in compat_effect() 70 effect->u.periodic.magnitude = max(magnitude, 0x7fff); in compat_effect()
|
H A D | input-compat.h | 28 __s16 magnitude; member
|
/kernel/linux/linux-6.6/drivers/input/ |
H A D | ff-core.c | 50 int magnitude; in compat_effect() local 58 * calculate magnitude of sine wave as average of rumble's in compat_effect() 59 * 2/3 of strong magnitude and 1/3 of weak magnitude in compat_effect() 61 magnitude = effect->u.rumble.strong_magnitude / 3 + in compat_effect() 67 effect->u.periodic.magnitude = magnitude; in compat_effect()
|
H A D | input-compat.h | 28 __s16 magnitude; member
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
H A D | common-spectral.c | 144 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() 190 /* Check if the maximum magnitude is indeed maximum, 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_ex in ath_cmn_process_ht20_fft() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/ |
H A D | common-spectral.c | 144 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() 190 /* Check if the maximum magnitude is indeed maximum, 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_ex in ath_cmn_process_ht20_fft() [all...] |
/kernel/linux/linux-6.6/drivers/iio/magnetometer/ |
H A D | tmag5273.c | 159 s16 *y, s16 *z, u16 *angle, u16 *magnitude) in tmag5273_get_measure() 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() 158 tmag5273_get_measure(struct tmag5273_data *data, s16 *t, s16 *x, s16 *y, s16 *z, u16 *angle, u16 *magnitude) tmag5273_get_measure() argument
|
/kernel/linux/linux-5.10/drivers/input/joystick/iforce/ |
H A D | iforce-ff.c | 12 * Set the magnitude of a constant force effect 40 iforce_dump_packet(iforce, "magnitude", FF_CMD_MAGNITUDE, data); in make_magnitude_modifier() 45 * Upload the component of an effect dealing with the period, phase and magnitude 50 __s16 magnitude, __s16 offset, u16 period, u16 phase) in make_period_modifier() 70 data[2] = HIFIX80(magnitude); in make_period_modifier() 206 * Analyse the changes in an effect, and tell if we need to send a magnitude 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() 48 make_period_modifier(struct iforce* iforce, struct resource* mod_chunk, int no_alloc, __s16 magnitude, __s16 offset, u16 period, u16 phase) make_period_modifier() argument
|
/kernel/linux/linux-6.6/drivers/input/joystick/iforce/ |
H A D | iforce-ff.c | 12 * Set the magnitude of a constant force effect 40 iforce_dump_packet(iforce, "magnitude", FF_CMD_MAGNITUDE, data); in make_magnitude_modifier() 45 * Upload the component of an effect dealing with the period, phase and magnitude 50 __s16 magnitude, __s16 offset, u16 period, u16 phase) in make_period_modifier() 70 data[2] = HIFIX80(magnitude); in make_period_modifier() 206 * Analyse the changes in an effect, and tell if we need to send a magnitude 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() 48 make_period_modifier(struct iforce* iforce, struct resource* mod_chunk, int no_alloc, __s16 magnitude, __s16 offset, u16 period, u16 phase) make_period_modifier() argument
|
/kernel/linux/linux-5.10/drivers/hid/usbhid/ |
H A D | hid-pidff.c | 342 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()
|
/kernel/linux/linux-6.6/drivers/hid/usbhid/ |
H A D | hid-pidff.c | 342 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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | btf_dump_test_case_padding.c | 166 short magnitude; member
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | btf_dump_test_case_padding.c | 166 short magnitude; member
|