Lines Matching refs:magnitude
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()
580 value[3] = magnitude >> 14; in lg4ff_set_autocenter_ffex()
581 value[4] = magnitude; in lg4ff_set_autocenter_ffex()