Lines Matching defs:input
49 #include <linux/input.h>
50 #include <linux/input/mt.h>
998 static void report_finger_data(struct input_dev *input, int slot,
1002 input_mt_slot(input, slot);
1003 input_mt_report_slot_state(input, MT_TOOL_FINGER, true);
1005 input_report_abs(input, ABS_MT_TOUCH_MAJOR,
1007 input_report_abs(input, ABS_MT_TOUCH_MINOR,
1009 input_report_abs(input, ABS_MT_WIDTH_MAJOR,
1011 input_report_abs(input, ABS_MT_WIDTH_MINOR,
1013 input_report_abs(input, ABS_MT_ORIENTATION,
1015 input_report_abs(input, ABS_MT_POSITION_X, pos->x);
1016 input_report_abs(input, ABS_MT_POSITION_Y, pos->y);
1023 struct input_dev *input;
1028 input = smp_load_acquire(&applespi->touchpad_input_dev);
1029 if (!input)
1047 input_mt_assign_slots(input, applespi->slots, applespi->pos, n, 0);
1050 report_finger_data(input, applespi->slots[i],
1053 input_mt_sync_frame(input);
1054 input_report_key(input, BTN_LEFT, t->clicked);
1056 input_sync(input);
1256 /* create touchpad input device */
1260 "Failed to allocate touchpad input device\n");
1317 /* register input device */
1321 "Unable to register touchpad input device (%d)\n", sts);
1346 * We're not allowed to sleep here, but registering an input
1706 /* setup the keyboard input dev */
1744 "Unable to register keyboard input device (%d)\n", sts);