Lines Matching refs:ntty_driver
351 static struct tty_driver *ntty_driver; variable
1386 tty_dev = tty_port_register_device(&port->port, ntty_driver, in nozomi_card_init()
1401 tty_unregister_device(ntty_driver, dc->index_start + i); in nozomi_card_init()
1435 tty_unregister_device(ntty_driver, dc->index_start + i); in tty_exit()
1808 ntty_driver = tty_alloc_driver(NTTY_TTY_MAXMINORS, TTY_DRIVER_REAL_RAW | in nozomi_init()
1810 if (IS_ERR(ntty_driver)) in nozomi_init()
1811 return PTR_ERR(ntty_driver); in nozomi_init()
1813 ntty_driver->driver_name = NOZOMI_NAME_TTY; in nozomi_init()
1814 ntty_driver->name = "noz"; in nozomi_init()
1815 ntty_driver->major = 0; in nozomi_init()
1816 ntty_driver->type = TTY_DRIVER_TYPE_SERIAL; in nozomi_init()
1817 ntty_driver->subtype = SERIAL_TYPE_NORMAL; in nozomi_init()
1818 ntty_driver->init_termios = tty_std_termios; in nozomi_init()
1819 ntty_driver->init_termios.c_cflag = B115200 | CS8 | CREAD | \ in nozomi_init()
1821 ntty_driver->init_termios.c_ispeed = 115200; in nozomi_init()
1822 ntty_driver->init_termios.c_ospeed = 115200; in nozomi_init()
1823 tty_set_operations(ntty_driver, &tty_ops); in nozomi_init()
1825 ret = tty_register_driver(ntty_driver); in nozomi_init()
1839 tty_unregister_driver(ntty_driver); in nozomi_init()
1841 tty_driver_kref_put(ntty_driver); in nozomi_init()
1848 tty_unregister_driver(ntty_driver); in nozomi_exit()
1849 tty_driver_kref_put(ntty_driver); in nozomi_exit()