Lines Matching full: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.
53 kzalloc_flex(*mt, slots, num_slots); in input_mt_init_slots()
92 /* Mark slots as 'inactive' */ in input_mt_init_slots()
94 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots()
96 /* Mark slots as 'unused' */ in input_mt_init_slots()
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]; in input_mt_report_slot_state()
166 * @dev: input device with allocated MT slots
187 * @dev: input device with allocated MT slots
211 struct input_mt_slot *ps = &mt->slots[i]; in input_mt_report_pointer_emulation()
272 if (input_mt_is_active(&mt->slots[i]) && in __input_mt_drop_unused()
273 !input_mt_is_used(mt, &mt->slots[i])) { in __input_mt_drop_unused()
281 * input_mt_drop_unused() - Inactivate slots not seen in this frame
282 * @dev: input device with allocated MT slots
284 * Lift all slots not seen since the last call to this function.
300 * input_mt_release_slots() - Deactivate all slots
301 * @dev: input device with allocated MT slots
303 * Lift all active slots.
312 /* This will effectively mark all slots unused. */ in input_mt_release_slots()
326 * @dev: input device with allocated MT slots
329 * Depending on the flags, marks unused slots as inactive and performs
411 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix()
426 int *slots, int num_pos) in input_mt_set_slots() argument
432 slots[j] = -1; in input_mt_set_slots()
434 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots()
440 slots[j] = s - mt->slots; in input_mt_set_slots()
448 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots()
453 if (slots[j] < 0) { in input_mt_set_slots()
454 slots[j] = s - mt->slots; in input_mt_set_slots()
463 * @dev: input device with allocated MT slots
464 * @slots: the slot assignment to be filled
471 * slots.
475 * some contacts are assigned to unused slots.
479 int input_mt_assign_slots(struct input_dev *dev, int *slots, in input_mt_assign_slots() argument
496 input_mt_set_slots(mt, slots, num_pos); in input_mt_assign_slots()
504 * @dev: input device with allocated MT slots
522 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key()
524 return s - mt->slots; in input_mt_get_slot_by_key()
526 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key()
529 return s - mt->slots; in input_mt_get_slot_by_key()