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()
333 kgdb_nmi_tty_driver = tty_alloc_driver(1, TTY_DRIVER_REAL_RAW); in kgdb_register_nmi_console()
334 if (IS_ERR(kgdb_nmi_tty_driver)) { in kgdb_register_nmi_console()
336 return PTR_ERR(kgdb_nmi_tty_driver); in kgdb_register_nmi_console()
338 kgdb_nmi_tty_driver->driver_name = "ttyNMI"; in kgdb_register_nmi_console()
339 kgdb_nmi_tty_driver->name = "ttyNMI"; in kgdb_register_nmi_console()
340 kgdb_nmi_tty_driver->num = 1; in kgdb_register_nmi_console()
341 kgdb_nmi_tty_driver->type = TTY_DRIVER_TYPE_SERIAL; in kgdb_register_nmi_console()
342 kgdb_nmi_tty_driver->subtype = SERIAL_TYPE_NORMAL; in kgdb_register_nmi_console()
343 kgdb_nmi_tty_driver->init_termios = tty_std_termios; in kgdb_register_nmi_console()
344 tty_termios_encode_baud_rate(&kgdb_nmi_tty_driver->init_termios, in kgdb_register_nmi_console()
346 tty_set_operations(kgdb_nmi_tty_driver, &kgdb_nmi_tty_ops); in kgdb_register_nmi_console()
348 ret = tty_register_driver(kgdb_nmi_tty_driver); in kgdb_register_nmi_console()
358 tty_driver_kref_put(kgdb_nmi_tty_driver); in kgdb_register_nmi_console()
375 tty_unregister_driver(kgdb_nmi_tty_driver); in kgdb_unregister_nmi_console()
376 tty_driver_kref_put(kgdb_nmi_tty_driver); in kgdb_unregister_nmi_console()