Lines Matching refs:serio
110 struct serio *serio; member
133 struct serio *serio);
148 struct serio *serio)) in i8042_install_filter() argument
169 struct serio *port)) in i8042_remove_filter()
310 static int i8042_kbd_write(struct serio *port, unsigned char c) in i8042_kbd_write()
331 static int i8042_aux_write(struct serio *serio, unsigned char c) in i8042_aux_write() argument
333 struct i8042_port *port = serio->port_data; in i8042_aux_write()
346 static void i8042_port_close(struct serio *serio) in i8042_port_close() argument
352 if (serio == i8042_ports[I8042_AUX_PORT_NO].serio) { in i8042_port_close()
385 static int i8042_start(struct serio *serio) in i8042_start() argument
387 struct i8042_port *port = serio->port_data; in i8042_start()
399 static void i8042_stop(struct serio *serio) in i8042_stop() argument
401 struct i8042_port *port = serio->port_data; in i8042_stop()
412 port->serio = NULL; in i8042_stop()
421 struct serio *serio) in i8042_filter() argument
432 if (i8042_platform_filter && i8042_platform_filter(data, str, serio)) { in i8042_filter()
449 struct serio *serio; in i8042_interrupt() local
518 serio = port->exists ? port->serio : NULL; in i8042_interrupt()
525 filtered = i8042_filter(data, str, serio); in i8042_interrupt()
530 serio_interrupt(serio, data, dfl); in i8042_interrupt()
1126 } else if (i8042_ports[I8042_AUX_PORT_NO].serio) in i8042_controller_resume()
1129 if (i8042_ports[I8042_KBD_PORT_NO].serio) in i8042_controller_resume()
1200 struct serio *serio; in i8042_create_kbd_port() local
1203 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in i8042_create_kbd_port()
1204 if (!serio) in i8042_create_kbd_port()
1207 serio->id.type = i8042_direct ? SERIO_8042 : SERIO_8042_XL; in i8042_create_kbd_port()
1208 serio->write = i8042_dumbkbd ? NULL : i8042_kbd_write; in i8042_create_kbd_port()
1209 serio->start = i8042_start; in i8042_create_kbd_port()
1210 serio->stop = i8042_stop; in i8042_create_kbd_port()
1211 serio->close = i8042_port_close; in i8042_create_kbd_port()
1212 serio->port_data = port; in i8042_create_kbd_port()
1213 serio->dev.parent = &i8042_platform_device->dev; in i8042_create_kbd_port()
1214 strlcpy(serio->name, "i8042 KBD port", sizeof(serio->name)); in i8042_create_kbd_port()
1215 strlcpy(serio->phys, I8042_KBD_PHYS_DESC, sizeof(serio->phys)); in i8042_create_kbd_port()
1217 port->serio = serio; in i8042_create_kbd_port()
1225 struct serio *serio; in i8042_create_aux_port() local
1229 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in i8042_create_aux_port()
1230 if (!serio) in i8042_create_aux_port()
1233 serio->id.type = SERIO_8042; in i8042_create_aux_port()
1234 serio->write = i8042_aux_write; in i8042_create_aux_port()
1235 serio->start = i8042_start; in i8042_create_aux_port()
1236 serio->stop = i8042_stop; in i8042_create_aux_port()
1237 serio->port_data = port; in i8042_create_aux_port()
1238 serio->dev.parent = &i8042_platform_device->dev; in i8042_create_aux_port()
1240 strlcpy(serio->name, "i8042 AUX port", sizeof(serio->name)); in i8042_create_aux_port()
1241 strlcpy(serio->phys, I8042_AUX_PHYS_DESC, sizeof(serio->phys)); in i8042_create_aux_port()
1242 serio->close = i8042_port_close; in i8042_create_aux_port()
1244 snprintf(serio->name, sizeof(serio->name), "i8042 AUX%d port", idx); in i8042_create_aux_port()
1245 snprintf(serio->phys, sizeof(serio->phys), I8042_MUX_PHYS_DESC, idx + 1); in i8042_create_aux_port()
1248 port->serio = serio; in i8042_create_aux_port()
1257 kfree(i8042_ports[I8042_KBD_PORT_NO].serio); in i8042_free_kbd_port()
1258 i8042_ports[I8042_KBD_PORT_NO].serio = NULL; in i8042_free_kbd_port()
1266 kfree(i8042_ports[i].serio); in i8042_free_aux_ports()
1267 i8042_ports[i].serio = NULL; in i8042_free_aux_ports()
1276 if (i8042_ports[i].serio) { in i8042_register_ports()
1278 i8042_ports[i].serio->name, in i8042_register_ports()
1282 serio_register_port(i8042_ports[i].serio); in i8042_register_ports()
1292 if (i8042_ports[i].serio) { in i8042_unregister_ports()
1293 serio_unregister_port(i8042_ports[i].serio); in i8042_unregister_ports()
1294 i8042_ports[i].serio = NULL; in i8042_unregister_ports()
1302 bool i8042_check_port_owner(const struct serio *port) in i8042_check_port_owner()
1307 if (i8042_ports[i].serio == port) in i8042_check_port_owner()