Lines Matching defs:test_bit
45 #define test_bit(bit, array) ((array[LONG(bit)] >> OFF(bit)) & 1)
159 has_keys = test_bit(EV_KEY, bitmask_ev);
160 has_abs_coordinates = test_bit(ABS_X, bitmask_abs) && test_bit(ABS_Y, bitmask_abs);
161 has_3d_coordinates = has_abs_coordinates && test_bit(ABS_Z, bitmask_abs);
162 is_accelerometer = test_bit(INPUT_PROP_ACCELEROMETER, bitmask_props);
172 is_pointing_stick = test_bit(INPUT_PROP_POINTING_STICK, bitmask_props);
173 stylus_or_pen = test_bit(BTN_STYLUS, bitmask_key) || test_bit(BTN_TOOL_PEN, bitmask_key);
174 finger_but_no_pen = test_bit(BTN_TOOL_FINGER, bitmask_key) && !test_bit(BTN_TOOL_PEN, bitmask_key);
175 has_mouse_button = test_bit(BTN_LEFT, bitmask_key);
176 has_rel_coordinates = test_bit(EV_REL, bitmask_ev) && test_bit(REL_X, bitmask_rel) && test_bit(REL_Y, bitmask_rel);
177 has_mt_coordinates = test_bit(ABS_MT_POSITION_X, bitmask_abs) && test_bit(ABS_MT_POSITION_Y, bitmask_abs);
180 if(has_mt_coordinates && test_bit(ABS_MT_SLOT, bitmask_abs) && test_bit(ABS_MT_SLOT - 1, bitmask_abs))
182 is_direct = test_bit(INPUT_PROP_DIRECT, bitmask_props);
183 has_touch = test_bit(BTN_TOUCH, bitmask_key);
187 has_joystick_axes_or_buttons = test_bit(BTN_TRIGGER, bitmask_key) ||
188 test_bit(BTN_A, bitmask_key) ||
189 test_bit(BTN_1, bitmask_key) ||
190 test_bit(ABS_RX, bitmask_abs) ||
191 test_bit(ABS_RY, bitmask_abs) ||
192 test_bit(ABS_RZ, bitmask_abs) ||
193 test_bit(ABS_THROTTLE, bitmask_abs) ||
194 test_bit(ABS_RUDDER, bitmask_abs) ||
195 test_bit(ABS_WHEEL, bitmask_abs) ||
196 test_bit(ABS_GAS, bitmask_abs) ||
197 test_bit(ABS_BRAKE, bitmask_abs);
246 if (!test_bit(EV_KEY, bitmask_ev)) {
260 if (test_bit(i, bitmask_key)) {
317 if (!is_pointer && !is_key && test_bit(EV_REL, bitmask_ev) &&
318 (test_bit(REL_WHEEL, bitmask_rel) || test_bit(REL_HWHEEL, bitmask_rel)))