Lines Matching refs:tp
88 struct tty *tp;
92 tp = tty_alloc(&cfe_ttydevsw, NULL);
93 callout_init_mtx(&cfe_timer, tty_getlock(tp), 0);
94 tty_makedev(tp, NULL, "cfecons");
99 cfe_tty_open(struct tty *tp)
104 callout_reset(&cfe_timer, polltime, cfe_timeout, tp);
110 cfe_tty_close(struct tty *tp)
117 cfe_tty_outwakeup(struct tty *tp)
123 len = ttydisc_getc(tp, buf, sizeof buf);
140 struct tty *tp;
143 tp = (struct tty *)v;
145 tty_assert_locked(tp);
147 ttydisc_rint(tp, c, 0);
148 ttydisc_rint_done(tp);
150 callout_reset(&cfe_timer, polltime, cfe_timeout, tp);