Lines Matching refs:serio
52 static struct serio *maceps2_port[2];
55 static int maceps2_write(struct serio *dev, unsigned char val) in maceps2_write()
73 struct serio *dev = dev_id; in maceps2_interrupt()
85 static int maceps2_open(struct serio *dev) in maceps2_open()
106 static void maceps2_close(struct serio *dev) in maceps2_close()
116 static struct serio *maceps2_allocate_port(int idx) in maceps2_allocate_port()
118 struct serio *serio; in maceps2_allocate_port() local
120 serio = kzalloc(sizeof(*serio), GFP_KERNEL); in maceps2_allocate_port()
121 if (serio) { in maceps2_allocate_port()
122 serio->id.type = SERIO_8042; in maceps2_allocate_port()
123 serio->write = maceps2_write; in maceps2_allocate_port()
124 serio->open = maceps2_open; in maceps2_allocate_port()
125 serio->close = maceps2_close; in maceps2_allocate_port()
126 snprintf(serio->name, sizeof(serio->name), "MACE PS/2 port%d", idx); in maceps2_allocate_port()
127 snprintf(serio->phys, sizeof(serio->phys), "mace/serio%d", idx); in maceps2_allocate_port()
128 serio->port_data = &port_data[idx]; in maceps2_allocate_port()
129 serio->dev.parent = &maceps2_device->dev; in maceps2_allocate_port()
132 return serio; in maceps2_allocate_port()