• Home
  • Raw
  • Download

Lines Matching refs:test_bit

59 #define test_bit(bit, array)    ((array)[(bit)/8] & (1<<((bit)%8)))  macro
358 if (device && device->hasValidFd() && test_bit(axis, device->absBitmask)) { in getAbsoluteAxisInfo()
386 return test_bit(axis, device->relBitmask); in hasRelativeAxis()
398 return test_bit(property, device->propBitmask); in hasInputProperty()
409 if (device && device->hasValidFd() && test_bit(scanCode, device->keyBitmask)) { in getScanCodeState()
413 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState()
433 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, keyState)) { in getKeyCodeState()
449 if (device && device->hasValidFd() && test_bit(sw, device->swBitmask)) { in getSwitchState()
453 return test_bit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getSwitchState()
467 if (device && device->hasValidFd() && test_bit(axis, device->absBitmask)) { in getAbsoluteAxisValue()
498 if (test_bit(scanCodes[sc], device->keyBitmask)) { in markSupportedKeyCodes()
576 if (test_bit(scanCode, device->keyBitmask)) { in hasScanCode()
588 if (test_bit(sc, device->ledBitmask)) { in hasLed()
1302 if (test_bit(BTN_MOUSE, device->keyBitmask) in openDeviceLocked()
1303 && test_bit(REL_X, device->relBitmask) in openDeviceLocked()
1304 && test_bit(REL_Y, device->relBitmask)) { in openDeviceLocked()
1319 if (test_bit(ABS_MT_POSITION_X, device->absBitmask) in openDeviceLocked()
1320 && test_bit(ABS_MT_POSITION_Y, device->absBitmask)) { in openDeviceLocked()
1324 if (test_bit(BTN_TOUCH, device->keyBitmask) || !haveGamepadButtons) { in openDeviceLocked()
1328 } else if (test_bit(BTN_TOUCH, device->keyBitmask) in openDeviceLocked()
1329 && test_bit(ABS_X, device->absBitmask) in openDeviceLocked()
1330 && test_bit(ABS_Y, device->absBitmask)) { in openDeviceLocked()
1333 } else if ((test_bit(ABS_PRESSURE, device->absBitmask) || in openDeviceLocked()
1334 test_bit(BTN_TOUCH, device->keyBitmask)) in openDeviceLocked()
1335 && !test_bit(ABS_X, device->absBitmask) in openDeviceLocked()
1336 && !test_bit(ABS_Y, device->absBitmask)) { in openDeviceLocked()
1350 if (test_bit(i, device->absBitmask) in openDeviceLocked()
1360 if (test_bit(i, device->swBitmask)) { in openDeviceLocked()
1367 if (test_bit(FF_RUMBLE, device->ffBitmask)) { in openDeviceLocked()
1697 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, device->keyBitmask)) { in hasKeycodeLocked()
1712 if(scanCode >= 0 && scanCode <= LED_MAX && test_bit(scanCode, device->ledBitmask)) { in mapLed()