Lines Matching refs:ttyprintk_driver
164 static struct tty_driver *ttyprintk_driver; variable
172 ttyprintk_driver = tty_alloc_driver(1, in ttyprintk_init()
176 if (IS_ERR(ttyprintk_driver)) in ttyprintk_init()
177 return PTR_ERR(ttyprintk_driver); in ttyprintk_init()
182 ttyprintk_driver->driver_name = "ttyprintk"; in ttyprintk_init()
183 ttyprintk_driver->name = "ttyprintk"; in ttyprintk_init()
184 ttyprintk_driver->major = TTYAUX_MAJOR; in ttyprintk_init()
185 ttyprintk_driver->minor_start = 3; in ttyprintk_init()
186 ttyprintk_driver->type = TTY_DRIVER_TYPE_CONSOLE; in ttyprintk_init()
187 ttyprintk_driver->init_termios = tty_std_termios; in ttyprintk_init()
188 ttyprintk_driver->init_termios.c_oflag = OPOST | OCRNL | ONOCR | ONLRET; in ttyprintk_init()
189 tty_set_operations(ttyprintk_driver, &ttyprintk_ops); in ttyprintk_init()
190 tty_port_link_device(&tpk_port.port, ttyprintk_driver, 0); in ttyprintk_init()
192 ret = tty_register_driver(ttyprintk_driver); in ttyprintk_init()
201 tty_driver_kref_put(ttyprintk_driver); in ttyprintk_init()
208 tty_unregister_driver(ttyprintk_driver); in ttyprintk_exit()
209 tty_driver_kref_put(ttyprintk_driver); in ttyprintk_exit()