Lines Matching refs:magnitude
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 * 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()
575 value[4] = magnitude; in lg4ff_set_autocenter_ffex()