Lines Matching refs:slots
49 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots()
90 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots()
144 slot = &mt->slots[mt->slot]; in input_mt_report_slot_state()
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()
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()
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()
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()