Lines Matching refs:serial_driver
461 static struct tty_driver *serial_driver; variable
2709 tty_dev = tty_port_register_device(&info->port, serial_driver, info->line, in mgslpc_add_device()
2741 tty_unregister_device(serial_driver, info->line); in mgslpc_remove_device()
2806 serial_driver = tty_alloc_driver(MAX_DEVICE_COUNT, in synclink_cs_init()
2809 if (IS_ERR(serial_driver)) { in synclink_cs_init()
2810 rc = PTR_ERR(serial_driver); in synclink_cs_init()
2815 serial_driver->driver_name = "synclink_cs"; in synclink_cs_init()
2816 serial_driver->name = "ttySLP"; in synclink_cs_init()
2817 serial_driver->major = ttymajor; in synclink_cs_init()
2818 serial_driver->minor_start = 64; in synclink_cs_init()
2819 serial_driver->type = TTY_DRIVER_TYPE_SERIAL; in synclink_cs_init()
2820 serial_driver->subtype = SERIAL_TYPE_NORMAL; in synclink_cs_init()
2821 serial_driver->init_termios = tty_std_termios; in synclink_cs_init()
2822 serial_driver->init_termios.c_cflag = in synclink_cs_init()
2824 tty_set_operations(serial_driver, &mgslpc_ops); in synclink_cs_init()
2826 rc = tty_register_driver(serial_driver); in synclink_cs_init()
2838 serial_driver->major); in synclink_cs_init()
2842 tty_unregister_driver(serial_driver); in synclink_cs_init()
2844 tty_driver_kref_put(serial_driver); in synclink_cs_init()
2852 tty_unregister_driver(serial_driver); in synclink_cs_exit()
2853 tty_driver_kref_put(serial_driver); in synclink_cs_exit()