Lines Matching refs:pty_slave_driver
531 struct tty_driver *pty_driver, *pty_slave_driver; in legacy_pty_init() local
543 pty_slave_driver = tty_alloc_driver(legacy_count, in legacy_pty_init()
547 if (IS_ERR(pty_slave_driver)) in legacy_pty_init()
563 pty_driver->other = pty_slave_driver; in legacy_pty_init()
566 pty_slave_driver->driver_name = "pty_slave"; in legacy_pty_init()
567 pty_slave_driver->name = "ttyp"; in legacy_pty_init()
568 pty_slave_driver->major = PTY_SLAVE_MAJOR; in legacy_pty_init()
569 pty_slave_driver->minor_start = 0; in legacy_pty_init()
570 pty_slave_driver->type = TTY_DRIVER_TYPE_PTY; in legacy_pty_init()
571 pty_slave_driver->subtype = PTY_TYPE_SLAVE; in legacy_pty_init()
572 pty_slave_driver->init_termios = tty_std_termios; in legacy_pty_init()
573 pty_slave_driver->init_termios.c_cflag = B38400 | CS8 | CREAD; in legacy_pty_init()
574 pty_slave_driver->init_termios.c_ispeed = 38400; in legacy_pty_init()
575 pty_slave_driver->init_termios.c_ospeed = 38400; in legacy_pty_init()
576 pty_slave_driver->other = pty_driver; in legacy_pty_init()
577 tty_set_operations(pty_slave_driver, &slave_pty_ops_bsd); in legacy_pty_init()
581 if (tty_register_driver(pty_slave_driver)) in legacy_pty_init()