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.
50 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots()
89 /* Mark slots as 'inactive' */ in input_mt_init_slots()
91 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots()
93 /* 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
210 struct input_mt_slot *ps = &mt->slots[i]; in input_mt_report_pointer_emulation()
266 if (input_mt_is_active(&mt->slots[i]) && in __input_mt_drop_unused()
267 !input_mt_is_used(mt, &mt->slots[i])) { in __input_mt_drop_unused()
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. */ in input_mt_release_slots()
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++) { in input_mt_set_matrix()
427 int *slots, int num_pos) in input_mt_set_slots() argument
433 slots[j] = -1; in input_mt_set_slots()
435 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots()
441 slots[j] = s - mt->slots; in input_mt_set_slots()
449 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots()
454 if (slots[j] < 0) { in input_mt_set_slots()
455 slots[j] = s - mt->slots; in input_mt_set_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, in input_mt_assign_slots() argument
497 input_mt_set_slots(mt, slots, num_pos); in input_mt_assign_slots()
505 * @dev: input device with allocated MT slots
523 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key()
525 return s - mt->slots; in input_mt_get_slot_by_key()
527 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key()
530 return s - mt->slots; in input_mt_get_slot_by_key()