Lines Matching full:slots
82 /* the set of slots with active touches */
84 /* the set of slots with unsynchronized state */
86 /* the set of slots to match with active touches */
91 union evdev_mt_slot slots[]; member
100 ffc_slot(struct evdev_dev *evdev, slotset_t slots) in ffc_slot() argument
102 return (ffs(~slots & ((2U << MAXIMAL_MT_SLOT(evdev)) - 1)) - 1); in ffc_slot()
109 size_t size = offsetof(struct evdev_mt, slots); in evdev_mt_init()
110 int slot, slots; in evdev_mt_init() local
122 slots = MAXIMAL_MT_SLOT(evdev) + 1; in evdev_mt_init()
123 size += sizeof(mt->slots[0]) * slots; in evdev_mt_init()
125 size += sizeof(mt->match_slots[0]) * slots; in evdev_mt_init()
126 size += sizeof(mt->matrix[0]) * (slots + 6) * slots; in evdev_mt_init()
134 mt->match_slots = mt->slots + slots; in evdev_mt_init()
135 mt->matrix = (int *)(mt->match_slots + slots); in evdev_mt_init()
139 for (slot = 0; slot < slots; slot++) in evdev_mt_init()
140 mt->slots[slot].id = -1; in evdev_mt_init()
333 dx = pt[i].x - mt->slots[slot].x; in evdev_mt_match_frame()
334 dy = pt[i].y - mt->slots[slot].y; in evdev_mt_match_frame()
342 dx = pt[i].x - mt->slots[slot].x; in evdev_mt_match_frame()
343 dy = pt[i].y - mt->slots[slot].y; in evdev_mt_match_frame()
498 return (mt->slots[slot].val[ABS_MT_INDEX(code)]); in evdev_mt_get_value()
515 mt->slots[slot].val[ABS_MT_INDEX(code)] = value; in evdev_mt_set_value()