Lines Matching refs:serio
48 static int rpckbd_write(struct serio *port, unsigned char val) in rpckbd_write()
60 struct serio *port = dev_id; in rpckbd_rx()
78 static int rpckbd_open(struct serio *port) in rpckbd_open()
99 static void rpckbd_close(struct serio *port) in rpckbd_close()
111 struct serio *serio; in rpckbd_probe() local
113 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in rpckbd_probe()
114 if (!serio) in rpckbd_probe()
117 serio->id.type = SERIO_8042; in rpckbd_probe()
118 serio->write = rpckbd_write; in rpckbd_probe()
119 serio->open = rpckbd_open; in rpckbd_probe()
120 serio->close = rpckbd_close; in rpckbd_probe()
121 serio->dev.parent = &dev->dev; in rpckbd_probe()
122 strlcpy(serio->name, "RiscPC PS/2 kbd port", sizeof(serio->name)); in rpckbd_probe()
123 strlcpy(serio->phys, "rpckbd/serio0", sizeof(serio->phys)); in rpckbd_probe()
125 platform_set_drvdata(dev, serio); in rpckbd_probe()
126 serio_register_port(serio); in rpckbd_probe()
132 struct serio *serio = platform_get_drvdata(dev); in rpckbd_remove() local
133 serio_unregister_port(serio); in rpckbd_remove()