Lines Matching defs:input
30 #include <linux/input/mt.h>
119 struct input_dev *input;
195 struct input_dev *input = drvdat->input;
201 input_report_abs(input, ABS_MT_POSITION_X, x);
202 input_report_abs(input, ABS_MT_POSITION_Y, y);
215 input_report_abs(input, ABS_MT_TOUCH_MAJOR, touch_major);
216 input_report_abs(input, ABS_MT_PRESSURE, pressure);
222 struct input_mt *mt = drvdat->input->mt;
245 input_report_abs(drvdat->input, ABS_TOOL_WIDTH,
265 input_mt_slot(drvdat->input, i);
266 input_mt_report_slot_state(drvdat->input, toolType, down);
274 input_report_key(drvdat->input, BTN_LEFT, data[1] & BTN_LEFT_MASK);
277 input_mt_sync_frame(drvdat->input);
278 input_sync(drvdat->input);
291 input_report_key(drvdat->input, KEY_MUTE, 1);
292 input_sync(drvdat->input);
293 input_report_key(drvdat->input, KEY_MUTE, 0);
294 input_sync(drvdat->input);
781 struct input_dev *input = hi->input;
793 input_set_capability(input, EV_KEY, KEY_F21);
794 input->name = "Asus Touchpad Keys";
795 drvdata->tp_kbd_input = input;
807 input_set_abs_params(input, ABS_MT_POSITION_X, 0,
809 input_set_abs_params(input, ABS_MT_POSITION_Y, 0,
811 input_abs_set_res(input, ABS_MT_POSITION_X, drvdata->tp->res_x);
812 input_abs_set_res(input, ABS_MT_POSITION_Y, drvdata->tp->res_y);
815 input_set_abs_params(input, ABS_TOOL_WIDTH, 0,
817 input_set_abs_params(input, ABS_MT_TOUCH_MAJOR, 0,
819 input_set_abs_params(input, ABS_MT_PRESSURE, 0,
823 __set_bit(BTN_LEFT, input->keybit);
824 __set_bit(INPUT_PROP_BUTTONPAD, input->propbit);
826 ret = input_mt_init_slots(input, drvdata->tp->max_contacts,
830 hid_err(hdev, "Asus input mt init slots failed: %d\n", ret);
835 drvdata->input = input;
917 set_bit(EV_REP, hi->input->evbit);
944 set_bit(EV_REP, hi->input->evbit);
969 input_set_capability(hi->input, EV_KEY, KEY_MUTE);
1091 /* For separate input-devs for tp and tp toggle key */
1124 if (!drvdata->input) {
1125 hid_err(hdev, "Asus input not registered\n");
1131 drvdata->input->name = "Asus TouchPad";
1133 drvdata->input->name = "Asus Keyboard";