Searched refs:magnitude (Results 1 – 7 of 7) sorted by relevance
/linux-4.19.296/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 | 474 static void lg4ff_set_autocenter_default(struct input_dev *dev, u16 magnitude) in lg4ff_set_autocenter_default() argument 498 if (magnitude == 0) { in lg4ff_set_autocenter_default() 512 if (magnitude <= 0xaaaa) { in lg4ff_set_autocenter_default() 513 expand_a = 0x0c * magnitude; in lg4ff_set_autocenter_default() 514 expand_b = 0x80 * magnitude; in lg4ff_set_autocenter_default() 516 expand_a = (0x0c * 0xaaaa) + 0x06 * (magnitude - 0xaaaa); in lg4ff_set_autocenter_default() 517 expand_b = (0x80 * 0xaaaa) + 0xff * (magnitude - 0xaaaa); in lg4ff_set_autocenter_default() 554 static void lg4ff_set_autocenter_ffex(struct input_dev *dev, u16 magnitude) in lg4ff_set_autocenter_ffex() argument 561 magnitude = magnitude * 90 / 65535; in lg4ff_set_autocenter_ffex() 579 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
|
D | hid-logitech-hidpp.c | 1731 force = (effect->u.periodic.magnitude * fixp_sin16((effect->direction * 360) >> 16)) >> 15; in hidpp_ff_upload_effect() 1732 params[6] = effect->u.periodic.magnitude >> 8; in hidpp_ff_upload_effect() 1733 params[7] = effect->u.periodic.magnitude & 255; in hidpp_ff_upload_effect() 1748 effect->u.periodic.magnitude, effect->direction, in hidpp_ff_upload_effect() 1842 static void hidpp_ff_set_autocenter(struct input_dev *dev, u16 magnitude) in hidpp_ff_set_autocenter() argument 1847 dbg_hid("Setting autocenter to %d.\n", magnitude); in hidpp_ff_set_autocenter() 1854 params[8] = params[14] = magnitude >> 11; in hidpp_ff_set_autocenter() 1855 params[9] = params[15] = (magnitude >> 3) & 255; in hidpp_ff_set_autocenter() 1856 params[6] = params[16] = magnitude >> 9; in hidpp_ff_set_autocenter() 1857 params[7] = params[17] = (magnitude >> 1) & 255; in hidpp_ff_set_autocenter()
|
/linux-4.19.296/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()
|
/linux-4.19.296/include/uapi/linux/ |
D | input.h | 404 __s16 magnitude; member
|
/linux-4.19.296/include/linux/ |
D | input.h | 517 void (*set_autocenter)(struct input_dev *dev, u16 magnitude);
|