Lines Matching refs:serio
23 struct serio *io;
48 static int altera_ps2_write(struct serio *io, unsigned char val) in altera_ps2_write()
56 static int altera_ps2_open(struct serio *io) in altera_ps2_open()
68 static void altera_ps2_close(struct serio *io) in altera_ps2_close()
81 struct serio *serio; in altera_ps2_probe() local
103 serio = kzalloc(sizeof(*serio), GFP_KERNEL); in altera_ps2_probe()
104 if (!serio) in altera_ps2_probe()
107 serio->id.type = SERIO_8042; in altera_ps2_probe()
108 serio->write = altera_ps2_write; in altera_ps2_probe()
109 serio->open = altera_ps2_open; in altera_ps2_probe()
110 serio->close = altera_ps2_close; in altera_ps2_probe()
111 strscpy(serio->name, dev_name(&pdev->dev), sizeof(serio->name)); in altera_ps2_probe()
112 strscpy(serio->phys, dev_name(&pdev->dev), sizeof(serio->phys)); in altera_ps2_probe()
113 serio->port_data = ps2if; in altera_ps2_probe()
114 serio->dev.parent = &pdev->dev; in altera_ps2_probe()
115 ps2if->io = serio; in altera_ps2_probe()