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