Lines Matching refs:magnitude
232 static void hid_lg4ff_set_autocenter_default(struct input_dev *dev, u16 magnitude) in hid_lg4ff_set_autocenter_default() argument
255 if (magnitude == 0) { in hid_lg4ff_set_autocenter_default()
268 if (magnitude <= 0xaaaa) { in hid_lg4ff_set_autocenter_default()
269 expand_a = 0x0c * magnitude; in hid_lg4ff_set_autocenter_default()
270 expand_b = 0x80 * magnitude; in hid_lg4ff_set_autocenter_default()
272 expand_a = (0x0c * 0xaaaa) + 0x06 * (magnitude - 0xaaaa); in hid_lg4ff_set_autocenter_default()
273 expand_b = (0x80 * 0xaaaa) + 0xff * (magnitude - 0xaaaa); in hid_lg4ff_set_autocenter_default()
309 static void hid_lg4ff_set_autocenter_ffex(struct input_dev *dev, u16 magnitude) in hid_lg4ff_set_autocenter_ffex() argument
315 magnitude = magnitude * 90 / 65535; in hid_lg4ff_set_autocenter_ffex()
319 value[2] = magnitude >> 14; in hid_lg4ff_set_autocenter_ffex()
320 value[3] = magnitude >> 14; in hid_lg4ff_set_autocenter_ffex()
321 value[4] = magnitude; in hid_lg4ff_set_autocenter_ffex()