Lines Matching full:slots
24 * input_mt_init_slots() - initialize MT input slots
26 * @num_slots: number of slots used by the device
36 * reinitialize with a different number of slots.
49 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots()
88 /* Mark slots as 'inactive' */ in input_mt_init_slots()
90 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots()
92 /* Mark slots as 'unused' */ in input_mt_init_slots()
104 * input_mt_destroy_slots() - frees the MT slots of the input device
105 * @dev: input device with allocated MT slots
108 * automatically free the MT slots when the device is destroyed.
122 * @dev: input device with allocated MT slots
144 slot = &mt->slots[mt->slot]; in input_mt_report_slot_state()
165 * @dev: input device with allocated MT slots
186 * @dev: input device with allocated MT slots
209 struct input_mt_slot *ps = &mt->slots[i]; in input_mt_report_pointer_emulation()
263 if (!input_mt_is_used(mt, &mt->slots[i])) { in __input_mt_drop_unused()
271 * input_mt_drop_unused() - Inactivate slots not seen in this frame
272 * @dev: input device with allocated MT slots
274 * Lift all slots not seen since the last call to this function.
289 * @dev: input device with allocated MT slots
292 * Depending on the flags, marks unused slots as inactive and performs
372 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix()
387 int *slots, int num_pos) in input_mt_set_slots() argument
393 slots[j] = -1; in input_mt_set_slots()
395 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots()
401 slots[j] = s - mt->slots; in input_mt_set_slots()
409 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots()
414 if (slots[j] < 0) { in input_mt_set_slots()
415 slots[j] = s - mt->slots; in input_mt_set_slots()
424 * @dev: input device with allocated MT slots
425 * @slots: the slot assignment to be filled
432 * slots.
436 * some contacts are assigned to unused slots.
440 int input_mt_assign_slots(struct input_dev *dev, int *slots, in input_mt_assign_slots() argument
457 input_mt_set_slots(mt, slots, num_pos); in input_mt_assign_slots()
465 * @dev: input device with allocated MT slots
483 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key()
485 return s - mt->slots; in input_mt_get_slot_by_key()
487 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key()
490 return s - mt->slots; in input_mt_get_slot_by_key()