Lines Matching refs:kgdb_nmi_tty_driver
66 static struct tty_driver *kgdb_nmi_tty_driver; variable
71 return kgdb_nmi_tty_driver; in kgdb_nmi_console_device()
334 kgdb_nmi_tty_driver = tty_alloc_driver(1, TTY_DRIVER_REAL_RAW); in kgdb_register_nmi_console()
335 if (IS_ERR(kgdb_nmi_tty_driver)) { in kgdb_register_nmi_console()
337 return PTR_ERR(kgdb_nmi_tty_driver); in kgdb_register_nmi_console()
339 kgdb_nmi_tty_driver->driver_name = "ttyNMI"; in kgdb_register_nmi_console()
340 kgdb_nmi_tty_driver->name = "ttyNMI"; in kgdb_register_nmi_console()
341 kgdb_nmi_tty_driver->num = 1; in kgdb_register_nmi_console()
342 kgdb_nmi_tty_driver->type = TTY_DRIVER_TYPE_SERIAL; in kgdb_register_nmi_console()
343 kgdb_nmi_tty_driver->subtype = SERIAL_TYPE_NORMAL; in kgdb_register_nmi_console()
344 kgdb_nmi_tty_driver->init_termios = tty_std_termios; in kgdb_register_nmi_console()
345 tty_termios_encode_baud_rate(&kgdb_nmi_tty_driver->init_termios, in kgdb_register_nmi_console()
347 tty_set_operations(kgdb_nmi_tty_driver, &kgdb_nmi_tty_ops); in kgdb_register_nmi_console()
349 ret = tty_register_driver(kgdb_nmi_tty_driver); in kgdb_register_nmi_console()
359 tty_driver_kref_put(kgdb_nmi_tty_driver); in kgdb_register_nmi_console()
376 tty_unregister_driver(kgdb_nmi_tty_driver); in kgdb_unregister_nmi_console()
377 tty_driver_kref_put(kgdb_nmi_tty_driver); in kgdb_unregister_nmi_console()