• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/input/joystick/

Lines Matching refs:GB

210  * sw_get_bits() and GB() compose bits from the triplet buffer into a __u64.
216 #define GB(pos,num) sw_get_bits(buf, pos, num, sw->bits)
311 if (sw_check(GB(0,64)) || (hat = (GB(6,1) << 3) | GB(60,3)) > 8)
316 input_report_abs(dev, ABS_X, (GB( 3,3) << 7) | GB(16,7));
317 input_report_abs(dev, ABS_Y, (GB( 0,3) << 7) | GB(24,7));
318 input_report_abs(dev, ABS_RZ, (GB(35,2) << 7) | GB(40,7));
319 input_report_abs(dev, ABS_THROTTLE, (GB(32,3) << 7) | GB(48,7));
325 input_report_key(dev, sw_btn[SW_ID_3DP][j], !GB(j+8,1));
327 input_report_key(dev, BTN_BASE4, !GB(38,1));
328 input_report_key(dev, BTN_BASE5, !GB(37,1));
338 if (sw_parity(GB(i*15,15)))
341 input_report_abs(sw->dev[i], ABS_X, GB(i*15+3,1) - GB(i*15+2,1));
342 input_report_abs(sw->dev[i], ABS_Y, GB(i*15+0,1) - GB(i*15+1,1));
345 input_report_key(sw->dev[i], sw_btn[SW_ID_GP][j], !GB(i*15+j+4,1));
355 if (!sw_parity(GB(0,48)) || (hat = GB(42,4)) > 8)
359 input_report_abs(dev, ABS_X, GB( 9,10));
360 input_report_abs(dev, ABS_Y, GB(19,10));
361 input_report_abs(dev, ABS_RZ, GB(36, 6));
362 input_report_abs(dev, ABS_THROTTLE, GB(29, 7));
368 input_report_key(dev, sw_btn[SW_ID_PP][j], !GB(j,1));
376 if (!sw_parity(GB(0,43)) || (hat = GB(28,4)) > 8)
380 input_report_abs(dev, ABS_X, GB( 0,10));
381 input_report_abs(dev, ABS_Y, GB(16,10));
382 input_report_abs(dev, ABS_THROTTLE, GB(32, 6));
388 input_report_key(dev, sw_btn[SW_ID_FSP][j], !GB(j+10,1));
390 input_report_key(dev, BTN_TR, !GB(26,1));
391 input_report_key(dev, BTN_START, !GB(27,1));
392 input_report_key(dev, BTN_MODE, !GB(38,1));
393 input_report_key(dev, BTN_SELECT, !GB(39,1));
401 if (!sw_parity(GB(0,33)))
405 input_report_abs(dev, ABS_RX, GB( 0,10));
406 input_report_abs(dev, ABS_RUDDER, GB(10, 6));
407 input_report_abs(dev, ABS_THROTTLE, GB(16, 6));
410 input_report_key(dev, sw_btn[SW_ID_FFW][j], !GB(j+22,1));
442 if (i < 66 && GB(0,64) == GB(i*3-66,64)) /* 1 == 3 */
445 if (i < 66 && GB(0,64) == GB(66,64)) /* 1 == 2 */
448 if (i < 66 && GB(i*3-132,64) == GB(i*3-66,64)) { /* 2 == 3 */