Lines Matching refs:sc_ep
133 struct usbd_pipe *sc_ep[UGL_ENDPT_MAX]; member
285 if (sc->sc_ep[UGL_ENDPT_TX] != NULL || in ugl_detach()
286 sc->sc_ep[UGL_ENDPT_RX] != NULL || in ugl_detach()
287 sc->sc_ep[UGL_ENDPT_INTR] != NULL) in ugl_detach()
428 usbd_clear_endpoint_stall_async(sc->sc_ep[UGL_ENDPT_RX]); in ugl_rxeof()
479 usbd_setup_xfer(c->ugl_xfer, sc->sc_ep[UGL_ENDPT_RX], in ugl_rxeof()
520 usbd_clear_endpoint_stall_async(sc->sc_ep[UGL_ENDPT_TX]); in ugl_txeof()
557 usbd_setup_xfer(c->ugl_xfer, sc->sc_ep[UGL_ENDPT_TX], in ugl_send()
645 if (sc->sc_ep[UGL_ENDPT_RX] == NULL) { in ugl_init()
667 USBD_EXCLUSIVE_USE, &sc->sc_ep[UGL_ENDPT_RX]); in ugl_openpipes()
674 USBD_EXCLUSIVE_USE, &sc->sc_ep[UGL_ENDPT_TX]); in ugl_openpipes()
681 0, &sc->sc_ep[UGL_ENDPT_INTR], sc, in ugl_openpipes()
693 usbd_setup_xfer(c->ugl_xfer, sc->sc_ep[UGL_ENDPT_RX], in ugl_openpipes()
730 usbd_clear_endpoint_stall_async(sc->sc_ep[UGL_ENDPT_RX]); in ugl_intr()
816 if (sc->sc_ep[UGL_ENDPT_RX] != NULL) { in ugl_stop()
817 usbd_close_pipe(sc->sc_ep[UGL_ENDPT_RX]); in ugl_stop()
818 sc->sc_ep[UGL_ENDPT_RX] = NULL; in ugl_stop()
821 if (sc->sc_ep[UGL_ENDPT_TX] != NULL) { in ugl_stop()
822 usbd_close_pipe(sc->sc_ep[UGL_ENDPT_TX]); in ugl_stop()
823 sc->sc_ep[UGL_ENDPT_TX] = NULL; in ugl_stop()
826 if (sc->sc_ep[UGL_ENDPT_INTR] != NULL) { in ugl_stop()
827 usbd_close_pipe(sc->sc_ep[UGL_ENDPT_INTR]); in ugl_stop()
828 sc->sc_ep[UGL_ENDPT_INTR] = NULL; in ugl_stop()