Lines Matching refs:amp
189 u16 amp; member
1463 static struct joycon_rumble_amp_data joycon_find_rumble_amp(u16 amp) in joycon_find_rumble_amp() argument
1469 if (amp > data[0].amp) { in joycon_find_rumble_amp()
1471 if (amp > data[i - 1].amp && amp <= data[i].amp) in joycon_find_rumble_amp()
1479 static void joycon_encode_rumble(u8 *data, u16 freq_low, u16 freq_high, u16 amp) in joycon_encode_rumble() argument
1487 amp_data = joycon_find_rumble_amp(amp); in joycon_encode_rumble()
1524 u16 amp; in joycon_set_rumble() local
1542 amp = amp_r * (u32)joycon_max_rumble_amp / 65535; in joycon_set_rumble()
1543 joycon_encode_rumble(data + 4, freq_r_low, freq_r_high, amp); in joycon_set_rumble()
1546 amp = amp_l * (u32)joycon_max_rumble_amp / 65535; in joycon_set_rumble()
1547 joycon_encode_rumble(data, freq_l_low, freq_l_high, amp); in joycon_set_rumble()