Lines Matching refs:usb_serial_tty_driver
1319 struct tty_driver *usb_serial_tty_driver; variable
1325 usb_serial_tty_driver = tty_alloc_driver(USB_SERIAL_TTY_MINORS, in usb_serial_init()
1327 if (IS_ERR(usb_serial_tty_driver)) in usb_serial_init()
1328 return PTR_ERR(usb_serial_tty_driver); in usb_serial_init()
1337 usb_serial_tty_driver->driver_name = "usbserial"; in usb_serial_init()
1338 usb_serial_tty_driver->name = "ttyUSB"; in usb_serial_init()
1339 usb_serial_tty_driver->major = USB_SERIAL_TTY_MAJOR; in usb_serial_init()
1340 usb_serial_tty_driver->minor_start = 0; in usb_serial_init()
1341 usb_serial_tty_driver->type = TTY_DRIVER_TYPE_SERIAL; in usb_serial_init()
1342 usb_serial_tty_driver->subtype = SERIAL_TYPE_NORMAL; in usb_serial_init()
1343 usb_serial_tty_driver->init_termios = tty_std_termios; in usb_serial_init()
1344 usb_serial_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD in usb_serial_init()
1346 usb_serial_tty_driver->init_termios.c_ispeed = 9600; in usb_serial_init()
1347 usb_serial_tty_driver->init_termios.c_ospeed = 9600; in usb_serial_init()
1348 tty_set_operations(usb_serial_tty_driver, &serial_ops); in usb_serial_init()
1349 result = tty_register_driver(usb_serial_tty_driver); in usb_serial_init()
1365 tty_unregister_driver(usb_serial_tty_driver); in usb_serial_init()
1370 tty_driver_kref_put(usb_serial_tty_driver); in usb_serial_init()
1381 tty_unregister_driver(usb_serial_tty_driver); in usb_serial_exit()
1382 tty_driver_kref_put(usb_serial_tty_driver); in usb_serial_exit()