Lines Matching refs:tp

195 	struct tty *tp;
197 tp = tm->tm_tty;
198 if (tp == NULL)
201 tty_lock(tp);
202 tty_set_winsize(tp, &tm->tm_winsize);
203 tty_unlock(tp);
209 struct tty *tp;
217 tp = tty_alloc(&terminal_tty_class, tm);
218 tty_makedev(tp, NULL, "%s", name);
219 tm->tm_tty = tp;
285 struct tty *tp;
287 tp = tm->tm_tty;
288 if (tp == NULL)
300 tty_lock(tp);
305 ttydisc_rint(tp, c, 0);
312 ttydisc_rint_simple(tp, str, sizeof str);
320 ttydisc_rint_simple(tp, str, sizeof str);
329 ttydisc_rint_simple(tp, str, sizeof str);
331 ttydisc_rint_done(tp);
332 tty_unlock(tp);
338 struct tty *tp;
340 tp = tm->tm_tty;
341 if (tp == NULL)
344 tty_lock(tp);
345 ttydisc_rint(tp, c, 0);
346 ttydisc_rint_done(tp);
347 tty_unlock(tp);
353 struct tty *tp;
356 tp = tm->tm_tty;
357 if (tp == NULL)
364 tty_lock(tp);
365 ttydisc_rint_simple(tp, str, strlen(str));
366 ttydisc_rint_done(tp);
367 tty_unlock(tp);
375 termtty_open(struct tty *tp)
377 struct terminal *tm = tty_softc(tp);
384 termtty_close(struct tty *tp)
386 struct terminal *tm = tty_softc(tp);
392 termtty_outwakeup(struct tty *tp)
394 struct terminal *tm = tty_softc(tp);
399 while ((olen = ttydisc_getc(tp, obuf, sizeof obuf)) > 0) {
418 termtty_ioctl(struct tty *tp, u_long cmd, caddr_t data, struct thread *td)
420 struct terminal *tm = tty_softc(tp);
456 tty_unlock(tp);
458 tty_lock(tp);
463 termtty_mmap(struct tty *tp, vm_ooffset_t offset, vm_paddr_t * paddr,
466 struct terminal *tm = tty_softc(tp);
662 struct tty *tp;
673 tp = tm->tm_tty;
674 if (tp == NULL)
677 ttydisc_rint_simple(tp, buf, len);
678 ttydisc_rint_done(tp);