Lines Matching refs:o_tty
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()
1781 if (waitqueue_active(&o_tty->write_wait)) { in tty_release()
1782 wake_up_poll(&o_tty->write_wait, EPOLLOUT); in tty_release()
1800 if (o_tty) { in tty_release()
1801 if (--o_tty->count < 0) { in tty_release()
1802 tty_warn(tty, "bad slave count (%d)\n", o_tty->count); in tty_release()
1803 o_tty->count = 0; in tty_release()
1832 if (o_tty) in tty_release()
1833 session_clear_tty(o_tty->ctrl.session); in tty_release()
1838 final = !tty->count && !(o_tty && o_tty->count); in tty_release()
1840 tty_unlock_slave(o_tty); in tty_release()