Lines Matching refs:serio
43 struct serio *serio; member
47 static irqreturn_t xtkbd_interrupt(struct serio *serio, in xtkbd_interrupt() argument
50 struct xtkbd *xtkbd = serio_get_drvdata(serio); in xtkbd_interrupt()
69 static int xtkbd_connect(struct serio *serio, struct serio_driver *drv) in xtkbd_connect() argument
81 xtkbd->serio = serio; in xtkbd_connect()
83 snprintf(xtkbd->phys, sizeof(xtkbd->phys), "%s/input0", serio->phys); in xtkbd_connect()
92 input_dev->dev.parent = &serio->dev; in xtkbd_connect()
103 serio_set_drvdata(serio, xtkbd); in xtkbd_connect()
105 err = serio_open(serio, drv); in xtkbd_connect()
115 fail3: serio_close(serio); in xtkbd_connect()
116 fail2: serio_set_drvdata(serio, NULL); in xtkbd_connect()
122 static void xtkbd_disconnect(struct serio *serio) in xtkbd_disconnect() argument
124 struct xtkbd *xtkbd = serio_get_drvdata(serio); in xtkbd_disconnect()
126 serio_close(serio); in xtkbd_disconnect()
127 serio_set_drvdata(serio, NULL); in xtkbd_disconnect()
142 MODULE_DEVICE_TABLE(serio, xtkbd_serio_ids);