/linux-master/drivers/input/misc/ |
H A D | regulator-haptic.c | 33 unsigned int magnitude; member in struct:regulator_haptic 58 unsigned int magnitude) 64 volt_mag_multi = (u64)(haptic->max_volt - haptic->min_volt) * magnitude; 76 regulator_haptic_toggle(haptic, !!magnitude); 89 regulator_haptic_set_voltage(haptic, haptic->magnitude); 99 haptic->magnitude = effect->u.rumble.strong_magnitude; 100 if (!haptic->magnitude) 101 haptic->magnitude = effect->u.rumble.weak_magnitude; 227 unsigned int magnitude; local 233 magnitude 57 regulator_haptic_set_voltage(struct regulator_haptic *haptic, unsigned int magnitude) argument [all...] |
H A D | max77693-haptic.c | 59 unsigned int magnitude; member in struct:max77693_haptic 226 if (haptic->magnitude) 239 haptic->magnitude = effect->u.rumble.strong_magnitude; 240 if (!haptic->magnitude) 241 haptic->magnitude = effect->u.rumble.weak_magnitude; 244 * The magnitude comes from force-feedback interface. 245 * The formula to convert magnitude to pwm_duty as follows: 246 * - pwm_duty = (magnitude * pwm_period) / MAX_MAGNITUDE(0xFFFF) 249 period_mag_multi = (u64)pargs.period * haptic->magnitude;
|
H A D | drv2667.c | 99 * @magnitude: Magnitude of the vibration event 109 u32 magnitude; member in struct:drv2667_data 187 if (haptics->magnitude) { 197 haptics->magnitude); 234 haptics->magnitude = effect->u.rumble.strong_magnitude; 236 haptics->magnitude = effect->u.rumble.weak_magnitude; 238 haptics->magnitude = 0;
|
H A D | drv260x.c | 176 * @magnitude: Magnitude of the vibration event 189 u8 magnitude; member in struct:drv260x_data 226 DRV260X_RT_PB_IN, haptics->magnitude); 229 "Failed to set magnitude: %d\n", error); 240 /* Scale u16 magnitude into u8 register value */ 242 haptics->magnitude = effect->u.rumble.strong_magnitude >> 8; 244 haptics->magnitude = effect->u.rumble.weak_magnitude >> 8; 246 haptics->magnitude = 0;
|
H A D | uinput.c | 225 static void uinput_dev_set_autocenter(struct input_dev *dev, u16 magnitude) argument 227 uinput_dev_event(dev, EV_FF, FF_AUTOCENTER, magnitude);
|
/linux-master/drivers/hid/ |
H A D | hid-lgff.c | 99 static void hid_lgff_set_autocenter(struct input_dev *dev, u16 magnitude) argument 105 magnitude = (magnitude >> 12) & 0xf; 108 *value++ = magnitude; /* clockwise strength */ 109 *value++ = magnitude; /* counter-clockwise strength */
|
H A D | hid-lg4ff.c | 468 static void lg4ff_set_autocenter_default(struct input_dev *dev, u16 magnitude) argument 492 if (magnitude == 0) { 506 if (magnitude <= 0xaaaa) { 507 expand_a = 0x0c * magnitude; 508 expand_b = 0x80 * magnitude; 510 expand_a = (0x0c * 0xaaaa) + 0x06 * (magnitude - 0xaaaa); 511 expand_b = (0x80 * 0xaaaa) + 0xff * (magnitude - 0xaaaa); 548 static void lg4ff_set_autocenter_ffex(struct input_dev *dev, u16 magnitude) argument 555 magnitude = magnitude * 9 [all...] |
H A D | hid-lg3ff.c | 83 static void hid_lg3ff_set_autocenter(struct input_dev *dev, u16 magnitude) argument
|
H A D | hid-microsoft.c | 53 __u8 magnitude[MAGNITUDE_NUM]; member in struct:xb1s_ff_report 299 r->magnitude[MAGNITUDE_STRONG] = ms->strong; /* left actuator */ 300 r->magnitude[MAGNITUDE_WEAK] = ms->weak; /* right actuator */
|
H A D | hid-logitech-hidpp.c | 2626 force = (effect->u.periodic.magnitude * fixp_sin16((effect->direction * 360) >> 16)) >> 15; 2627 params[6] = effect->u.periodic.magnitude >> 8; 2628 params[7] = effect->u.periodic.magnitude & 255; 2643 effect->u.periodic.magnitude, effect->direction, 2737 static void hidpp_ff_set_autocenter(struct input_dev *dev, u16 magnitude) argument 2742 dbg_hid("Setting autocenter to %d.\n", magnitude); 2749 params[8] = params[14] = magnitude >> 11; 2750 params[9] = params[15] = (magnitude >> 3) & 255; 2751 params[6] = params[16] = magnitude >> 9; 2752 params[7] = params[17] = (magnitude >> [all...] |
/linux-master/drivers/input/ |
H A D | input-compat.h | 28 __s16 magnitude; member in struct:ff_periodic_effect_compat
|
H A D | ff-core.c | 50 int magnitude; local 58 * calculate magnitude of sine wave as average of rumble's 59 * 2/3 of strong magnitude and 1/3 of weak magnitude 61 magnitude = effect->u.rumble.strong_magnitude / 3 + 67 effect->u.periodic.magnitude = magnitude;
|
H A D | ff-memless.c | 292 i = apply_envelope(state, abs(new->u.periodic.magnitude),
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | btf_dump_test_case_padding.c | 166 short magnitude; member in struct:ff_periodic_effect
|
/linux-master/drivers/net/wireless/ath/ath9k/ |
H A D | common-spectral.c | 144 u16 magnitude, tmp_mag, length; local 157 magnitude = spectral_max_magnitude(mag_info->all_bins); 158 fft_sample_20.max_magnitude = __cpu_to_be16(magnitude); 175 magnitude >> max_exp, 179 ((magnitude >> max_exp) & 0xf8)) { 190 /* Check if the maximum magnitude is indeed maximum, 203 magnitude = tmp_mag << max_exp; 204 fft_sample_20.max_magnitude = __cpu_to_be16(magnitude); 211 if (fft_sample_20.data[i] == (magnitude >> max_exp)) 216 if (fft_sample_20.data[i] > (magnitude >> max_ex [all...] |
H A D | ar9003_calib.c | 737 * find magnitude by approximation 869 * finding mean magnitude/phase if possible, otherwise 893 int magnitude, phase; local 929 /* Detect magnitude outlier */ 942 magnitude = coeff->mag_coeff[i][im][0]; 946 (phase & 0x7f) | ((magnitude & 0x7f) << 7);
|
/linux-master/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); 45 * Upload the component of an effect dealing with the period, phase and magnitude 50 __s16 magnitude, __s16 offset, u16 period, u16 phase) 70 data[2] = HIFIX80(magnitude); 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 352 effect->u.periodic.magnitude, effect->u.periodic.offset, 48 make_period_modifier(struct iforce* iforce, struct resource* mod_chunk, int no_alloc, __s16 magnitude, __s16 offset, u16 period, u16 phase) argument
|
H A D | iforce-main.c | 89 static void iforce_set_autocenter(struct input_dev *dev, u16 magnitude) argument 95 data[1] = magnitude >> 9;
|
/linux-master/drivers/iio/magnetometer/ |
H A D | tmag5273.c | 159 s16 *y, s16 *z, u16 *angle, u16 *magnitude) 204 *magnitude = val; 288 u16 angle, magnitude; local 298 ret = tmag5273_get_measure(data, &t, &x, &y, &z, &angle, &magnitude); 323 *val = magnitude; 158 tmag5273_get_measure(struct tmag5273_data *data, s16 *t, s16 *x, s16 *y, s16 *z, u16 *angle, u16 *magnitude) argument
|
/linux-master/drivers/comedi/drivers/ |
H A D | das08.c | 221 * "JR" 16-bit boards are sign-magnitude. 227 * encoded as sign-magnitude. Assume the original 230 unsigned int magnitude = lsb | ((msb & 0x7f) << 8); local 237 data[n] = BIT(15) + magnitude; 239 data[n] = BIT(15) - magnitude;
|
/linux-master/arch/m68k/fpsp040/ |
H A D | x_ovfl.S | 21 | RZ Largest magnitude number, with the sign of the
|
H A D | setox.S | 34 | argument X whose magnitude is less than 16380 log2, which
|
/linux-master/drivers/hid/usbhid/ |
H A D | hid-pidff.c | 342 effect->u.periodic.magnitude); 359 return effect->u.periodic.magnitude != old->u.periodic.magnitude || 719 static void pidff_autocenter(struct pidff_device *pidff, u16 magnitude) argument 724 if (!magnitude) { 737 pidff_set(&pidff->set_effect[PID_GAIN], magnitude); 748 static void pidff_set_autocenter(struct input_dev *dev, u16 magnitude) argument 752 pidff_autocenter(pidff, magnitude);
|
/linux-master/include/uapi/linux/ |
H A D | input.h | 391 * @magnitude: peak value 408 __s16 magnitude; member in struct:ff_periodic_effect 420 * @strong_magnitude: magnitude of the heavy motor 421 * @weak_magnitude: magnitude of the light one 424 * represents the magnitude of the vibration generated by the heavy one.
|
/linux-master/include/linux/ |
H A D | input.h | 553 void (*set_autocenter)(struct input_dev *dev, u16 magnitude);
|