Lines Matching defs:input
30 #include <linux/input/mt.h>
115 struct input_dev *input;
191 struct input_dev *input = drvdat->input;
197 input_report_abs(input, ABS_MT_POSITION_X, x);
198 input_report_abs(input, ABS_MT_POSITION_Y, y);
211 input_report_abs(input, ABS_MT_TOUCH_MAJOR, touch_major);
212 input_report_abs(input, ABS_MT_PRESSURE, pressure);
218 struct input_mt *mt = drvdat->input->mt;
243 input_report_abs(drvdat->input, ABS_TOOL_WIDTH,
263 input_mt_slot(drvdat->input, i);
264 input_mt_report_slot_state(drvdat->input, toolType, down);
272 input_report_key(drvdat->input, BTN_LEFT, data[1] & BTN_LEFT_MASK);
275 input_mt_sync_frame(drvdat->input);
276 input_sync(drvdat->input);
289 input_report_key(drvdat->input, KEY_MUTE, 1);
290 input_sync(drvdat->input);
291 input_report_key(drvdat->input, KEY_MUTE, 0);
292 input_sync(drvdat->input);
681 struct input_dev *input = hi->input;
693 input_set_capability(input, EV_KEY, KEY_F21);
694 input->name = "Asus Touchpad Keys";
695 drvdata->tp_kbd_input = input;
707 input_set_abs_params(input, ABS_MT_POSITION_X, 0,
709 input_set_abs_params(input, ABS_MT_POSITION_Y, 0,
711 input_abs_set_res(input, ABS_MT_POSITION_X, drvdata->tp->res_x);
712 input_abs_set_res(input, ABS_MT_POSITION_Y, drvdata->tp->res_y);
715 input_set_abs_params(input, ABS_TOOL_WIDTH, 0,
717 input_set_abs_params(input, ABS_MT_TOUCH_MAJOR, 0,
719 input_set_abs_params(input, ABS_MT_PRESSURE, 0,
723 __set_bit(BTN_LEFT, input->keybit);
724 __set_bit(INPUT_PROP_BUTTONPAD, input->propbit);
726 ret = input_mt_init_slots(input, drvdata->tp->max_contacts,
730 hid_err(hdev, "Asus input mt init slots failed: %d\n", ret);
735 drvdata->input = input;
818 set_bit(EV_REP, hi->input->evbit);
845 set_bit(EV_REP, hi->input->evbit);
870 input_set_capability(hi->input, EV_KEY, KEY_MUTE);
992 /* For separate input-devs for tp and tp toggle key */
1030 if (!drvdata->input) {
1031 hid_err(hdev, "Asus input not registered\n");
1037 drvdata->input->name = "Asus TouchPad";
1039 drvdata->input->name = "Asus Keyboard";