Lines Matching refs:serial_driver
498 static struct tty_driver *serial_driver; variable
3897 if (serial_driver) { in synclinkmp_cleanup()
3898 rc = tty_unregister_driver(serial_driver); in synclinkmp_cleanup()
3902 put_tty_driver(serial_driver); in synclinkmp_cleanup()
3953 serial_driver = alloc_tty_driver(128); in synclinkmp_init()
3954 if (!serial_driver) { in synclinkmp_init()
3961 serial_driver->driver_name = "synclinkmp"; in synclinkmp_init()
3962 serial_driver->name = "ttySLM"; in synclinkmp_init()
3963 serial_driver->major = ttymajor; in synclinkmp_init()
3964 serial_driver->minor_start = 64; in synclinkmp_init()
3965 serial_driver->type = TTY_DRIVER_TYPE_SERIAL; in synclinkmp_init()
3966 serial_driver->subtype = SERIAL_TYPE_NORMAL; in synclinkmp_init()
3967 serial_driver->init_termios = tty_std_termios; in synclinkmp_init()
3968 serial_driver->init_termios.c_cflag = in synclinkmp_init()
3970 serial_driver->init_termios.c_ispeed = 9600; in synclinkmp_init()
3971 serial_driver->init_termios.c_ospeed = 9600; in synclinkmp_init()
3972 serial_driver->flags = TTY_DRIVER_REAL_RAW; in synclinkmp_init()
3973 tty_set_operations(serial_driver, &ops); in synclinkmp_init()
3974 if ((rc = tty_register_driver(serial_driver)) < 0) { in synclinkmp_init()
3977 put_tty_driver(serial_driver); in synclinkmp_init()
3978 serial_driver = NULL; in synclinkmp_init()
3984 serial_driver->major); in synclinkmp_init()