Lines Matching refs:serio
41 struct serio *io;
46 static int pcips2_write(struct serio *io, unsigned char val) in pcips2_write()
102 static int pcips2_open(struct serio *io) in pcips2_open()
120 static void pcips2_close(struct serio *io) in pcips2_close()
132 struct serio *serio; in pcips2_probe() local
144 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in pcips2_probe()
145 if (!ps2if || !serio) { in pcips2_probe()
151 serio->id.type = SERIO_8042; in pcips2_probe()
152 serio->write = pcips2_write; in pcips2_probe()
153 serio->open = pcips2_open; in pcips2_probe()
154 serio->close = pcips2_close; in pcips2_probe()
155 strlcpy(serio->name, pci_name(dev), sizeof(serio->name)); in pcips2_probe()
156 strlcpy(serio->phys, dev_name(&dev->dev), sizeof(serio->phys)); in pcips2_probe()
157 serio->port_data = ps2if; in pcips2_probe()
158 serio->dev.parent = &dev->dev; in pcips2_probe()
159 ps2if->io = serio; in pcips2_probe()
170 kfree(serio); in pcips2_probe()