Lines Matching refs:sc_ttys
104 int sc_ttys; member
616 if (sc->sc_ttys > 0) { in uhso_attach()
618 CTLFLAG_RD, &sc->sc_ttys, 0, "Number of attached serial ports"); in uhso_attach()
628 for (i = 0; i < sc->sc_ttys; i++) { in uhso_attach()
643 if (sc->sc_ttys == 1) in uhso_attach()
675 if (sc->sc_ttys > 0) { in uhso_detach()
678 for (i = 0; i < sc->sc_ttys; i++) { in uhso_detach()
927 if (error == 0 && sc->sc_ttys > 0) { in uhso_probe_iface()
929 sc->sc_ttys, sc, &uhso_ucom_callback, &sc->sc_mtx); in uhso_probe_iface()
947 sc->sc_ttys, sc, &uhso_ucom_callback, &sc->sc_mtx); in uhso_probe_iface()
1012 sc->sc_ttys++; in uhso_alloc_tty()
1013 sc->sc_tty = reallocf(sc->sc_tty, sizeof(struct uhso_tty) * sc->sc_ttys, in uhso_alloc_tty()
1019 sizeof(struct ucom_softc) * sc->sc_ttys, M_USBDEV, M_WAITOK | M_ZERO); in uhso_alloc_tty()
1023 sc->sc_tty[sc->sc_ttys - 1].ht_sc = sc; in uhso_alloc_tty()
1025 UHSO_DPRINTF(1, "Allocated TTY %d\n", sc->sc_ttys - 1); in uhso_alloc_tty()
1026 return (sc->sc_ttys - 1); in uhso_alloc_tty()