Lines Matching refs:o_tty
1729 struct tty_struct *o_tty = tty->link; in tty_release_checks() local
1731 if (o_tty != tty->driver->other->ttys[idx]) { in tty_release_checks()
1736 if (o_tty->link != tty) { in tty_release_checks()
1737 tty_debug(tty, "bad link = %p\n", o_tty->link); in tty_release_checks()
1767 struct tty_struct *o_tty = NULL; in tty_release() local
1784 o_tty = tty->link; in tty_release()
1797 tty_lock_slave(o_tty); in tty_release()
1825 if (o_tty && o_tty->count <= 1) { in tty_release()
1826 if (waitqueue_active(&o_tty->read_wait)) { in tty_release()
1827 wake_up_poll(&o_tty->read_wait, POLLIN); in tty_release()
1830 if (waitqueue_active(&o_tty->write_wait)) { in tty_release()
1831 wake_up_poll(&o_tty->write_wait, POLLOUT); in tty_release()
1850 if (o_tty) { in tty_release()
1851 if (--o_tty->count < 0) { in tty_release()
1853 __func__, o_tty->count, tty_name(o_tty)); in tty_release()
1854 o_tty->count = 0; in tty_release()
1884 if (o_tty) in tty_release()
1885 session_clear_tty(o_tty->session); in tty_release()
1890 final = !tty->count && !(o_tty && o_tty->count); in tty_release()
1892 tty_unlock_slave(o_tty); in tty_release()