Lines Matching refs:slots
25 * input_mt_init_slots() - initialize MT input slots
27 * @num_slots: number of slots used by the device
37 * reinitialize with a different number of slots.
50 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL);
89 /* Mark slots as 'inactive' */
91 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1);
93 /* Mark slots as 'unused' */
105 * input_mt_destroy_slots() - frees the MT slots of the input device
106 * @dev: input device with allocated MT slots
109 * automatically free the MT slots when the device is destroyed.
123 * @dev: input device with allocated MT slots
145 slot = &mt->slots[mt->slot];
166 * @dev: input device with allocated MT slots
187 * @dev: input device with allocated MT slots
210 struct input_mt_slot *ps = &mt->slots[i];
266 if (input_mt_is_active(&mt->slots[i]) &&
267 !input_mt_is_used(mt, &mt->slots[i])) {
275 * input_mt_drop_unused() - Inactivate slots not seen in this frame
276 * @dev: input device with allocated MT slots
278 * Lift all slots not seen since the last call to this function.
298 * input_mt_release_slots() - Deactivate all slots
299 * @dev: input device with allocated MT slots
301 * Lift all active slots.
310 /* This will effectively mark all slots unused. */
324 * @dev: input device with allocated MT slots
327 * Depending on the flags, marks unused slots as inactive and performs
412 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) {
427 int *slots, int num_pos)
433 slots[j] = -1;
435 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) {
441 slots[j] = s - mt->slots;
449 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) {
454 if (slots[j] < 0) {
455 slots[j] = s - mt->slots;
464 * @dev: input device with allocated MT slots
465 * @slots: the slot assignment to be filled
472 * slots.
476 * some contacts are assigned to unused slots.
480 int input_mt_assign_slots(struct input_dev *dev, int *slots,
497 input_mt_set_slots(mt, slots, num_pos);
505 * @dev: input device with allocated MT slots
523 for (s = mt->slots; s != mt->slots + mt->num_slots; s++)
525 return s - mt->slots;
527 for (s = mt->slots; s != mt->slots + mt->num_slots; s++)
530 return s - mt->slots;