Lines Matching refs:tp
102 nmdm_close(struct tty *tp)
108 np = tty_softc(tp);
117 tty_rel_gone(tp);
120 tty_lock(tp);
126 tty_lock(tp);
159 struct tty *tp;
192 tp = ns->ns_part1.np_tty = tty_alloc_mutex(&nmdm_class, &ns->ns_part1,
195 error = tty_makedevf(tp, NULL, endc == 'A' ? TTYMK_CLONING : 0,
204 tp = ns->ns_part2.np_tty = tty_alloc_mutex(&nmdm_class, &ns->ns_part2,
207 error = tty_makedevf(tp, NULL, endc == 'B' ? TTYMK_CLONING : 0,
251 struct tty *tp, *otp;
255 tp = np->np_tty;
256 tty_lock(tp);
257 if (tty_gone(tp)) {
258 tty_unlock(tp);
264 KASSERT(otp != tp, ("NULL otp == tp nmdmstart"));
266 if (!tty_opened(tp)) {
271 if (tty_opened(tp)) {
286 if (ttydisc_getc(tp, &c, 1) != 1)
294 tty_unlock(tp);
318 nmdm_param(struct tty *tp, struct termios *t)
320 struct nmdmpart *np = tty_softc(tp);
369 tp2 = tp;
376 nmdm_modem(struct tty *tp, int sigon, int sigoff)
378 struct nmdmpart *np = tty_softc(tp);
401 nmdm_inwakeup(struct tty *tp)
403 struct nmdmpart *np = tty_softc(tp);
410 nmdm_outwakeup(struct tty *tp)
412 struct nmdmpart *np = tty_softc(tp);