Lines Matching refs:tty_drv
370 static struct tty_driver *tty_drv; variable
2224 tty_unregister_device(tty_drv, serial->minor); in hso_serial_tty_unregister()
2258 tty_drv, serial->minor, &serial->parent->interface->dev, in hso_serial_common_create()
3242 tty_drv = tty_alloc_driver(HSO_SERIAL_TTY_MINORS, TTY_DRIVER_REAL_RAW | in hso_init()
3244 if (IS_ERR(tty_drv)) in hso_init()
3245 return PTR_ERR(tty_drv); in hso_init()
3248 tty_drv->driver_name = driver_name; in hso_init()
3249 tty_drv->name = tty_filename; in hso_init()
3253 tty_drv->major = tty_major; in hso_init()
3255 tty_drv->minor_start = 0; in hso_init()
3256 tty_drv->type = TTY_DRIVER_TYPE_SERIAL; in hso_init()
3257 tty_drv->subtype = SERIAL_TYPE_NORMAL; in hso_init()
3258 tty_drv->init_termios = tty_std_termios; in hso_init()
3259 hso_init_termios(&tty_drv->init_termios); in hso_init()
3260 tty_set_operations(tty_drv, &hso_serial_ops); in hso_init()
3263 result = tty_register_driver(tty_drv); in hso_init()
3280 tty_unregister_driver(tty_drv); in hso_init()
3282 tty_driver_kref_put(tty_drv); in hso_init()
3290 tty_unregister_driver(tty_drv); in hso_exit()
3293 tty_driver_kref_put(tty_drv); in hso_exit()