Lines Matching refs:ext

827 static void wiimod_nunchuk_in_ext(struct wiimote_data *wdata, const __u8 *ext)  in wiimod_nunchuk_in_ext()  argument
861 bx = ext[0]; in wiimod_nunchuk_in_ext()
862 by = ext[1]; in wiimod_nunchuk_in_ext()
866 x = ext[2] << 2; in wiimod_nunchuk_in_ext()
867 y = ext[3] << 2; in wiimod_nunchuk_in_ext()
868 z = ext[4] << 2; in wiimod_nunchuk_in_ext()
871 x |= (ext[5] >> 3) & 0x02; in wiimod_nunchuk_in_ext()
872 y |= (ext[5] >> 4) & 0x02; in wiimod_nunchuk_in_ext()
874 z |= (ext[5] >> 5) & 0x06; in wiimod_nunchuk_in_ext()
876 x |= (ext[5] >> 2) & 0x03; in wiimod_nunchuk_in_ext()
877 y |= (ext[5] >> 4) & 0x03; in wiimod_nunchuk_in_ext()
878 z |= (ext[5] >> 6) & 0x03; in wiimod_nunchuk_in_ext()
895 !(ext[5] & 0x04)); in wiimod_nunchuk_in_ext()
898 !(ext[5] & 0x08)); in wiimod_nunchuk_in_ext()
902 !(ext[5] & 0x01)); in wiimod_nunchuk_in_ext()
905 !(ext[5] & 0x02)); in wiimod_nunchuk_in_ext()
1051 static void wiimod_classic_in_ext(struct wiimote_data *wdata, const __u8 *ext) in wiimod_classic_in_ext() argument
1099 lx = ext[0] & 0x3e; in wiimod_classic_in_ext()
1100 ly = ext[1] & 0x3e; in wiimod_classic_in_ext()
1102 lx = ext[0] & 0x3f; in wiimod_classic_in_ext()
1103 ly = ext[1] & 0x3f; in wiimod_classic_in_ext()
1106 rx = (ext[0] >> 3) & 0x18; in wiimod_classic_in_ext()
1107 rx |= (ext[1] >> 5) & 0x06; in wiimod_classic_in_ext()
1108 rx |= (ext[2] >> 7) & 0x01; in wiimod_classic_in_ext()
1109 ry = ext[2] & 0x1f; in wiimod_classic_in_ext()
1111 rt = ext[3] & 0x1f; in wiimod_classic_in_ext()
1112 lt = (ext[2] >> 2) & 0x18; in wiimod_classic_in_ext()
1113 lt |= (ext[3] >> 5) & 0x07; in wiimod_classic_in_ext()
1129 !(ext[4] & 0x80)); in wiimod_classic_in_ext()
1132 !(ext[4] & 0x40)); in wiimod_classic_in_ext()
1135 !(ext[4] & 0x20)); in wiimod_classic_in_ext()
1138 !(ext[4] & 0x10)); in wiimod_classic_in_ext()
1141 !(ext[4] & 0x08)); in wiimod_classic_in_ext()
1144 !(ext[4] & 0x04)); in wiimod_classic_in_ext()
1147 !(ext[4] & 0x02)); in wiimod_classic_in_ext()
1150 !(ext[5] & 0x80)); in wiimod_classic_in_ext()
1153 !(ext[5] & 0x40)); in wiimod_classic_in_ext()
1156 !(ext[5] & 0x20)); in wiimod_classic_in_ext()
1159 !(ext[5] & 0x10)); in wiimod_classic_in_ext()
1162 !(ext[5] & 0x08)); in wiimod_classic_in_ext()
1165 !(ext[5] & 0x04)); in wiimod_classic_in_ext()
1170 !(ext[1] & 0x01)); in wiimod_classic_in_ext()
1173 !(ext[0] & 0x01)); in wiimod_classic_in_ext()
1177 !(ext[5] & 0x02)); in wiimod_classic_in_ext()
1180 !(ext[5] & 0x01)); in wiimod_classic_in_ext()
1305 const __u8 *ext) in wiimod_bboard_in_ext() argument
1335 val[0] = ext[0]; in wiimod_bboard_in_ext()
1337 val[0] |= ext[1]; in wiimod_bboard_in_ext()
1339 val[1] = ext[2]; in wiimod_bboard_in_ext()
1341 val[1] |= ext[3]; in wiimod_bboard_in_ext()
1343 val[2] = ext[4]; in wiimod_bboard_in_ext()
1345 val[2] |= ext[5]; in wiimod_bboard_in_ext()
1347 val[3] = ext[6]; in wiimod_bboard_in_ext()
1349 val[3] |= ext[7]; in wiimod_bboard_in_ext()
1611 static void wiimod_pro_in_ext(struct wiimote_data *wdata, const __u8 *ext) in wiimod_pro_in_ext() argument
1656 lx = (ext[0] & 0xff) | ((ext[1] & 0x0f) << 8); in wiimod_pro_in_ext()
1657 rx = (ext[2] & 0xff) | ((ext[3] & 0x0f) << 8); in wiimod_pro_in_ext()
1658 ly = (ext[4] & 0xff) | ((ext[5] & 0x0f) << 8); in wiimod_pro_in_ext()
1659 ry = (ext[6] & 0xff) | ((ext[7] & 0x0f) << 8); in wiimod_pro_in_ext()
1697 !(ext[8] & 0x80)); in wiimod_pro_in_ext()
1700 !(ext[8] & 0x40)); in wiimod_pro_in_ext()
1703 !(ext[8] & 0x20)); in wiimod_pro_in_ext()
1706 !(ext[8] & 0x10)); in wiimod_pro_in_ext()
1709 !(ext[8] & 0x08)); in wiimod_pro_in_ext()
1712 !(ext[8] & 0x04)); in wiimod_pro_in_ext()
1715 !(ext[8] & 0x02)); in wiimod_pro_in_ext()
1719 !(ext[9] & 0x80)); in wiimod_pro_in_ext()
1722 !(ext[9] & 0x40)); in wiimod_pro_in_ext()
1725 !(ext[9] & 0x20)); in wiimod_pro_in_ext()
1728 !(ext[9] & 0x10)); in wiimod_pro_in_ext()
1731 !(ext[9] & 0x08)); in wiimod_pro_in_ext()
1734 !(ext[9] & 0x04)); in wiimod_pro_in_ext()
1737 !(ext[9] & 0x02)); in wiimod_pro_in_ext()
1740 !(ext[9] & 0x01)); in wiimod_pro_in_ext()
1744 !(ext[10] & 0x02)); in wiimod_pro_in_ext()
1747 !(ext[10] & 0x01)); in wiimod_pro_in_ext()
2038 static void wiimod_mp_in_mp(struct wiimote_data *wdata, const __u8 *ext) in wiimod_mp_in_mp() argument
2064 x = ext[0]; in wiimod_mp_in_mp()
2065 y = ext[1]; in wiimod_mp_in_mp()
2066 z = ext[2]; in wiimod_mp_in_mp()
2068 x |= (((__u16)ext[3]) << 6) & 0xff00; in wiimod_mp_in_mp()
2069 y |= (((__u16)ext[4]) << 6) & 0xff00; in wiimod_mp_in_mp()
2070 z |= (((__u16)ext[5]) << 6) & 0xff00; in wiimod_mp_in_mp()
2076 if (!(ext[3] & 0x02)) in wiimod_mp_in_mp()
2080 if (!(ext[4] & 0x02)) in wiimod_mp_in_mp()
2084 if (!(ext[3] & 0x01)) in wiimod_mp_in_mp()