Lines Matching refs:tp
104 nmdm_close(struct tty *tp)
110 np = tty_softc(tp);
119 tty_rel_gone(tp);
122 tty_lock(tp);
128 tty_lock(tp);
161 struct tty *tp;
194 tp = ns->ns_part1.np_tty = tty_alloc_mutex(&nmdm_class, &ns->ns_part1,
197 error = tty_makedevf(tp, NULL, endc == 'A' ? TTYMK_CLONING : 0,
206 tp = ns->ns_part2.np_tty = tty_alloc_mutex(&nmdm_class, &ns->ns_part2,
209 error = tty_makedevf(tp, NULL, endc == 'B' ? TTYMK_CLONING : 0,
253 struct tty *tp, *otp;
257 tp = np->np_tty;
258 tty_lock(tp);
259 if (tty_gone(tp)) {
260 tty_unlock(tp);
266 KASSERT(otp != tp, ("NULL otp == tp nmdmstart"));
268 if (!tty_opened(tp)) {
273 if (tty_opened(tp)) {
288 if (ttydisc_getc(tp, &c, 1) != 1)
296 tty_unlock(tp);
320 nmdm_param(struct tty *tp, struct termios *t)
322 struct nmdmpart *np = tty_softc(tp);
371 tp2 = tp;
378 nmdm_modem(struct tty *tp, int sigon, int sigoff)
380 struct nmdmpart *np = tty_softc(tp);
403 nmdm_inwakeup(struct tty *tp)
405 struct nmdmpart *np = tty_softc(tp);
412 nmdm_outwakeup(struct tty *tp)
414 struct nmdmpart *np = tty_softc(tp);