Lines Matching refs:serio
40 struct serio *serio; member
44 static irqreturn_t xtkbd_interrupt(struct serio *serio, in xtkbd_interrupt() argument
47 struct xtkbd *xtkbd = serio_get_drvdata(serio); in xtkbd_interrupt()
66 static int xtkbd_connect(struct serio *serio, struct serio_driver *drv) in xtkbd_connect() argument
78 xtkbd->serio = serio; in xtkbd_connect()
80 snprintf(xtkbd->phys, sizeof(xtkbd->phys), "%s/input0", serio->phys); in xtkbd_connect()
89 input_dev->dev.parent = &serio->dev; in xtkbd_connect()
100 serio_set_drvdata(serio, xtkbd); in xtkbd_connect()
102 err = serio_open(serio, drv); in xtkbd_connect()
112 fail3: serio_close(serio); in xtkbd_connect()
113 fail2: serio_set_drvdata(serio, NULL); in xtkbd_connect()
119 static void xtkbd_disconnect(struct serio *serio) in xtkbd_disconnect() argument
121 struct xtkbd *xtkbd = serio_get_drvdata(serio); in xtkbd_disconnect()
123 serio_close(serio); in xtkbd_disconnect()
124 serio_set_drvdata(serio, NULL); in xtkbd_disconnect()
139 MODULE_DEVICE_TABLE(serio, xtkbd_serio_ids);