Lines Matching refs:input

21 #include <linux/input.h>
22 #include <linux/input/mt.h>
23 #include <linux/input/touchscreen.h>
125 struct input_dev *input;
471 static int iqs5xx_open(struct input_dev *input)
473 struct iqs5xx_private *iqs5xx = input_get_drvdata(input);
478 static void iqs5xx_close(struct input_dev *input)
480 struct iqs5xx_private *iqs5xx = input_get_drvdata(input);
489 struct input_dev *input = iqs5xx->input;
493 if (!input) {
494 input = devm_input_allocate_device(&client->dev);
495 if (!input)
498 input->name = client->name;
499 input->id.bustype = BUS_I2C;
500 input->open = iqs5xx_open;
501 input->close = iqs5xx_close;
503 input_set_drvdata(input, iqs5xx);
504 iqs5xx->input = input;
515 input_set_abs_params(input, ABS_MT_POSITION_X, 0, max_x, 0, 0);
516 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, max_y, 0, 0);
517 input_set_abs_params(input, ABS_MT_PRESSURE, 0, U16_MAX, 0, 0);
519 touchscreen_parse_properties(input, true, prop);
543 error = input_mt_init_slots(input, IQS5XX_NUM_CONTACTS,
641 struct input_dev *input = iqs5xx->input;
647 * bootloader mode, the input device is guaranteed to be allocated.
674 input_mt_slot(input, i);
675 if (input_mt_report_slot_state(input, MT_TOOL_FINGER,
677 touchscreen_report_pos(input, &iqs5xx->prop,
681 input_report_abs(input, ABS_MT_PRESSURE, pressure);
685 input_mt_sync_frame(input);
686 input_sync(input);
901 bool input_reg = !iqs5xx->input;
922 * If the input device was not allocated already, it is guaranteed to
926 error = input_register_device(iqs5xx->input);
986 struct input_dev *input = iqs5xx->input;
989 if (!input || device_may_wakeup(dev))
992 mutex_lock(&input->mutex);
994 if (input_device_enabled(input))
997 mutex_unlock(&input->mutex);
1005 struct input_dev *input = iqs5xx->input;
1008 if (!input || device_may_wakeup(dev))
1011 mutex_lock(&input->mutex);
1013 if (input_device_enabled(input))
1016 mutex_unlock(&input->mutex);
1057 if (iqs5xx->input) {
1058 error = input_register_device(iqs5xx->input);