Lines Matching refs:tty2
329 tty_ldisc_lock_pair_timeout(struct tty_struct *tty, struct tty_struct *tty2,
334 if (tty < tty2) {
337 ret = __tty_ldisc_lock_nested(tty2, timeout);
343 WARN_ON_ONCE(tty == tty2);
344 if (tty2 && tty != tty2) {
345 ret = __tty_ldisc_lock(tty2, timeout);
349 __tty_ldisc_unlock(tty2);
359 if (tty2)
360 set_bit(TTY_LDISC_HALTED, &tty2->flags);
364 static void tty_ldisc_lock_pair(struct tty_struct *tty, struct tty_struct *tty2)
366 tty_ldisc_lock_pair_timeout(tty, tty2, MAX_SCHEDULE_TIMEOUT);
370 struct tty_struct *tty2)
373 if (tty2)
374 __tty_ldisc_unlock(tty2);