Lines Matching refs:vcc_tty_driver
64 static struct tty_driver *vcc_tty_driver; variable
580 if (!vcc_tty_driver) { in vcc_probe()
613 dev = tty_register_device(vcc_tty_driver, port->index, &vdev->dev); in vcc_probe()
659 tty_unregister_device(vcc_tty_driver, port->index); in vcc_probe()
705 tty_unregister_device(vcc_tty_driver, port->index); in vcc_remove()
1077 vcc_tty_driver = tty_alloc_driver(VCC_MAX_PORTS, VCC_TTY_FLAGS); in vcc_tty_init()
1078 if (IS_ERR(vcc_tty_driver)) { in vcc_tty_init()
1080 return PTR_ERR(vcc_tty_driver); in vcc_tty_init()
1083 vcc_tty_driver->driver_name = vcc_driver_name; in vcc_tty_init()
1084 vcc_tty_driver->name = vcc_device_node; in vcc_tty_init()
1086 vcc_tty_driver->minor_start = VCC_MINOR_START; in vcc_tty_init()
1087 vcc_tty_driver->type = TTY_DRIVER_TYPE_SYSTEM; in vcc_tty_init()
1088 vcc_tty_driver->init_termios = vcc_tty_termios; in vcc_tty_init()
1090 tty_set_operations(vcc_tty_driver, &vcc_ops); in vcc_tty_init()
1092 rv = tty_register_driver(vcc_tty_driver); in vcc_tty_init()
1095 put_tty_driver(vcc_tty_driver); in vcc_tty_init()
1096 vcc_tty_driver = NULL; in vcc_tty_init()
1107 tty_unregister_driver(vcc_tty_driver); in vcc_tty_exit()
1108 put_tty_driver(vcc_tty_driver); in vcc_tty_exit()
1111 vcc_tty_driver = NULL; in vcc_tty_exit()