Lines Matching refs: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);
88 /* Mark slots as 'inactive' */
90 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1);
92 /* Mark slots as 'unused' */
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];
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];
263 if (!input_mt_is_used(mt, &mt->slots[i])) {
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++) {
387 int *slots, int num_pos)
393 slots[j] = -1;
395 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) {
401 slots[j] = s - mt->slots;
409 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) {
414 if (slots[j] < 0) {
415 slots[j] = s - mt->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,
457 input_mt_set_slots(mt, slots, num_pos);
465 * @dev: input device with allocated MT slots
483 for (s = mt->slots; s != mt->slots + mt->num_slots; s++)
485 return s - mt->slots;
487 for (s = mt->slots; s != mt->slots + mt->num_slots; s++)
490 return s - mt->slots;