Lines Matching defs:slot
133 struct mt_slot *slot)
140 point = evdev_hysteresis(&slot->point,
141 &slot->hysteresis_center,
143 slot->point = point;
145 if (point.x == slot->hysteresis_center.x &&
146 point.y == slot->hysteresis_center.y)
149 slot->hysteresis_center = point;
232 struct mt_slot *slot;
238 slot = &dispatch->mt.slots[slot_idx];
239 if (slot->seat_slot != -1) {
241 "driver sent multiple touch down for the same slot");
246 slot->seat_slot = seat_slot;
252 point = slot->point;
253 slot->hysteresis_center = point;
270 struct mt_slot *slot;
276 slot = &dispatch->mt.slots[slot_idx];
277 seat_slot = slot->seat_slot;
278 point = slot->point;
283 if (fallback_filter_defuzz_touch(dispatch, device, slot))
301 struct mt_slot *slot;
307 slot = &dispatch->mt.slots[slot_idx];
308 seat_slot = slot->seat_slot;
309 slot->seat_slot = -1;
329 struct mt_slot *slot;
335 slot = &dispatch->mt.slots[slot_idx];
336 seat_slot = slot->seat_slot;
337 slot->seat_slot = -1;
364 "driver sent multiple touch down for the same slot");
529 struct mt_slot *slot = &dispatch->mt.slots[dispatch->mt.slot];
534 "exceeded slot count (%d of max %zd)\n",
539 dispatch->mt.slot = e->value;
547 slot->state = SLOT_STATE_BEGIN;
551 dispatch->mt.slot,
556 slot->palm_state = PALM_WAS_PALM;
559 slot->palm_state = PALM_NONE;
563 slot->palm_state = PALM_NONE;
567 slot->state = SLOT_STATE_END;
569 slot->dirty = true;
573 dispatch->mt.slots[dispatch->mt.slot].point.x = e->value;
575 slot->dirty = true;
579 dispatch->mt.slots[dispatch->mt.slot].point.y = e->value;
581 slot->dirty = true;
592 if (slot->palm_state == PALM_NONE)
593 slot->palm_state = PALM_NEW;
596 if (slot->palm_state == PALM_IS_PALM)
597 slot->palm_state = PALM_WAS_PALM;
601 slot->dirty = true;
808 struct mt_slot *slot)
811 struct device_coords point = slot->point;
816 slot->palm_state = PALM_IS_PALM;
831 struct mt_slot *slot = &dispatch->mt.slots[i];
833 if (!slot->dirty)
836 slot->dirty = false;
842 if (slot->palm_state == PALM_NEW) {
843 if (slot->state != SLOT_STATE_BEGIN)
848 slot->palm_state = PALM_IS_PALM;
849 } else if (slot->palm_state == PALM_NONE) {
850 switch (slot->state) {
853 slot)) {
878 switch (slot->state) {
880 slot->state = SLOT_STATE_UPDATE;
885 slot->state = SLOT_STATE_NONE;
1020 struct mt_slot *slot = &dispatch->mt.slots[idx];
1021 point = slot->point;
1024 if (slot->seat_slot == -1)
1531 int slot;
1549 active_slot = device->mtdev->caps.slot.value;
1557 for (slot = 0; slot < num_slots; ++slot) {
1558 slots[slot].seat_slot = -1;
1563 slots[slot].point.x = libevdev_get_slot_value(evdev,
1564 slot,
1566 slots[slot].point.y = libevdev_get_slot_value(evdev,
1567 slot,
1572 dispatch->mt.slot = active_slot;