Lines Matching refs:amp
196 u16 amp; member
1855 static struct joycon_rumble_amp_data joycon_find_rumble_amp(u16 amp) in joycon_find_rumble_amp() argument
1861 if (amp > data[0].amp) { in joycon_find_rumble_amp()
1863 if (amp > data[i - 1].amp && amp <= data[i].amp) in joycon_find_rumble_amp()
1871 static void joycon_encode_rumble(u8 *data, u16 freq_low, u16 freq_high, u16 amp) in joycon_encode_rumble() argument
1879 amp_data = joycon_find_rumble_amp(amp); in joycon_encode_rumble()
1916 u16 amp; in joycon_set_rumble() local
1935 amp = amp_r * (u32)joycon_max_rumble_amp / 65535; in joycon_set_rumble()
1936 joycon_encode_rumble(data + 4, freq_r_low, freq_r_high, amp); in joycon_set_rumble()
1939 amp = amp_l * (u32)joycon_max_rumble_amp / 65535; in joycon_set_rumble()
1940 joycon_encode_rumble(data, freq_l_low, freq_l_high, amp); in joycon_set_rumble()