Lines Matching refs:slots
95 union evdev_mt_slot slots[]; member
104 ffc_slot(struct evdev_dev *evdev, slotset_t slots) in ffc_slot() argument
106 return (ffs(~slots & ((2U << MAXIMAL_MT_SLOT(evdev)) - 1)) - 1); in ffc_slot()
113 size_t size = offsetof(struct evdev_mt, slots); in evdev_mt_init()
114 int slot, slots; in evdev_mt_init() local
126 slots = MAXIMAL_MT_SLOT(evdev) + 1; in evdev_mt_init()
127 size += sizeof(mt->slots[0]) * slots; in evdev_mt_init()
129 size += sizeof(mt->match_slots[0]) * slots; in evdev_mt_init()
130 size += sizeof(mt->matrix[0]) * (slots + 6) * slots; in evdev_mt_init()
138 mt->match_slots = mt->slots + slots; in evdev_mt_init()
139 mt->matrix = (int *)(mt->match_slots + slots); in evdev_mt_init()
143 for (slot = 0; slot < slots; slot++) in evdev_mt_init()
144 mt->slots[slot].id = -1; in evdev_mt_init()
339 dx = pt[i].x - mt->slots[slot].x; in evdev_mt_match_frame()
340 dy = pt[i].y - mt->slots[slot].y; in evdev_mt_match_frame()
348 dx = pt[i].x - mt->slots[slot].x; in evdev_mt_match_frame()
349 dy = pt[i].y - mt->slots[slot].y; in evdev_mt_match_frame()
505 return (mt->slots[slot].val[ABS_MT_INDEX(code)]); in evdev_mt_get_value()
522 mt->slots[slot].val[ABS_MT_INDEX(code)] = value; in evdev_mt_set_value()