Lines Matching refs:serio
81 struct serio *serio; member
131 serio_interrupt(drvdata->serio, byte, rxflags); in sun4i_ps2_interrupt()
142 static int sun4i_ps2_open(struct serio *serio) in sun4i_ps2_open() argument
144 struct sun4i_ps2data *drvdata = serio->port_data; in sun4i_ps2_open()
181 static void sun4i_ps2_close(struct serio *serio) in sun4i_ps2_close() argument
183 struct sun4i_ps2data *drvdata = serio->port_data; in sun4i_ps2_close()
193 static int sun4i_ps2_write(struct serio *serio, unsigned char val) in sun4i_ps2_write() argument
196 struct sun4i_ps2data *drvdata = serio->port_data; in sun4i_ps2_write()
212 struct serio *serio; in sun4i_ps2_probe() local
217 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in sun4i_ps2_probe()
218 if (!drvdata || !serio) { in sun4i_ps2_probe()
253 serio->id.type = SERIO_8042; in sun4i_ps2_probe()
254 serio->write = sun4i_ps2_write; in sun4i_ps2_probe()
255 serio->open = sun4i_ps2_open; in sun4i_ps2_probe()
256 serio->close = sun4i_ps2_close; in sun4i_ps2_probe()
257 serio->port_data = drvdata; in sun4i_ps2_probe()
258 serio->dev.parent = dev; in sun4i_ps2_probe()
259 strlcpy(serio->name, dev_name(dev), sizeof(serio->name)); in sun4i_ps2_probe()
260 strlcpy(serio->phys, dev_name(dev), sizeof(serio->phys)); in sun4i_ps2_probe()
272 drvdata->serio = serio; in sun4i_ps2_probe()
283 serio_register_port(serio); in sun4i_ps2_probe()
295 kfree(serio); in sun4i_ps2_probe()
304 serio_unregister_port(drvdata->serio); in sun4i_ps2_remove()