Lines Matching defs:GB

193  * sw_get_bits() and GB() compose bits from the triplet buffer into a __u64.
199 #define GB(pos,num) sw_get_bits(buf, pos, num, sw->bits)
294 if (sw_check(GB(0,64)) || (hat = (GB(6,1) << 3) | GB(60,3)) > 8)
299 input_report_abs(dev, ABS_X, (GB( 3,3) << 7) | GB(16,7));
300 input_report_abs(dev, ABS_Y, (GB( 0,3) << 7) | GB(24,7));
301 input_report_abs(dev, ABS_RZ, (GB(35,2) << 7) | GB(40,7));
302 input_report_abs(dev, ABS_THROTTLE, (GB(32,3) << 7) | GB(48,7));
308 input_report_key(dev, sw_btn[SW_ID_3DP][j], !GB(j+8,1));
310 input_report_key(dev, BTN_BASE4, !GB(38,1));
311 input_report_key(dev, BTN_BASE5, !GB(37,1));
321 if (sw_parity(GB(i*15,15)))
324 input_report_abs(sw->dev[i], ABS_X, GB(i*15+3,1) - GB(i*15+2,1));
325 input_report_abs(sw->dev[i], ABS_Y, GB(i*15+0,1) - GB(i*15+1,1));
328 input_report_key(sw->dev[i], sw_btn[SW_ID_GP][j], !GB(i*15+j+4,1));
338 if (!sw_parity(GB(0,48)) || (hat = GB(42,4)) > 8)
342 input_report_abs(dev, ABS_X, GB( 9,10));
343 input_report_abs(dev, ABS_Y, GB(19,10));
344 input_report_abs(dev, ABS_RZ, GB(36, 6));
345 input_report_abs(dev, ABS_THROTTLE, GB(29, 7));
351 input_report_key(dev, sw_btn[SW_ID_PP][j], !GB(j,1));
359 if (!sw_parity(GB(0,43)) || (hat = GB(28,4)) > 8)
363 input_report_abs(dev, ABS_X, GB( 0,10));
364 input_report_abs(dev, ABS_Y, GB(16,10));
365 input_report_abs(dev, ABS_THROTTLE, GB(32, 6));
371 input_report_key(dev, sw_btn[SW_ID_FSP][j], !GB(j+10,1));
373 input_report_key(dev, BTN_TR, !GB(26,1));
374 input_report_key(dev, BTN_START, !GB(27,1));
375 input_report_key(dev, BTN_MODE, !GB(38,1));
376 input_report_key(dev, BTN_SELECT, !GB(39,1));
384 if (!sw_parity(GB(0,33)))
388 input_report_abs(dev, ABS_RX, GB( 0,10));
389 input_report_abs(dev, ABS_RUDDER, GB(10, 6));
390 input_report_abs(dev, ABS_THROTTLE, GB(16, 6));
393 input_report_key(dev, sw_btn[SW_ID_FFW][j], !GB(j+22,1));
425 if (i < 66 && GB(0,64) == GB(i*3-66,64)) /* 1 == 3 */
428 if (i < 66 && GB(0,64) == GB(66,64)) /* 1 == 2 */
431 if (i < 66 && GB(i*3-132,64) == GB(i*3-66,64)) { /* 2 == 3 */