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 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); 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()
108 * input_mt_destroy_slots() - frees the MT slots of the input device
109 * @dev: input device with allocated MT slots
112 * automatically free the MT slots when the device is destroyed.
126 * @dev: input device with allocated MT slots
148 slot = &mt->slots[mt->slot]; in input_mt_report_slot_state()
169 * @dev: input device with allocated MT slots
190 * @dev: input device with allocated MT slots
213 struct input_mt_slot *ps = &mt->slots[i]; in input_mt_report_pointer_emulation()
269 if (input_mt_is_active(&mt->slots[i]) && in __input_mt_drop_unused()
270 !input_mt_is_used(mt, &mt->slots[i])) { in __input_mt_drop_unused()
278 * input_mt_drop_unused() - Inactivate slots not seen in this frame
279 * @dev: input device with allocated MT slots
281 * Lift all slots not seen since the last call to this function.
301 * input_mt_release_slots() - Deactivate all slots
302 * @dev: input device with allocated MT slots
304 * Lift all active slots.
313 /* This will effectively mark all slots unused. */ in input_mt_release_slots()
327 * @dev: input device with allocated MT slots
330 * Depending on the flags, marks unused slots as inactive and performs
415 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix()
430 int *slots, int num_pos) in input_mt_set_slots() argument
436 slots[j] = -1; in input_mt_set_slots()
438 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots()
444 slots[j] = s - mt->slots; in input_mt_set_slots()
452 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots()
457 if (slots[j] < 0) { in input_mt_set_slots()
458 slots[j] = s - mt->slots; in input_mt_set_slots()
467 * @dev: input device with allocated MT slots
468 * @slots: the slot assignment to be filled
475 * slots.
479 * some contacts are assigned to unused slots.
483 int input_mt_assign_slots(struct input_dev *dev, int *slots, in input_mt_assign_slots() argument
500 input_mt_set_slots(mt, slots, num_pos); in input_mt_assign_slots()
508 * @dev: input device with allocated MT slots
526 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key()
528 return s - mt->slots; in input_mt_get_slot_by_key()
530 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key()
533 return s - mt->slots; in input_mt_get_slot_by_key()