Lines Matching refs:ext
820 static void wiimod_nunchuk_in_ext(struct wiimote_data *wdata, const __u8 *ext) in wiimod_nunchuk_in_ext() argument
854 bx = ext[0]; in wiimod_nunchuk_in_ext()
855 by = ext[1]; in wiimod_nunchuk_in_ext()
859 x = ext[2] << 2; in wiimod_nunchuk_in_ext()
860 y = ext[3] << 2; in wiimod_nunchuk_in_ext()
861 z = ext[4] << 2; in wiimod_nunchuk_in_ext()
864 x |= (ext[5] >> 3) & 0x02; in wiimod_nunchuk_in_ext()
865 y |= (ext[5] >> 4) & 0x02; in wiimod_nunchuk_in_ext()
867 z |= (ext[5] >> 5) & 0x06; in wiimod_nunchuk_in_ext()
869 x |= (ext[5] >> 2) & 0x03; in wiimod_nunchuk_in_ext()
870 y |= (ext[5] >> 4) & 0x03; in wiimod_nunchuk_in_ext()
871 z |= (ext[5] >> 6) & 0x03; in wiimod_nunchuk_in_ext()
888 !(ext[5] & 0x04)); in wiimod_nunchuk_in_ext()
891 !(ext[5] & 0x08)); in wiimod_nunchuk_in_ext()
895 !(ext[5] & 0x01)); in wiimod_nunchuk_in_ext()
898 !(ext[5] & 0x02)); in wiimod_nunchuk_in_ext()
1044 static void wiimod_classic_in_ext(struct wiimote_data *wdata, const __u8 *ext) in wiimod_classic_in_ext() argument
1092 lx = ext[0] & 0x3e; in wiimod_classic_in_ext()
1093 ly = ext[1] & 0x3e; in wiimod_classic_in_ext()
1095 lx = ext[0] & 0x3f; in wiimod_classic_in_ext()
1096 ly = ext[1] & 0x3f; in wiimod_classic_in_ext()
1099 rx = (ext[0] >> 3) & 0x18; in wiimod_classic_in_ext()
1100 rx |= (ext[1] >> 5) & 0x06; in wiimod_classic_in_ext()
1101 rx |= (ext[2] >> 7) & 0x01; in wiimod_classic_in_ext()
1102 ry = ext[2] & 0x1f; in wiimod_classic_in_ext()
1104 rt = ext[3] & 0x1f; in wiimod_classic_in_ext()
1105 lt = (ext[2] >> 2) & 0x18; in wiimod_classic_in_ext()
1106 lt |= (ext[3] >> 5) & 0x07; in wiimod_classic_in_ext()
1122 !(ext[4] & 0x80)); in wiimod_classic_in_ext()
1125 !(ext[4] & 0x40)); in wiimod_classic_in_ext()
1128 !(ext[4] & 0x20)); in wiimod_classic_in_ext()
1131 !(ext[4] & 0x10)); in wiimod_classic_in_ext()
1134 !(ext[4] & 0x08)); in wiimod_classic_in_ext()
1137 !(ext[4] & 0x04)); in wiimod_classic_in_ext()
1140 !(ext[4] & 0x02)); in wiimod_classic_in_ext()
1143 !(ext[5] & 0x80)); in wiimod_classic_in_ext()
1146 !(ext[5] & 0x40)); in wiimod_classic_in_ext()
1149 !(ext[5] & 0x20)); in wiimod_classic_in_ext()
1152 !(ext[5] & 0x10)); in wiimod_classic_in_ext()
1155 !(ext[5] & 0x08)); in wiimod_classic_in_ext()
1158 !(ext[5] & 0x04)); in wiimod_classic_in_ext()
1163 !(ext[1] & 0x01)); in wiimod_classic_in_ext()
1166 !(ext[0] & 0x01)); in wiimod_classic_in_ext()
1170 !(ext[5] & 0x02)); in wiimod_classic_in_ext()
1173 !(ext[5] & 0x01)); in wiimod_classic_in_ext()
1298 const __u8 *ext) in wiimod_bboard_in_ext() argument
1328 val[0] = ext[0]; in wiimod_bboard_in_ext()
1330 val[0] |= ext[1]; in wiimod_bboard_in_ext()
1332 val[1] = ext[2]; in wiimod_bboard_in_ext()
1334 val[1] |= ext[3]; in wiimod_bboard_in_ext()
1336 val[2] = ext[4]; in wiimod_bboard_in_ext()
1338 val[2] |= ext[5]; in wiimod_bboard_in_ext()
1340 val[3] = ext[6]; in wiimod_bboard_in_ext()
1342 val[3] |= ext[7]; in wiimod_bboard_in_ext()
1604 static void wiimod_pro_in_ext(struct wiimote_data *wdata, const __u8 *ext) in wiimod_pro_in_ext() argument
1649 lx = (ext[0] & 0xff) | ((ext[1] & 0x0f) << 8); in wiimod_pro_in_ext()
1650 rx = (ext[2] & 0xff) | ((ext[3] & 0x0f) << 8); in wiimod_pro_in_ext()
1651 ly = (ext[4] & 0xff) | ((ext[5] & 0x0f) << 8); in wiimod_pro_in_ext()
1652 ry = (ext[6] & 0xff) | ((ext[7] & 0x0f) << 8); in wiimod_pro_in_ext()
1690 !(ext[8] & 0x80)); in wiimod_pro_in_ext()
1693 !(ext[8] & 0x40)); in wiimod_pro_in_ext()
1696 !(ext[8] & 0x20)); in wiimod_pro_in_ext()
1699 !(ext[8] & 0x10)); in wiimod_pro_in_ext()
1702 !(ext[8] & 0x08)); in wiimod_pro_in_ext()
1705 !(ext[8] & 0x04)); in wiimod_pro_in_ext()
1708 !(ext[8] & 0x02)); in wiimod_pro_in_ext()
1712 !(ext[9] & 0x80)); in wiimod_pro_in_ext()
1715 !(ext[9] & 0x40)); in wiimod_pro_in_ext()
1718 !(ext[9] & 0x20)); in wiimod_pro_in_ext()
1721 !(ext[9] & 0x10)); in wiimod_pro_in_ext()
1724 !(ext[9] & 0x08)); in wiimod_pro_in_ext()
1727 !(ext[9] & 0x04)); in wiimod_pro_in_ext()
1730 !(ext[9] & 0x02)); in wiimod_pro_in_ext()
1733 !(ext[9] & 0x01)); in wiimod_pro_in_ext()
1737 !(ext[10] & 0x02)); in wiimod_pro_in_ext()
1740 !(ext[10] & 0x01)); in wiimod_pro_in_ext()
1975 static void wiimod_drums_in_ext(struct wiimote_data *wdata, const __u8 *ext) in wiimod_drums_in_ext() argument
2011 pressure = 7 - (ext[3] >> 5); in wiimod_drums_in_ext()
2012 which = (ext[2] >> 1) & 0x1f; in wiimod_drums_in_ext()
2013 none = !!(ext[2] & 0x40); in wiimod_drums_in_ext()
2014 hhp = !(ext[2] & 0x80); in wiimod_drums_in_ext()
2015 sx = ext[0] & 0x3f; in wiimod_drums_in_ext()
2016 sy = ext[1] & 0x3f; in wiimod_drums_in_ext()
2017 o = !(ext[5] & 0x80); in wiimod_drums_in_ext()
2018 r = !(ext[5] & 0x40); in wiimod_drums_in_ext()
2019 y = !(ext[5] & 0x20); in wiimod_drums_in_ext()
2020 g = !(ext[5] & 0x10); in wiimod_drums_in_ext()
2021 b = !(ext[5] & 0x08); in wiimod_drums_in_ext()
2022 bass = !(ext[5] & 0x04); in wiimod_drums_in_ext()
2023 bm = !(ext[4] & 0x10); in wiimod_drums_in_ext()
2024 bp = !(ext[4] & 0x04); in wiimod_drums_in_ext()
2204 static void wiimod_guitar_in_ext(struct wiimote_data *wdata, const __u8 *ext) in wiimod_guitar_in_ext() argument
2239 sx = ext[0] & 0x3f; in wiimod_guitar_in_ext()
2240 sy = ext[1] & 0x3f; in wiimod_guitar_in_ext()
2241 tb = ext[2] & 0x1f; in wiimod_guitar_in_ext()
2242 wb = ext[3] & 0x1f; in wiimod_guitar_in_ext()
2243 bd = !(ext[4] & 0x40); in wiimod_guitar_in_ext()
2244 bm = !(ext[4] & 0x10); in wiimod_guitar_in_ext()
2245 bp = !(ext[4] & 0x04); in wiimod_guitar_in_ext()
2246 bo = !(ext[5] & 0x80); in wiimod_guitar_in_ext()
2247 br = !(ext[5] & 0x40); in wiimod_guitar_in_ext()
2248 bb = !(ext[5] & 0x20); in wiimod_guitar_in_ext()
2249 bg = !(ext[5] & 0x10); in wiimod_guitar_in_ext()
2250 by = !(ext[5] & 0x08); in wiimod_guitar_in_ext()
2251 bu = !(ext[5] & 0x01); in wiimod_guitar_in_ext()
2254 bu = !(ext[0] & 0x01); in wiimod_guitar_in_ext()
2469 static void wiimod_mp_in_mp(struct wiimote_data *wdata, const __u8 *ext) in wiimod_mp_in_mp() argument
2497 x = ext[0]; in wiimod_mp_in_mp()
2498 y = ext[1]; in wiimod_mp_in_mp()
2499 z = ext[2]; in wiimod_mp_in_mp()
2501 x |= (((__u16)ext[3]) << 6) & 0xff00; in wiimod_mp_in_mp()
2502 y |= (((__u16)ext[4]) << 6) & 0xff00; in wiimod_mp_in_mp()
2503 z |= (((__u16)ext[5]) << 6) & 0xff00; in wiimod_mp_in_mp()
2509 if (!(ext[3] & 0x02)) in wiimod_mp_in_mp()
2513 if (!(ext[4] & 0x02)) in wiimod_mp_in_mp()
2517 if (!(ext[3] & 0x01)) in wiimod_mp_in_mp()