Lines Matching full:serio
13 #include <linux/serio.h>
18 struct serio *serio; member
41 static irqreturn_t tsc_interrupt(struct serio *serio, in tsc_interrupt() argument
44 struct tsc_ser *ptsc = serio_get_drvdata(serio); in tsc_interrupt()
51 dev_dbg(&serio->dev, in tsc_interrupt()
64 dev_dbg(&serio->dev, in tsc_interrupt()
80 static int tsc_connect(struct serio *serio, struct serio_driver *drv) in tsc_connect() argument
93 ptsc->serio = serio; in tsc_connect()
95 snprintf(ptsc->phys, sizeof(ptsc->phys), "%s/input0", serio->phys); in tsc_connect()
103 input_dev->dev.parent = &serio->dev; in tsc_connect()
110 serio_set_drvdata(serio, ptsc); in tsc_connect()
112 error = serio_open(serio, drv); in tsc_connect()
123 serio_close(serio); in tsc_connect()
125 serio_set_drvdata(serio, NULL); in tsc_connect()
132 static void tsc_disconnect(struct serio *serio) in tsc_disconnect() argument
134 struct tsc_ser *ptsc = serio_get_drvdata(serio); in tsc_disconnect()
136 serio_close(serio); in tsc_disconnect()
141 serio_set_drvdata(serio, NULL); in tsc_disconnect()
153 MODULE_DEVICE_TABLE(serio, tsc_serio_ids);