Lines Matching refs:rpmsg_tty_driver
27 static struct tty_driver *rpmsg_tty_driver; variable
185 tty_dev = tty_port_register_device(&cport->port, rpmsg_tty_driver, in rpmsg_tty_probe()
212 tty_unregister_device(rpmsg_tty_driver, cport->id); in rpmsg_tty_remove()
235 rpmsg_tty_driver = tty_alloc_driver(MAX_TTY_RPMSG, TTY_DRIVER_REAL_RAW | in rpmsg_tty_init()
237 if (IS_ERR(rpmsg_tty_driver)) in rpmsg_tty_init()
238 return PTR_ERR(rpmsg_tty_driver); in rpmsg_tty_init()
240 rpmsg_tty_driver->driver_name = "rpmsg_tty"; in rpmsg_tty_init()
241 rpmsg_tty_driver->name = RPMSG_TTY_NAME; in rpmsg_tty_init()
242 rpmsg_tty_driver->major = 0; in rpmsg_tty_init()
243 rpmsg_tty_driver->type = TTY_DRIVER_TYPE_CONSOLE; in rpmsg_tty_init()
246 rpmsg_tty_driver->init_termios = tty_std_termios; in rpmsg_tty_init()
247 rpmsg_tty_driver->init_termios.c_lflag &= ~(ECHO | ICANON); in rpmsg_tty_init()
248 rpmsg_tty_driver->init_termios.c_oflag &= ~(OPOST | ONLCR); in rpmsg_tty_init()
250 tty_set_operations(rpmsg_tty_driver, &rpmsg_tty_ops); in rpmsg_tty_init()
252 ret = tty_register_driver(rpmsg_tty_driver); in rpmsg_tty_init()
267 tty_unregister_driver(rpmsg_tty_driver); in rpmsg_tty_init()
270 tty_driver_kref_put(rpmsg_tty_driver); in rpmsg_tty_init()
278 tty_unregister_driver(rpmsg_tty_driver); in rpmsg_tty_exit()
279 tty_driver_kref_put(rpmsg_tty_driver); in rpmsg_tty_exit()