Lines Matching refs:test_bit
58 #define test_bit(bit, array) (array[bit/8] & (1<<(bit%8))) macro
282 if (device && !device->isVirtual() && test_bit(axis, device->absBitmask)) { in getAbsoluteAxisInfo()
310 return test_bit(axis, device->relBitmask); in hasRelativeAxis()
322 return test_bit(property, device->propBitmask); in hasInputProperty()
333 if (device && !device->isVirtual() && test_bit(scanCode, device->keyBitmask)) { in getScanCodeState()
337 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState()
357 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, keyState)) { in getKeyCodeState()
373 if (device && !device->isVirtual() && test_bit(sw, device->swBitmask)) { in getSwitchState()
377 return test_bit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getSwitchState()
391 if (device && !device->isVirtual() && test_bit(axis, device->absBitmask)) { in getAbsoluteAxisValue()
422 if (test_bit(scanCodes[sc], device->keyBitmask)) { in markSupportedKeyCodes()
487 if (test_bit(scanCode, device->keyBitmask)) { in hasScanCode()
499 if (test_bit(sc, device->ledBitmask)) { in hasLed()
1171 if (test_bit(BTN_MOUSE, device->keyBitmask) in openDeviceLocked()
1172 && test_bit(REL_X, device->relBitmask) in openDeviceLocked()
1173 && test_bit(REL_Y, device->relBitmask)) { in openDeviceLocked()
1179 if (test_bit(ABS_MT_POSITION_X, device->absBitmask) in openDeviceLocked()
1180 && test_bit(ABS_MT_POSITION_Y, device->absBitmask)) { in openDeviceLocked()
1184 if (test_bit(BTN_TOUCH, device->keyBitmask) || !haveGamepadButtons) { in openDeviceLocked()
1188 } else if (test_bit(BTN_TOUCH, device->keyBitmask) in openDeviceLocked()
1189 && test_bit(ABS_X, device->absBitmask) in openDeviceLocked()
1190 && test_bit(ABS_Y, device->absBitmask)) { in openDeviceLocked()
1200 if (test_bit(i, device->absBitmask) in openDeviceLocked()
1210 if (test_bit(i, device->swBitmask)) { in openDeviceLocked()
1217 if (test_bit(FF_RUMBLE, device->ffBitmask)) { in openDeviceLocked()
1455 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, device->keyBitmask)) { in hasKeycodeLocked()
1470 if(scanCode >= 0 && scanCode <= LED_MAX && test_bit(scanCode, device->ledBitmask)) { in mapLed()