Searched refs:ptsc (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/input/touchscreen/
H A Dtsc40.c24 static void tsc_process_data(struct tsc_ser *ptsc) tsc_process_data() argument
26 struct input_dev *dev = ptsc->dev; tsc_process_data()
27 u8 *data = ptsc->data; tsc_process_data()
44 struct tsc_ser *ptsc = serio_get_drvdata(serio); tsc_interrupt() local
45 struct input_dev *dev = ptsc->dev; tsc_interrupt()
47 ptsc->data[ptsc->idx] = data; tsc_interrupt()
48 switch (ptsc->idx++) { tsc_interrupt()
53 ptsc->idx = 0; tsc_interrupt()
57 ptsc->idx = 0; tsc_interrupt()
66 data, ptsc->idx - 1); tsc_interrupt()
67 ptsc->idx = 0; tsc_interrupt()
72 tsc_process_data(ptsc); tsc_interrupt()
73 ptsc->idx = 0; tsc_interrupt()
82 struct tsc_ser *ptsc; tsc_connect() local
86 ptsc = kzalloc(sizeof(struct tsc_ser), GFP_KERNEL); tsc_connect()
88 if (!ptsc || !input_dev) { tsc_connect()
93 ptsc->serio = serio; tsc_connect()
94 ptsc->dev = input_dev; tsc_connect()
95 snprintf(ptsc->phys, sizeof(ptsc->phys), "%s/input0", serio->phys); tsc_connect()
98 input_dev->phys = ptsc->phys; tsc_connect()
107 input_set_abs_params(ptsc->dev, ABS_X, 0, 0x3ff, 0, 0); tsc_connect()
108 input_set_abs_params(ptsc->dev, ABS_Y, 0, 0x3ff, 0, 0); tsc_connect()
110 serio_set_drvdata(serio, ptsc); tsc_connect()
116 error = input_register_device(ptsc->dev); tsc_connect()
128 kfree(ptsc); tsc_connect()
134 struct tsc_ser *ptsc = serio_get_drvdata(serio); tsc_disconnect() local
138 input_unregister_device(ptsc->dev); tsc_disconnect()
139 kfree(ptsc); tsc_disconnect()

Completed in 70 milliseconds