Lines Matching refs:input

99 	struct input_dev *input;  member
386 static void mrstouch_report_event(struct input_dev *input, in mrstouch_report_event() argument
391 input_report_key(input, BTN_TOUCH, 1); in mrstouch_report_event()
392 input_report_abs(input, ABS_X, x); in mrstouch_report_event()
393 input_report_abs(input, ABS_Y, y); in mrstouch_report_event()
395 input_report_key(input, BTN_TOUCH, 0); in mrstouch_report_event()
398 input_report_abs(input, ABS_PRESSURE, z); in mrstouch_report_event()
399 input_sync(input); in mrstouch_report_event()
420 mrstouch_report_event(tsdev->input, x, y, z); in mrstouch_pendet_irq()
574 struct input_dev *input; in mrstouch_probe() local
591 input = devm_input_allocate_device(&pdev->dev); in mrstouch_probe()
592 if (!input) { in mrstouch_probe()
598 tsdev->input = input; in mrstouch_probe()
610 input->name = "mrst_touchscreen"; in mrstouch_probe()
611 input->phys = tsdev->phys; in mrstouch_probe()
612 input->dev.parent = tsdev->dev; in mrstouch_probe()
614 input->id.vendor = tsdev->vendor; in mrstouch_probe()
615 input->id.version = tsdev->rev; in mrstouch_probe()
617 input->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); in mrstouch_probe()
618 input->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); in mrstouch_probe()
620 input_set_abs_params(tsdev->input, ABS_X, in mrstouch_probe()
622 input_set_abs_params(tsdev->input, ABS_Y, in mrstouch_probe()
624 input_set_abs_params(tsdev->input, ABS_PRESSURE, in mrstouch_probe()
635 err = input_register_device(tsdev->input); in mrstouch_probe()