Lines Matching refs:o_tty
1649 struct tty_struct *o_tty = tty->link; in tty_release_checks() local
1651 if (o_tty != tty->driver->other->ttys[idx]) { in tty_release_checks()
1656 if (o_tty->link != tty) { in tty_release_checks()
1657 tty_debug(tty, "bad link = %p\n", o_tty->link); in tty_release_checks()
1746 struct tty_struct *o_tty = NULL; in tty_release() local
1763 o_tty = tty->link; in tty_release()
1776 tty_lock_slave(o_tty); in tty_release()
1804 if (o_tty && o_tty->count <= 1) { in tty_release()
1805 if (waitqueue_active(&o_tty->read_wait)) { in tty_release()
1806 wake_up_poll(&o_tty->read_wait, EPOLLIN); in tty_release()
1809 if (waitqueue_active(&o_tty->write_wait)) { in tty_release()
1810 wake_up_poll(&o_tty->write_wait, EPOLLOUT); in tty_release()
1828 if (o_tty) { in tty_release()
1829 if (--o_tty->count < 0) { in tty_release()
1830 tty_warn(tty, "bad slave count (%d)\n", o_tty->count); in tty_release()
1831 o_tty->count = 0; in tty_release()
1860 if (o_tty) in tty_release()
1861 session_clear_tty(o_tty->ctrl.session); in tty_release()
1866 final = !tty->count && !(o_tty && o_tty->count); in tty_release()
1868 tty_unlock_slave(o_tty); in tty_release()