Lines Matching refs:o_tty
1735 struct tty_struct *o_tty = tty->link; in tty_release_checks() local
1737 if (o_tty != tty->driver->other->ttys[idx]) { in tty_release_checks()
1742 if (o_tty->link != tty) { in tty_release_checks()
1773 struct tty_struct *o_tty = NULL; in tty_release() local
1791 o_tty = tty->link; in tty_release()
1807 tty_lock_slave(o_tty); in tty_release()
1835 if (o_tty && o_tty->count <= 1) { in tty_release()
1836 if (waitqueue_active(&o_tty->read_wait)) { in tty_release()
1837 wake_up_poll(&o_tty->read_wait, POLLIN); in tty_release()
1840 if (waitqueue_active(&o_tty->write_wait)) { in tty_release()
1841 wake_up_poll(&o_tty->write_wait, POLLOUT); in tty_release()
1860 if (o_tty) { in tty_release()
1861 if (--o_tty->count < 0) { in tty_release()
1863 __func__, o_tty->count, tty_name(o_tty, buf)); in tty_release()
1864 o_tty->count = 0; in tty_release()
1894 if (o_tty) in tty_release()
1895 session_clear_tty(o_tty->session); in tty_release()
1900 final = !tty->count && !(o_tty && o_tty->count); in tty_release()
1902 tty_unlock_slave(o_tty); in tty_release()