Lines Matching refs:ptm_driver
31 static struct tty_driver *ptm_driver; variable
62 if (tty->driver == ptm_driver) { in pty_close()
758 tty = tty_init_dev(ptm_driver, index); in ptmx_open()
795 retval = ptm_driver->ops->open(tty, filp); in ptmx_open()
817 ptm_driver = tty_alloc_driver(NR_UNIX98_PTY_MAX, in unix98_pty_init()
823 if (IS_ERR(ptm_driver)) in unix98_pty_init()
834 ptm_driver->driver_name = "pty_master"; in unix98_pty_init()
835 ptm_driver->name = "ptm"; in unix98_pty_init()
836 ptm_driver->major = UNIX98_PTY_MASTER_MAJOR; in unix98_pty_init()
837 ptm_driver->minor_start = 0; in unix98_pty_init()
838 ptm_driver->type = TTY_DRIVER_TYPE_PTY; in unix98_pty_init()
839 ptm_driver->subtype = PTY_TYPE_MASTER; in unix98_pty_init()
840 ptm_driver->init_termios = tty_std_termios; in unix98_pty_init()
841 ptm_driver->init_termios.c_iflag = 0; in unix98_pty_init()
842 ptm_driver->init_termios.c_oflag = 0; in unix98_pty_init()
843 ptm_driver->init_termios.c_cflag = B38400 | CS8 | CREAD; in unix98_pty_init()
844 ptm_driver->init_termios.c_lflag = 0; in unix98_pty_init()
845 ptm_driver->init_termios.c_ispeed = 38400; in unix98_pty_init()
846 ptm_driver->init_termios.c_ospeed = 38400; in unix98_pty_init()
847 ptm_driver->other = pts_driver; in unix98_pty_init()
848 tty_set_operations(ptm_driver, &ptm_unix98_ops); in unix98_pty_init()
860 pts_driver->other = ptm_driver; in unix98_pty_init()
863 if (tty_register_driver(ptm_driver)) in unix98_pty_init()