Searched refs:new_ldisc (Results 1 – 2 of 2) sorted by relevance
58 int tty_register_ldisc(struct tty_ldisc_ops *new_ldisc) in tty_register_ldisc() argument62 if (new_ldisc->num < N_TTY || new_ldisc->num >= NR_LDISCS) in tty_register_ldisc()66 tty_ldiscs[new_ldisc->num] = new_ldisc; in tty_register_ldisc()522 struct tty_ldisc *old_ldisc, *new_ldisc; in tty_set_ldisc() local524 new_ldisc = tty_ldisc_get(tty, disc); in tty_set_ldisc()525 if (IS_ERR(new_ldisc)) in tty_set_ldisc()526 return PTR_ERR(new_ldisc); in tty_set_ldisc()554 tty->ldisc = new_ldisc; in tty_set_ldisc()557 retval = tty_ldisc_open(tty, new_ldisc); in tty_set_ldisc()560 tty_ldisc_put(new_ldisc); in tty_set_ldisc()[all …]
285 int tty_register_ldisc(struct tty_ldisc_ops *new_ldisc);