Searched refs:o_tty (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/tty/ |
| H A D | pty.c | 358 struct tty_struct *o_tty; in pty_common_install() local 375 o_tty = alloc_tty_struct(driver->other, idx); in pty_common_install() 376 if (!o_tty) in pty_common_install() 379 tty_set_lock_subclass(o_tty); in pty_common_install() 380 lockdep_set_subclass(&o_tty->termios_rwsem, TTY_LOCK_SLAVE); in pty_common_install() 386 tty_init_termios(o_tty); in pty_common_install() 388 driver->other->ttys[idx] = o_tty; in pty_common_install() 393 memset(&o_tty->termios_locked, 0, sizeof(tty->termios_locked)); in pty_common_install() 394 o_tty->termios = driver->other->init_termios; in pty_common_install() 402 tty->link = o_tty; in pty_common_install() [all …]
|
| H A D | tty_ldisc.c | 743 int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty) in tty_ldisc_setup() argument 750 if (o_tty) { in tty_ldisc_setup() 755 retval = tty_ldisc_open(o_tty, o_tty->ldisc); in tty_ldisc_setup() 773 struct tty_struct *o_tty = tty->link; in tty_ldisc_release() local 780 tty_ldisc_lock_pair(tty, o_tty); in tty_ldisc_release() 782 if (o_tty) in tty_ldisc_release() 783 tty_ldisc_kill(o_tty); in tty_ldisc_release() 784 tty_ldisc_unlock_pair(tty, o_tty); in tty_ldisc_release()
|
| H A D | tty_io.c | 1622 struct tty_struct *o_tty = tty->link; in tty_release_checks() local 1624 if (o_tty != tty->driver->other->ttys[idx]) { in tty_release_checks() 1629 if (o_tty->link != tty) { in tty_release_checks() 1630 tty_debug(tty, "bad link = %p\n", o_tty->link); in tty_release_checks() 1718 struct tty_struct *o_tty = NULL; in tty_release() local 1735 o_tty = tty->link; in tty_release() 1748 tty_lock_slave(o_tty); in tty_release() 1776 if (o_tty && o_tty->count <= 1) { in tty_release() 1777 if (waitqueue_active(&o_tty->read_wait)) { in tty_release() 1778 wake_up_poll(&o_tty->read_wait, EPOLLIN); in tty_release() [all …]
|
| H A D | tty.h | 98 int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty);
|