Lines Matching refs:tp
265 aju_handle_input(struct altera_jtag_uart_softc *sc, struct tty *tp)
269 tty_assert_locked(tp);
279 ttydisc_rint(tp, c, 0);
283 ttydisc_rint_done(tp);
296 aju_handle_output(struct altera_jtag_uart_softc *sc, struct tty *tp)
301 tty_assert_locked(tp);
305 while (ttydisc_getc_poll(tp) != 0) {
317 if (ttydisc_getc(tp, &ch, sizeof(ch)) !=
330 if (ttydisc_getc(tp, &ch, sizeof(ch)) != sizeof(ch))
363 aju_outwakeup(struct tty *tp)
365 struct altera_jtag_uart_softc *sc = tty_softc(tp);
367 tty_assert_locked(tp);
370 aju_handle_output(sc, tp);
378 struct tty *tp = sc->ajus_ttyp;
380 tty_lock(tp);
390 aju_handle_input(sc, tp);
391 aju_handle_output(sc, tp);
402 tty_unlock(tp);
409 struct tty *tp = sc->ajus_ttyp;
412 tty_lock(tp);
421 aju_handle_output(sc, tp);
435 aju_handle_output(sc, tp);
442 tty_unlock(tp);
449 struct tty *tp = sc->ajus_ttyp;
452 tty_lock(tp);
457 aju_handle_input(sc, tp);
461 aju_handle_output(sc, tp);
464 tty_unlock(tp);
470 struct tty *tp;
515 tp = sc->ajus_ttyp = tty_alloc(&aju_ttydevsw, sc);
518 tty_init_console(tp, 0);
520 tty_makedev(tp, NULL, "%s%d", AJU_TTYNAME, sc->ajus_unit);
544 struct tty *tp = sc->ajus_ttyp;
561 tty_lock(tp);
562 tty_rel_gone(tp);