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