Home
last modified time | relevance | path

Searched refs:o_tty (Results 1 – 4 of 4) sorted by relevance

/drivers/tty/
Dpty.c362 struct tty_struct *o_tty; in pty_common_install() local
379 o_tty = alloc_tty_struct(driver->other, idx); in pty_common_install()
380 if (!o_tty) in pty_common_install()
383 tty_set_lock_subclass(o_tty); in pty_common_install()
384 lockdep_set_subclass(&o_tty->termios_rwsem, TTY_LOCK_SLAVE); in pty_common_install()
390 tty_init_termios(o_tty); in pty_common_install()
392 driver->other->ttys[idx] = o_tty; in pty_common_install()
397 memset(&o_tty->termios_locked, 0, sizeof(tty->termios_locked)); in pty_common_install()
398 o_tty->termios = driver->other->init_termios; in pty_common_install()
406 tty->link = o_tty; in pty_common_install()
[all …]
Dtty_ldisc.c738 int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty) in tty_ldisc_setup() argument
745 if (o_tty) { in tty_ldisc_setup()
750 retval = tty_ldisc_open(o_tty, o_tty->ldisc); in tty_ldisc_setup()
768 struct tty_struct *o_tty = tty->link; in tty_ldisc_release() local
775 tty_ldisc_lock_pair(tty, o_tty); in tty_ldisc_release()
777 if (o_tty) in tty_ldisc_release()
778 tty_ldisc_kill(o_tty); in tty_ldisc_release()
779 tty_ldisc_unlock_pair(tty, o_tty); in tty_ldisc_release()
Dtty_io.c1630 struct tty_struct *o_tty = tty->link; in tty_release_checks() local
1632 if (o_tty != tty->driver->other->ttys[idx]) { in tty_release_checks()
1637 if (o_tty->link != tty) { in tty_release_checks()
1638 tty_debug(tty, "bad link = %p\n", o_tty->link); in tty_release_checks()
1726 struct tty_struct *o_tty = NULL; in tty_release() local
1743 o_tty = tty->link; in tty_release()
1756 tty_lock_slave(o_tty); in tty_release()
1784 if (o_tty && o_tty->count <= 1) { in tty_release()
1785 if (waitqueue_active(&o_tty->read_wait)) { in tty_release()
1786 wake_up_poll(&o_tty->read_wait, EPOLLIN); in tty_release()
[all …]
Dtty.h93 int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty);