Lines Matching full:serio
13 #include <linux/serio.h>
43 struct serio *serio; member
47 static irqreturn_t nkbd_interrupt(struct serio *serio, in nkbd_interrupt() argument
50 struct nkbd *nkbd = serio_get_drvdata(serio); in nkbd_interrupt()
59 printk(KERN_INFO "input: %s on %s\n", nkbd->dev->name, serio->phys); in nkbd_interrupt()
64 static int nkbd_connect(struct serio *serio, struct serio_driver *drv) in nkbd_connect() argument
76 nkbd->serio = serio; in nkbd_connect()
78 snprintf(nkbd->phys, sizeof(nkbd->phys), "%s/input0", serio->phys); in nkbd_connect()
87 input_dev->dev.parent = &serio->dev; in nkbd_connect()
97 serio_set_drvdata(serio, nkbd); in nkbd_connect()
99 err = serio_open(serio, drv); in nkbd_connect()
109 fail3: serio_close(serio); in nkbd_connect()
110 fail2: serio_set_drvdata(serio, NULL); in nkbd_connect()
116 static void nkbd_disconnect(struct serio *serio) in nkbd_disconnect() argument
118 struct nkbd *nkbd = serio_get_drvdata(serio); in nkbd_disconnect()
120 serio_close(serio); in nkbd_disconnect()
121 serio_set_drvdata(serio, NULL); in nkbd_disconnect()
136 MODULE_DEVICE_TABLE(serio, nkbd_serio_ids);