Lines Matching refs:idev

39 	struct input_dev	*idev;  member
56 struct input_dev *idev = ts->idev; in ucb1x00_ts_evt_add() local
58 input_report_abs(idev, ABS_X, x); in ucb1x00_ts_evt_add()
59 input_report_abs(idev, ABS_Y, y); in ucb1x00_ts_evt_add()
60 input_report_abs(idev, ABS_PRESSURE, pressure); in ucb1x00_ts_evt_add()
61 input_report_key(idev, BTN_TOUCH, 1); in ucb1x00_ts_evt_add()
62 input_sync(idev); in ucb1x00_ts_evt_add()
67 struct input_dev *idev = ts->idev; in ucb1x00_ts_event_release() local
69 input_report_abs(idev, ABS_PRESSURE, 0); in ucb1x00_ts_event_release()
70 input_report_key(idev, BTN_TOUCH, 0); in ucb1x00_ts_event_release()
71 input_sync(idev); in ucb1x00_ts_event_release()
301 static int ucb1x00_ts_open(struct input_dev *idev) in ucb1x00_ts_open() argument
303 struct ucb1x00_ts *ts = input_get_drvdata(idev); in ucb1x00_ts_open()
347 static void ucb1x00_ts_close(struct input_dev *idev) in ucb1x00_ts_close() argument
349 struct ucb1x00_ts *ts = input_get_drvdata(idev); in ucb1x00_ts_close()
367 struct input_dev *idev; in ucb1x00_ts_add() local
371 idev = input_allocate_device(); in ucb1x00_ts_add()
372 if (!ts || !idev) { in ucb1x00_ts_add()
378 ts->idev = idev; in ucb1x00_ts_add()
382 idev->name = "Touchscreen panel"; in ucb1x00_ts_add()
383 idev->id.product = ts->ucb->id; in ucb1x00_ts_add()
384 idev->open = ucb1x00_ts_open; in ucb1x00_ts_add()
385 idev->close = ucb1x00_ts_close; in ucb1x00_ts_add()
386 idev->dev.parent = &ts->ucb->dev; in ucb1x00_ts_add()
388 idev->evbit[0] = BIT_MASK(EV_ABS) | BIT_MASK(EV_KEY); in ucb1x00_ts_add()
389 idev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); in ucb1x00_ts_add()
391 input_set_drvdata(idev, ts); in ucb1x00_ts_add()
398 input_set_abs_params(idev, ABS_X, 0, ts->x_res, 0, 0); in ucb1x00_ts_add()
399 input_set_abs_params(idev, ABS_Y, 0, ts->y_res, 0, 0); in ucb1x00_ts_add()
400 input_set_abs_params(idev, ABS_PRESSURE, 0, 0, 0, 0); in ucb1x00_ts_add()
402 err = input_register_device(idev); in ucb1x00_ts_add()
411 input_free_device(idev); in ucb1x00_ts_add()
420 input_unregister_device(ts->idev); in ucb1x00_ts_remove()