Lines Matching refs:tty2
355 tty_ldisc_lock_pair_timeout(struct tty_struct *tty, struct tty_struct *tty2,
360 if (tty < tty2) {
363 ret = __tty_ldisc_lock_nested(tty2, timeout);
369 WARN_ON_ONCE(tty == tty2);
370 if (tty2 && tty != tty2) {
371 ret = __tty_ldisc_lock(tty2, timeout);
375 __tty_ldisc_unlock(tty2);
385 if (tty2)
386 set_bit(TTY_LDISC_HALTED, &tty2->flags);
390 static void tty_ldisc_lock_pair(struct tty_struct *tty, struct tty_struct *tty2)
392 tty_ldisc_lock_pair_timeout(tty, tty2, MAX_SCHEDULE_TIMEOUT);
396 struct tty_struct *tty2)
399 if (tty2)
400 __tty_ldisc_unlock(tty2);