Lines Matching defs:input
49 #include <linux/input.h>
50 #include <linux/input/mt.h>
1013 static void report_finger_data(struct input_dev *input, int slot,
1017 input_mt_slot(input, slot);
1018 input_mt_report_slot_state(input, MT_TOOL_FINGER, true);
1020 input_report_abs(input, ABS_MT_TOUCH_MAJOR,
1022 input_report_abs(input, ABS_MT_TOUCH_MINOR,
1024 input_report_abs(input, ABS_MT_WIDTH_MAJOR,
1026 input_report_abs(input, ABS_MT_WIDTH_MINOR,
1028 input_report_abs(input, ABS_MT_ORIENTATION,
1030 input_report_abs(input, ABS_MT_POSITION_X, pos->x);
1031 input_report_abs(input, ABS_MT_POSITION_Y, pos->y);
1038 struct input_dev *input;
1043 input = smp_load_acquire(&applespi->touchpad_input_dev);
1044 if (!input)
1062 input_mt_assign_slots(input, applespi->slots, applespi->pos, n, 0);
1065 report_finger_data(input, applespi->slots[i],
1068 input_mt_sync_frame(input);
1069 input_report_key(input, BTN_LEFT, t->clicked);
1071 input_sync(input);
1271 /* create touchpad input device */
1275 "Failed to allocate touchpad input device\n");
1332 /* register input device */
1336 "Unable to register touchpad input device (%d)\n", sts);
1361 * We're not allowed to sleep here, but registering an input
1707 /* setup the keyboard input dev */
1745 "Unable to register keyboard input device (%d)\n", sts);