Home
last modified time | relevance | path

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

/linux-6.15/drivers/tty/
H A Dpty.c362 struct tty_struct *o_tty; in pty_common_install() local
380 if (!o_tty) in pty_common_install()
383 tty_set_lock_subclass(o_tty); 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()
406 tty->link = o_tty; in pty_common_install()
407 o_tty->link = tty; in pty_common_install()
412 o_tty->port = ports[0]; in pty_common_install()
414 o_tty->port->itty = o_tty; in pty_common_install()
416 tty_buffer_set_lock_subclass(o_tty->port); in pty_common_install()
[all …]
H A Dtty_ldisc.c743 int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty) in tty_ldisc_setup() argument
750 if (o_tty) { in tty_ldisc_setup()
755 retval = tty_ldisc_open(o_tty, o_tty->ldisc); in tty_ldisc_setup()
773 struct tty_struct *o_tty = tty->link; in tty_ldisc_release() local
780 tty_ldisc_lock_pair(tty, o_tty); in tty_ldisc_release()
782 if (o_tty) in tty_ldisc_release()
783 tty_ldisc_kill(o_tty); in tty_ldisc_release()
784 tty_ldisc_unlock_pair(tty, o_tty); in tty_ldisc_release()
H A Dtty_io.c1638 if (o_tty->link != tty) { in tty_release_checks()
1727 struct tty_struct *o_tty = NULL; in tty_release() local
1744 o_tty = tty->link; in tty_release()
1757 tty_lock_slave(o_tty); in tty_release()
1785 if (o_tty && o_tty->count <= 1) { in tty_release()
1809 if (o_tty) { in tty_release()
1810 if (--o_tty->count < 0) { in tty_release()
1812 o_tty->count = 0; in tty_release()
1841 if (o_tty) in tty_release()
1847 final = !tty->count && !(o_tty && o_tty->count); in tty_release()
[all …]
H A Dtty.h98 int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty);