Lines Matching refs:tty_drv
87 static struct tty_driver *tty_drv; variable
813 tty_unregister_device(tty_drv, ifx_dev->minor); in ifx_spi_free_port()
842 ifx_dev->tty_dev = tty_port_register_device(pport, tty_drv, in ifx_spi_create_port()
1382 tty_unregister_driver(tty_drv); in ifx_spi_exit()
1383 put_tty_driver(tty_drv); in ifx_spi_exit()
1400 tty_drv = alloc_tty_driver(1); in ifx_spi_init()
1401 if (!tty_drv) { in ifx_spi_init()
1406 tty_drv->driver_name = DRVNAME; in ifx_spi_init()
1407 tty_drv->name = TTYNAME; in ifx_spi_init()
1408 tty_drv->minor_start = IFX_SPI_TTY_ID; in ifx_spi_init()
1409 tty_drv->type = TTY_DRIVER_TYPE_SERIAL; in ifx_spi_init()
1410 tty_drv->subtype = SERIAL_TYPE_NORMAL; in ifx_spi_init()
1411 tty_drv->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; in ifx_spi_init()
1412 tty_drv->init_termios = tty_std_termios; in ifx_spi_init()
1414 tty_set_operations(tty_drv, &ifx_spi_serial_ops); in ifx_spi_init()
1416 result = tty_register_driver(tty_drv); in ifx_spi_init()
1441 tty_unregister_driver(tty_drv); in ifx_spi_init()
1443 put_tty_driver(tty_drv); in ifx_spi_init()