Lines Matching refs:tp
214 dcons_outwakeup(struct tty *tp)
219 dc = tty_softc(tp);
221 while (ttydisc_getc(tp, &ch, sizeof ch) != 0)
228 struct tty *tp;
234 tp = dc->tty;
236 tty_lock(tp);
238 ttydisc_rint(tp, c, 0);
241 ttydisc_rint_done(tp);
242 tty_unlock(tp);
248 callout_reset(&dcons_callout, polltime, dcons_timeout, tp);
379 struct tty *tp;
382 tp = tty_alloc(&dcons_ttydevsw, dc);
384 dc->tty = tp;
385 tty_init_console(tp, 0);
386 tty_makedev(tp, NULL, "%s", name);
406 struct tty *tp;
410 tp = dc->tty;
414 tty_lock(tp);
415 tty_rel_gone(tp);