Lines Matching refs:serio
76 struct serio *serio; /* serio */ member
139 serio_interrupt(drvdata->serio, c, drvdata->flags); in xps2_interrupt()
161 static int sxps2_write(struct serio *pserio, unsigned char c) in sxps2_write()
188 static int sxps2_open(struct serio *pserio) in sxps2_open()
216 static void sxps2_close(struct serio *pserio) in sxps2_close()
240 struct serio *serio; in xps2_of_probe() local
264 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in xps2_of_probe()
265 if (!drvdata || !serio) { in xps2_of_probe()
272 drvdata->serio = serio; in xps2_of_probe()
304 serio->id.type = SERIO_8042; in xps2_of_probe()
305 serio->write = sxps2_write; in xps2_of_probe()
306 serio->open = sxps2_open; in xps2_of_probe()
307 serio->close = sxps2_close; in xps2_of_probe()
308 serio->port_data = drvdata; in xps2_of_probe()
309 serio->dev.parent = dev; in xps2_of_probe()
310 snprintf(serio->name, sizeof(serio->name), in xps2_of_probe()
312 snprintf(serio->phys, sizeof(serio->phys), in xps2_of_probe()
315 serio_register_port(serio); in xps2_of_probe()
323 kfree(serio); in xps2_of_probe()
342 serio_unregister_port(drvdata->serio); in xps2_of_remove()