Lines Matching refs:ext

820 static void wiimod_nunchuk_in_ext(struct wiimote_data *wdata, const __u8 *ext)
854 bx = ext[0];
855 by = ext[1];
859 x = ext[2] << 2;
860 y = ext[3] << 2;
861 z = ext[4] << 2;
864 x |= (ext[5] >> 3) & 0x02;
865 y |= (ext[5] >> 4) & 0x02;
867 z |= (ext[5] >> 5) & 0x06;
869 x |= (ext[5] >> 2) & 0x03;
870 y |= (ext[5] >> 4) & 0x03;
871 z |= (ext[5] >> 6) & 0x03;
888 !(ext[5] & 0x04));
891 !(ext[5] & 0x08));
895 !(ext[5] & 0x01));
898 !(ext[5] & 0x02));
1044 static void wiimod_classic_in_ext(struct wiimote_data *wdata, const __u8 *ext)
1095 lx = digital_to_analog[1 - !(ext[4] & 0x80)
1096 + !(ext[1] & 0x01)];
1097 ly = digital_to_analog[1 - !(ext[4] & 0x40)
1098 + !(ext[0] & 0x01)];
1100 lx = (ext[0] & 0x3e) - 0x20;
1101 ly = (ext[1] & 0x3e) - 0x20;
1105 lx = digital_to_analog[1 - !(ext[4] & 0x80)
1106 + !(ext[5] & 0x02)];
1107 ly = digital_to_analog[1 - !(ext[4] & 0x40)
1108 + !(ext[5] & 0x01)];
1110 lx = (ext[0] & 0x3f) - 0x20;
1111 ly = (ext[1] & 0x3f) - 0x20;
1115 rx = (ext[0] >> 3) & 0x18;
1116 rx |= (ext[1] >> 5) & 0x06;
1117 rx |= (ext[2] >> 7) & 0x01;
1118 ry = ext[2] & 0x1f;
1120 rt = ext[3] & 0x1f;
1121 lt = (ext[2] >> 2) & 0x18;
1122 lt |= (ext[3] >> 5) & 0x07;
1138 !(ext[4] & 0x20));
1141 !(ext[4] & 0x10));
1144 !(ext[4] & 0x08));
1147 !(ext[4] & 0x04));
1150 !(ext[4] & 0x02));
1153 !(ext[5] & 0x80));
1156 !(ext[5] & 0x40));
1159 !(ext[5] & 0x20));
1162 !(ext[5] & 0x10));
1165 !(ext[5] & 0x08));
1168 !(ext[5] & 0x04));
1173 !(ext[4] & 0x80));
1176 !(ext[4] & 0x40));
1181 !(ext[1] & 0x01));
1184 !(ext[0] & 0x01));
1188 !(ext[5] & 0x02));
1191 !(ext[5] & 0x01));
1317 const __u8 *ext)
1347 val[0] = ext[0];
1349 val[0] |= ext[1];
1351 val[1] = ext[2];
1353 val[1] |= ext[3];
1355 val[2] = ext[4];
1357 val[2] |= ext[5];
1359 val[3] = ext[6];
1361 val[3] |= ext[7];
1623 static void wiimod_pro_in_ext(struct wiimote_data *wdata, const __u8 *ext)
1668 lx = (ext[0] & 0xff) | ((ext[1] & 0x0f) << 8);
1669 rx = (ext[2] & 0xff) | ((ext[3] & 0x0f) << 8);
1670 ly = (ext[4] & 0xff) | ((ext[5] & 0x0f) << 8);
1671 ry = (ext[6] & 0xff) | ((ext[7] & 0x0f) << 8);
1709 !(ext[8] & 0x80));
1712 !(ext[8] & 0x40));
1715 !(ext[8] & 0x20));
1718 !(ext[8] & 0x10));
1721 !(ext[8] & 0x08));
1724 !(ext[8] & 0x04));
1727 !(ext[8] & 0x02));
1731 !(ext[9] & 0x80));
1734 !(ext[9] & 0x40));
1737 !(ext[9] & 0x20));
1740 !(ext[9] & 0x10));
1743 !(ext[9] & 0x08));
1746 !(ext[9] & 0x04));
1749 !(ext[9] & 0x02));
1752 !(ext[9] & 0x01));
1756 !(ext[10] & 0x02));
1759 !(ext[10] & 0x01));
1994 static void wiimod_drums_in_ext(struct wiimote_data *wdata, const __u8 *ext)
2030 pressure = 7 - (ext[3] >> 5);
2031 which = (ext[2] >> 1) & 0x1f;
2032 none = !!(ext[2] & 0x40);
2033 hhp = !(ext[2] & 0x80);
2034 sx = ext[0] & 0x3f;
2035 sy = ext[1] & 0x3f;
2036 o = !(ext[5] & 0x80);
2037 r = !(ext[5] & 0x40);
2038 y = !(ext[5] & 0x20);
2039 g = !(ext[5] & 0x10);
2040 b = !(ext[5] & 0x08);
2041 bass = !(ext[5] & 0x04);
2042 bm = !(ext[4] & 0x10);
2043 bp = !(ext[4] & 0x04);
2223 static void wiimod_guitar_in_ext(struct wiimote_data *wdata, const __u8 *ext)
2258 sx = ext[0] & 0x3f;
2259 sy = ext[1] & 0x3f;
2260 tb = ext[2] & 0x1f;
2261 wb = ext[3] & 0x1f;
2262 bd = !(ext[4] & 0x40);
2263 bm = !(ext[4] & 0x10);
2264 bp = !(ext[4] & 0x04);
2265 bo = !(ext[5] & 0x80);
2266 br = !(ext[5] & 0x40);
2267 bb = !(ext[5] & 0x20);
2268 bg = !(ext[5] & 0x10);
2269 by = !(ext[5] & 0x08);
2270 bu = !(ext[5] & 0x01);
2273 bu = !(ext[0] & 0x01);
2488 static void wiimod_mp_in_mp(struct wiimote_data *wdata, const __u8 *ext)
2516 x = ext[0];
2517 y = ext[1];
2518 z = ext[2];
2520 x |= (((__u16)ext[3]) << 6) & 0xff00;
2521 y |= (((__u16)ext[4]) << 6) & 0xff00;
2522 z |= (((__u16)ext[5]) << 6) & 0xff00;
2528 if (!(ext[3] & 0x02))
2532 if (!(ext[4] & 0x02))
2536 if (!(ext[3] & 0x01))