Lines Matching refs:ucom_cons_softc
136 static struct ucom_softc *ucom_cons_softc = NULL; variable
455 if ((ucom_cons_softc == NULL) && in ucom_attach_tty()
461 ucom_cons_softc = sc; in ucom_attach_tty()
465 UCOM_MTX_LOCK(ucom_cons_softc); in ucom_attach_tty()
471 ucom_open(ucom_cons_softc->sc_tty); in ucom_attach_tty()
472 ucom_param(ucom_cons_softc->sc_tty, &tp->t_termios_init_in); in ucom_attach_tty()
473 UCOM_MTX_UNLOCK(ucom_cons_softc); in ucom_attach_tty()
478 ucom_cons_softc == NULL) { in ucom_attach_tty()
511 UCOM_MTX_LOCK(ucom_cons_softc); in ucom_detach_tty()
512 ucom_close(ucom_cons_softc->sc_tty); in ucom_detach_tty()
514 UCOM_MTX_UNLOCK(ucom_cons_softc); in ucom_detach_tty()
515 ucom_cons_softc = NULL; in ucom_detach_tty()
1623 struct ucom_softc *sc = ucom_cons_softc; in ucom_cngetc()
1654 struct ucom_softc *sc = ucom_cons_softc; in ucom_cnputc()
1760 return ((ucom_cons_softc != NULL) ? 0 : -1); in ucom_gdbprobe()