Lines Matching refs:o_tty
1637 struct tty_struct *o_tty = tty->link; in tty_release_checks() local
1639 if (o_tty != tty->driver->other->ttys[idx]) { in tty_release_checks()
1644 if (o_tty->link != tty) { in tty_release_checks()
1645 tty_debug(tty, "bad link = %p\n", o_tty->link); in tty_release_checks()
1734 struct tty_struct *o_tty = NULL; in tty_release() local
1751 o_tty = tty->link; in tty_release()
1764 tty_lock_slave(o_tty); in tty_release()
1792 if (o_tty && o_tty->count <= 1) { in tty_release()
1793 if (waitqueue_active(&o_tty->read_wait)) { in tty_release()
1794 wake_up_poll(&o_tty->read_wait, EPOLLIN); in tty_release()
1797 if (waitqueue_active(&o_tty->write_wait)) { in tty_release()
1798 wake_up_poll(&o_tty->write_wait, EPOLLOUT); in tty_release()
1816 if (o_tty) { in tty_release()
1817 if (--o_tty->count < 0) { in tty_release()
1818 tty_warn(tty, "bad slave count (%d)\n", o_tty->count); in tty_release()
1819 o_tty->count = 0; in tty_release()
1848 if (o_tty) in tty_release()
1849 session_clear_tty(o_tty->session); in tty_release()
1854 final = !tty->count && !(o_tty && o_tty->count); in tty_release()
1856 tty_unlock_slave(o_tty); in tty_release()