Lines Matching +full:time +full:- +full:slot
1 /* SPDX-License-Identifier: GPL-2.0-only */
18 #define INPUT_MT_TRACK 0x0008 /* use in-kernel tracking */
19 #define INPUT_MT_SEMI_MT 0x0010 /* semi-mt device, finger count handled manually */
22 * struct input_mt_slot - represents the state of an input MT slot
23 * @abs: holds current values of ABS_MT axes for this slot
25 * @key: optional driver designation of this slot
28 int abs[ABS_MT_LAST - ABS_MT_FIRST + 1];
34 * struct input_mt - state of tracked contacts
37 * @slot: MT slot currently being transmitted
39 * @frame: increases every time input_mt_sync_frame() is called
40 * @red: reduced cost matrix for in-kernel tracking
46 int slot; member
53 static inline void input_mt_set_value(struct input_mt_slot *slot, in input_mt_set_value() argument
56 slot->abs[code - ABS_MT_FIRST] = value; in input_mt_set_value()
59 static inline int input_mt_get_value(const struct input_mt_slot *slot, in input_mt_get_value() argument
62 return slot->abs[code - ABS_MT_FIRST]; in input_mt_get_value()
65 static inline bool input_mt_is_active(const struct input_mt_slot *slot) in input_mt_is_active() argument
67 return input_mt_get_value(slot, ABS_MT_TRACKING_ID) >= 0; in input_mt_is_active()
71 const struct input_mt_slot *slot) in input_mt_is_used() argument
73 return slot->frame == mt->frame; in input_mt_is_used()
82 return mt->trkid++ & TRKID_MAX; in input_mt_new_trkid()
85 static inline void input_mt_slot(struct input_dev *dev, int slot) in input_mt_slot() argument
87 input_event(dev, EV_ABS, ABS_MT_SLOT, slot); in input_mt_slot()
115 * struct input_mt_pos - contact position