Lines Matching refs:acm_tty_driver
48 static struct tty_driver *acm_tty_driver; variable
1483 tty_dev = tty_port_register_device(&acm->port, acm_tty_driver, minor, in acm_probe()
1569 tty_unregister_device(acm_tty_driver, acm->minor); in acm_disconnect()
2039 acm_tty_driver = tty_alloc_driver(ACM_TTY_MINORS, TTY_DRIVER_REAL_RAW | in acm_init()
2041 if (IS_ERR(acm_tty_driver)) in acm_init()
2042 return PTR_ERR(acm_tty_driver); in acm_init()
2043 acm_tty_driver->driver_name = "acm", in acm_init()
2044 acm_tty_driver->name = "ttyACM", in acm_init()
2045 acm_tty_driver->major = ACM_TTY_MAJOR, in acm_init()
2046 acm_tty_driver->minor_start = 0, in acm_init()
2047 acm_tty_driver->type = TTY_DRIVER_TYPE_SERIAL, in acm_init()
2048 acm_tty_driver->subtype = SERIAL_TYPE_NORMAL, in acm_init()
2049 acm_tty_driver->init_termios = tty_std_termios; in acm_init()
2050 acm_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | in acm_init()
2052 tty_set_operations(acm_tty_driver, &acm_ops); in acm_init()
2054 retval = tty_register_driver(acm_tty_driver); in acm_init()
2056 tty_driver_kref_put(acm_tty_driver); in acm_init()
2062 tty_unregister_driver(acm_tty_driver); in acm_init()
2063 tty_driver_kref_put(acm_tty_driver); in acm_init()
2075 tty_unregister_driver(acm_tty_driver); in acm_exit()
2076 tty_driver_kref_put(acm_tty_driver); in acm_exit()