Lines Matching refs:serio
35 static int rpckbd_write(struct serio *port, unsigned char val) in rpckbd_write()
47 struct serio *port = dev_id; in rpckbd_rx()
65 static int rpckbd_open(struct serio *port) in rpckbd_open()
88 static void rpckbd_close(struct serio *port) in rpckbd_close()
103 struct serio *serio; in rpckbd_probe() local
114 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in rpckbd_probe()
116 if (!serio || !rpckbd) { in rpckbd_probe()
118 kfree(serio); in rpckbd_probe()
125 serio->id.type = SERIO_8042; in rpckbd_probe()
126 serio->write = rpckbd_write; in rpckbd_probe()
127 serio->open = rpckbd_open; in rpckbd_probe()
128 serio->close = rpckbd_close; in rpckbd_probe()
129 serio->dev.parent = &dev->dev; in rpckbd_probe()
130 serio->port_data = rpckbd; in rpckbd_probe()
131 strlcpy(serio->name, "RiscPC PS/2 kbd port", sizeof(serio->name)); in rpckbd_probe()
132 strlcpy(serio->phys, "rpckbd/serio0", sizeof(serio->phys)); in rpckbd_probe()
134 platform_set_drvdata(dev, serio); in rpckbd_probe()
135 serio_register_port(serio); in rpckbd_probe()
141 struct serio *serio = platform_get_drvdata(dev); in rpckbd_remove() local
142 struct rpckbd_data *rpckbd = serio->port_data; in rpckbd_remove()
144 serio_unregister_port(serio); in rpckbd_remove()