Lines Matching full:io
21 #include <asm/io.h>
27 struct serio *io; member
42 serio_interrupt(kmi->io, readb(KMIDATA), 0); in amba_kmi_int()
50 static int amba_kmi_write(struct serio *io, unsigned char val) in amba_kmi_write() argument
52 struct amba_kmi_port *kmi = io->port_data; in amba_kmi_write()
64 static int amba_kmi_open(struct serio *io) in amba_kmi_open() argument
66 struct amba_kmi_port *kmi = io->port_data; in amba_kmi_open()
96 static void amba_kmi_close(struct serio *io) in amba_kmi_close() argument
98 struct amba_kmi_port *kmi = io->port_data; in amba_kmi_close()
110 struct serio *io; in amba_kmi_probe() local
118 io = kzalloc(sizeof(*io), GFP_KERNEL); in amba_kmi_probe()
119 if (!kmi || !io) { in amba_kmi_probe()
125 io->id.type = SERIO_8042; in amba_kmi_probe()
126 io->write = amba_kmi_write; in amba_kmi_probe()
127 io->open = amba_kmi_open; in amba_kmi_probe()
128 io->close = amba_kmi_close; in amba_kmi_probe()
129 strscpy(io->name, dev_name(&dev->dev), sizeof(io->name)); in amba_kmi_probe()
130 strscpy(io->phys, dev_name(&dev->dev), sizeof(io->phys)); in amba_kmi_probe()
131 io->port_data = kmi; in amba_kmi_probe()
132 io->dev.parent = &dev->dev; in amba_kmi_probe()
134 kmi->io = io; in amba_kmi_probe()
150 serio_register_port(kmi->io); in amba_kmi_probe()
157 kfree(io); in amba_kmi_probe()
166 serio_unregister_port(kmi->io); in amba_kmi_remove()
178 serio_reconnect(kmi->io); in amba_kmi_resume()