Lines Matching full:serio
16 #include <linux/serio.h>
49 struct serio *serio; member
53 static irqreturn_t skbd_interrupt(struct serio *serio, unsigned char data, in skbd_interrupt() argument
56 struct skbd *skbd = serio_get_drvdata(serio); in skbd_interrupt()
68 static int skbd_connect(struct serio *serio, struct serio_driver *drv) in skbd_connect() argument
80 skbd->serio = serio; in skbd_connect()
82 snprintf(skbd->phys, sizeof(skbd->phys), "%s/input0", serio->phys); in skbd_connect()
91 input_dev->dev.parent = &serio->dev; in skbd_connect()
101 serio_set_drvdata(serio, skbd); in skbd_connect()
103 err = serio_open(serio, drv); in skbd_connect()
113 fail3: serio_close(serio); in skbd_connect()
114 fail2: serio_set_drvdata(serio, NULL); in skbd_connect()
120 static void skbd_disconnect(struct serio *serio) in skbd_disconnect() argument
122 struct skbd *skbd = serio_get_drvdata(serio); in skbd_disconnect()
124 serio_close(serio); in skbd_disconnect()
125 serio_set_drvdata(serio, NULL); in skbd_disconnect()
140 MODULE_DEVICE_TABLE(serio, skbd_serio_ids);