Lines Matching refs:num_slots
39 int input_mt_init_slots(struct input_dev *dev, unsigned int num_slots, in input_mt_init_slots() argument
45 if (!num_slots) in input_mt_init_slots()
48 return mt->num_slots != num_slots ? -EINVAL : 0; in input_mt_init_slots()
50 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots()
54 mt->num_slots = num_slots; in input_mt_init_slots()
56 input_set_abs_params(dev, ABS_MT_SLOT, 0, num_slots - 1, 0, 0); in input_mt_init_slots()
70 if (num_slots >= 3) in input_mt_init_slots()
72 if (num_slots >= 4) in input_mt_init_slots()
74 if (num_slots >= 5) in input_mt_init_slots()
83 unsigned int n2 = num_slots * num_slots; in input_mt_init_slots()
90 for (i = 0; i < num_slots; i++) in input_mt_init_slots()
209 for (i = 0; i < mt->num_slots; ++i) { in input_mt_report_pointer_emulation()
265 for (i = 0; i < mt->num_slots; i++) { in __input_mt_drop_unused()
412 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix()
435 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots()
449 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots()
490 if (num_pos > mt->num_slots) in input_mt_assign_slots()
523 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key()
527 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key()