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