Lines Matching refs:tp
87 struct tty *tp; /* Terminal device */
228 struct tty *tp;
230 tp = sc->tp;
231 if (tp != NULL) {
232 tty_lock(tp);
233 ttyhook_unregister(tp);
260 if (sc->tp != NULL)
268 error = ttyhook_register(&sc->tp, p, ((int *)msg->data)[1],
314 struct tty *tp = sc->tp;
323 if (tp == NULL) {
340 tty_lock(tp);
341 if (!tty_gone(tp))
342 ttydevsw_outwakeup(tp);
343 tty_unlock(tp);
349 ngt_getc_inject(struct tty *tp, void *buf, size_t len)
351 sc_p sc = ttyhook_softc(tp);
393 ngt_getc_poll(struct tty *tp)
395 sc_p sc = ttyhook_softc(tp);
407 ngt_rint_bypass(struct tty *tp, const void *buf, size_t len)
409 sc_p sc = ttyhook_softc(tp);
415 tty_assert_locked(tp);
456 ngt_rint(struct tty *tp, char c, int flags)
458 sc_p sc = ttyhook_softc(tp);
463 tty_assert_locked(tp);
507 ngt_rint_poll(struct tty *tp)