sys/dev/usbmisc/ucom/ucom.c
static void
ucomstopread(struct ucom_softc *sc)
{
	usbd_status err;

	ASSERT_LWKT_TOKEN_HELD(&tty_token);
	DPRINTF(("ucomstopread: enter\n"));

	if (!(sc->sc_state & UCS_RXSTOP)) {
		sc->sc_state |= UCS_RXSTOP;
		if (sc->sc_bulkin_pipe == NULL) {
			DPRINTF(("ucomstopread: bulkin pipe NULL\n"));
			return;
		}
		err = usbd_abort_pipe(sc->sc_bulkin_pipe);
		if (err) {
			DPRINTF(("ucomstopread: err = %s\n",
				 usbd_errstr(err)));
		}
	}

	DPRINTF(("ucomstopread: leave\n"));
}
/*
 * NOTE: Must be called with tty_token held.
 */
Must be called with tty_token held.
Must be called with tty_token held .
static void
ucomstopread(struct ucom_softc *sc)
{
	usbd_status err;
	ASSERT_LWKT_TOKEN_HELD(&tty_token);
	DPRINTF(("ucomstopread: enter\n"));
	if (!(sc->sc_state & UCS_RXSTOP)) {
		sc->sc_state |= UCS_RXSTOP;
		if (sc->sc_bulkin_pipe == NULL) {
			DPRINTF(("ucomstopread: bulkin pipe NULL\n"));
			return;
		}
		err = usbd_abort_pipe(sc->sc_bulkin_pipe);
		if (err) {
			DPRINTF(("ucomstopread: err = %s\n",
				 usbd_errstr(err)));
		}
	}
	DPRINTF(("ucomstopread: leave\n"));
}
static void ucomstopread ( struct ucom_softc * sc ) { usbd_status err ; ASSERT_LWKT_TOKEN_HELD ( & tty_token ) ; DPRINTF ( ( " \n " ) ) ; if ( ! ( sc -> sc_state & UCS_RXSTOP ) ) { sc -> sc_state |= UCS_RXSTOP ; if ( sc -> sc_bulkin_pipe == NULL ) { DPRINTF ( ( " \n " ) ) ; return ; } err = usbd_abort_pipe ( sc -> sc_bulkin_pipe ) ; if ( err ) { DPRINTF ( ( " \n " , usbd_errstr ( err ) ) ) ; } } DPRINTF ( ( " \n " ) ) ; }
NOTE: Must be called with tty_token held.
NOTE : Must be called with tty_token held .