Lines Matching refs:pty_driver

43 static struct tty_driver pty_driver, pty_slave_driver;  variable
368 memset(&pty_driver, 0, sizeof(struct tty_driver)); in pty_init()
369 pty_driver.magic = TTY_DRIVER_MAGIC; in pty_init()
370 pty_driver.driver_name = "pty_master"; in pty_init()
372 pty_driver.name = "pty/m%d"; in pty_init()
374 pty_driver.name = "pty"; in pty_init()
376 pty_driver.major = PTY_MASTER_MAJOR; in pty_init()
377 pty_driver.minor_start = 0; in pty_init()
378 pty_driver.num = NR_PTYS; in pty_init()
379 pty_driver.type = TTY_DRIVER_TYPE_PTY; in pty_init()
380 pty_driver.subtype = PTY_TYPE_MASTER; in pty_init()
381 pty_driver.init_termios = tty_std_termios; in pty_init()
382 pty_driver.init_termios.c_iflag = 0; in pty_init()
383 pty_driver.init_termios.c_oflag = 0; in pty_init()
384 pty_driver.init_termios.c_cflag = B38400 | CS8 | CREAD; in pty_init()
385 pty_driver.init_termios.c_lflag = 0; in pty_init()
386 pty_driver.flags = TTY_DRIVER_RESET_TERMIOS | TTY_DRIVER_REAL_RAW; in pty_init()
387 pty_driver.refcount = &pty_refcount; in pty_init()
388 pty_driver.table = pty_table; in pty_init()
389 pty_driver.termios = pty_termios; in pty_init()
390 pty_driver.termios_locked = pty_termios_locked; in pty_init()
391 pty_driver.driver_state = pty_state; in pty_init()
392 pty_driver.other = &pty_slave_driver; in pty_init()
394 pty_driver.open = pty_open; in pty_init()
395 pty_driver.close = pty_close; in pty_init()
396 pty_driver.write = pty_write; in pty_init()
397 pty_driver.write_room = pty_write_room; in pty_init()
398 pty_driver.flush_buffer = pty_flush_buffer; in pty_init()
399 pty_driver.chars_in_buffer = pty_chars_in_buffer; in pty_init()
400 pty_driver.unthrottle = pty_unthrottle; in pty_init()
401 pty_driver.set_termios = pty_set_termios; in pty_init()
403 pty_slave_driver = pty_driver; in pty_init()
424 pty_slave_driver.other = &pty_driver; in pty_init()
426 if (tty_register_driver(&pty_driver)) in pty_init()
436 pty_driver.ioctl = pty_bsd_ioctl; in pty_init()
445 ptm_driver[i] = pty_driver; in pty_init()