Lines Matching refs:dbc_tty_driver
18 static struct tty_driver *dbc_tty_driver; variable
475 dbc_tty_driver, port->minor, NULL); in xhci_dbc_tty_register_device()
506 tty_unregister_device(dbc_tty_driver, port->minor); in xhci_dbc_tty_unregister_device()
531 if (!dbc_tty_driver) in xhci_dbc_tty_probe()
575 dbc_tty_driver = tty_alloc_driver(64, TTY_DRIVER_REAL_RAW | in dbc_tty_init()
577 if (IS_ERR(dbc_tty_driver)) { in dbc_tty_init()
579 return PTR_ERR(dbc_tty_driver); in dbc_tty_init()
582 dbc_tty_driver->driver_name = "dbc_serial"; in dbc_tty_init()
583 dbc_tty_driver->name = "ttyDBC"; in dbc_tty_init()
585 dbc_tty_driver->type = TTY_DRIVER_TYPE_SERIAL; in dbc_tty_init()
586 dbc_tty_driver->subtype = SERIAL_TYPE_NORMAL; in dbc_tty_init()
587 dbc_tty_driver->init_termios = tty_std_termios; in dbc_tty_init()
588 dbc_tty_driver->init_termios.c_cflag = in dbc_tty_init()
590 dbc_tty_driver->init_termios.c_ispeed = 9600; in dbc_tty_init()
591 dbc_tty_driver->init_termios.c_ospeed = 9600; in dbc_tty_init()
593 tty_set_operations(dbc_tty_driver, &dbc_tty_ops); in dbc_tty_init()
595 ret = tty_register_driver(dbc_tty_driver); in dbc_tty_init()
598 tty_driver_kref_put(dbc_tty_driver); in dbc_tty_init()
607 if (dbc_tty_driver) { in dbc_tty_exit()
608 tty_unregister_driver(dbc_tty_driver); in dbc_tty_exit()
609 tty_driver_kref_put(dbc_tty_driver); in dbc_tty_exit()
610 dbc_tty_driver = NULL; in dbc_tty_exit()