third_party/virtualbox/src/VBox/Devices/USB/VUSBUrb.cpp
/**
 * Fails a URB request with a pipe STALL error.
 *
 * @returns VINF_SUCCESS indicating that we've completed the URB.
 * @param   pUrb    The URB in question.
 */
Fails a URB request with a pipe STALL error.
@returns VINF_SUCCESS indicating that we've completed the URB.
@param   pUrb    The URB in question.
Fails a URB request with a pipe STALL error . @returns VINF_SUCCESS indicating that we ' ve completed the URB . @param pUrb The URB in question .
static int vusbMsgStall(PVUSBURB pUrb)
{
    PVUSBPIPE       pPipe = &pUrb->pVUsb->pDev->aPipes[pUrb->EndPt];
    PVUSBCTRLEXTRA  pExtra = pPipe->pCtrl;
    LogFlow(("%s: vusbMsgStall: pPipe=%p err=STALL stage %s->SETUP\n",
             pUrb->pszDesc, pPipe, g_apszCtlStates[pExtra->enmStage]));
    pExtra->pbCur    = NULL;
    pExtra->enmStage = CTLSTAGE_SETUP;
    pUrb->enmState = VUSBURBSTATE_REAPED;
    pUrb->enmStatus  = VUSBSTATUS_STALL;
    vusbUrbCompletionRh(pUrb);
    return VINF_SUCCESS;
}
static int vusbMsgStall ( PVUSBURB pUrb ) { PVUSBPIPE pPipe = & pUrb -> pVUsb -> pDev -> aPipes [ pUrb -> EndPt ] ; PVUSBCTRLEXTRA pExtra = pPipe -> pCtrl ; LogFlow ( ( " \n " , pUrb -> pszDesc , pPipe , g_apszCtlStates [ pExtra -> enmStage ] ) ) ; pExtra -> pbCur = NULL ; pExtra -> enmStage = CTLSTAGE_SETUP ; pUrb -> enmState = VUSBURBSTATE_REAPED ; pUrb -> enmStatus = VUSBSTATUS_STALL ; vusbUrbCompletionRh ( pUrb ) ; return VINF_SUCCESS ; }
Fails a URB request with a pipe STALL error.
Fails a URB request with a pipe STALL error .