Lines Matching refs:serio
90 struct serio *serio; member
234 static int i8042_kbd_write(struct serio *port, unsigned char c) in i8042_kbd_write()
255 static int i8042_aux_write(struct serio *serio, unsigned char c) in i8042_aux_write() argument
257 struct i8042_port *port = serio->port_data; in i8042_aux_write()
269 static int i8042_start(struct serio *serio) in i8042_start() argument
271 struct i8042_port *port = serio->port_data; in i8042_start()
283 static void i8042_stop(struct serio *serio) in i8042_stop() argument
285 struct i8042_port *port = serio->port_data; in i8042_stop()
296 port->serio = NULL; in i8042_stop()
386 serio_interrupt(port->serio, data, dfl); in i8042_interrupt()
974 } else if (i8042_ports[I8042_AUX_PORT_NO].serio) in i8042_resume()
977 if (i8042_ports[I8042_KBD_PORT_NO].serio) in i8042_resume()
1000 struct serio *serio; in i8042_create_kbd_port() local
1003 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in i8042_create_kbd_port()
1004 if (!serio) in i8042_create_kbd_port()
1007 serio->id.type = i8042_direct ? SERIO_8042 : SERIO_8042_XL; in i8042_create_kbd_port()
1008 serio->write = i8042_dumbkbd ? NULL : i8042_kbd_write; in i8042_create_kbd_port()
1009 serio->start = i8042_start; in i8042_create_kbd_port()
1010 serio->stop = i8042_stop; in i8042_create_kbd_port()
1011 serio->port_data = port; in i8042_create_kbd_port()
1012 serio->dev.parent = &i8042_platform_device->dev; in i8042_create_kbd_port()
1013 strlcpy(serio->name, "i8042 KBD port", sizeof(serio->name)); in i8042_create_kbd_port()
1014 strlcpy(serio->phys, I8042_KBD_PHYS_DESC, sizeof(serio->phys)); in i8042_create_kbd_port()
1016 port->serio = serio; in i8042_create_kbd_port()
1024 struct serio *serio; in i8042_create_aux_port() local
1028 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in i8042_create_aux_port()
1029 if (!serio) in i8042_create_aux_port()
1032 serio->id.type = SERIO_8042; in i8042_create_aux_port()
1033 serio->write = i8042_aux_write; in i8042_create_aux_port()
1034 serio->start = i8042_start; in i8042_create_aux_port()
1035 serio->stop = i8042_stop; in i8042_create_aux_port()
1036 serio->port_data = port; in i8042_create_aux_port()
1037 serio->dev.parent = &i8042_platform_device->dev; in i8042_create_aux_port()
1039 strlcpy(serio->name, "i8042 AUX port", sizeof(serio->name)); in i8042_create_aux_port()
1040 strlcpy(serio->phys, I8042_AUX_PHYS_DESC, sizeof(serio->phys)); in i8042_create_aux_port()
1042 snprintf(serio->name, sizeof(serio->name), "i8042 AUX%d port", idx); in i8042_create_aux_port()
1043 snprintf(serio->phys, sizeof(serio->phys), I8042_MUX_PHYS_DESC, idx + 1); in i8042_create_aux_port()
1046 port->serio = serio; in i8042_create_aux_port()
1055 kfree(i8042_ports[I8042_KBD_PORT_NO].serio); in i8042_free_kbd_port()
1056 i8042_ports[I8042_KBD_PORT_NO].serio = NULL; in i8042_free_kbd_port()
1064 kfree(i8042_ports[i].serio); in i8042_free_aux_ports()
1065 i8042_ports[i].serio = NULL; in i8042_free_aux_ports()
1074 if (i8042_ports[i].serio) { in i8042_register_ports()
1076 i8042_ports[i].serio->name, in i8042_register_ports()
1080 serio_register_port(i8042_ports[i].serio); in i8042_register_ports()
1090 if (i8042_ports[i].serio) { in i8042_unregister_ports()
1091 serio_unregister_port(i8042_ports[i].serio); in i8042_unregister_ports()
1092 i8042_ports[i].serio = NULL; in i8042_unregister_ports()