Lines Matching refs:serio
60 struct serio *serio; member
64 static irqreturn_t xtkbd_interrupt(struct serio *serio, in xtkbd_interrupt() argument
67 struct xtkbd *xtkbd = serio_get_drvdata(serio); in xtkbd_interrupt()
86 static int xtkbd_connect(struct serio *serio, struct serio_driver *drv) in xtkbd_connect() argument
98 xtkbd->serio = serio; in xtkbd_connect()
100 snprintf(xtkbd->phys, sizeof(xtkbd->phys), "%s/input0", serio->phys); in xtkbd_connect()
109 input_dev->dev.parent = &serio->dev; in xtkbd_connect()
120 serio_set_drvdata(serio, xtkbd); in xtkbd_connect()
122 err = serio_open(serio, drv); in xtkbd_connect()
132 fail3: serio_close(serio); in xtkbd_connect()
133 fail2: serio_set_drvdata(serio, NULL); in xtkbd_connect()
139 static void xtkbd_disconnect(struct serio *serio) in xtkbd_disconnect() argument
141 struct xtkbd *xtkbd = serio_get_drvdata(serio); in xtkbd_disconnect()
143 serio_close(serio); in xtkbd_disconnect()
144 serio_set_drvdata(serio, NULL); in xtkbd_disconnect()
159 MODULE_DEVICE_TABLE(serio, xtkbd_serio_ids);