Home | History | Annotate | Download | only in usb

Lines Matching refs:csw

246 	"BBB CSW, 1st attempt",
247 "BBB CSW bulk-in clear stall",
248 "BBB CSW, 2nd attempt",
1187 * csw read phase.
1223 "%s: CSW struct does not have the right size (%zu vs. %u)\n",
1414 /* Reading of CSW after bulk stall condition in data phase
1416 * reading CSW (TSTATE_BBB_SCLEAR).
1439 /* After first attempt of fetching CSW */
1446 &sc->csw, UMASS_BBB_CSW_SIZE, 0, next_xfer)) {
1456 DPRINTFM(UDMASS_BBB, "sc %#jx Failed to read CSW "
1460 /* If this was the first attempt at fetching the CSW
1474 DIF(UDMASS_BBB, umass_bbb_dump_csw(sc, &sc->csw));
1477 residue = UGETDW(sc->csw.dCSWDataResidue);
1487 UGETDW(sc->csw.dCSWSignature) == CSWSIGNATURE_OLYMPUS_C1)
1488 USETDW(sc->csw.dCSWSignature, CSWSIGNATURE);
1492 USETDW(sc->csw.dCSWTag, UGETDW(sc->cbw.dCBWTag));
1494 /* Check CSW and handle any error */
1495 if (UGETDW(sc->csw.dCSWSignature) != CSWSIGNATURE) {
1496 /* Invalid CSW: Wrong signature or wrong tag might
1499 printf("%s: Invalid CSW: sig 0x%08x should be 0x%08x\n",
1501 UGETDW(sc->csw.dCSWSignature),
1506 } else if (UGETDW(sc->csw.dCSWTag)
1508 printf("%s: Invalid CSW: tag %d should be %d\n",
1510 UGETDW(sc->csw.dCSWTag),
1516 /* CSW is valid here */
1517 } else if (sc->csw.bCSWStatus > CSWSTATUS_PHASE) {
1518 printf("%s: Invalid CSW: status %d > %d\n",
1520 sc->csw.bCSWStatus,
1525 } else if (sc->csw.bCSWStatus == CSWSTATUS_PHASE) {
1549 } else if (sc->csw.bCSWStatus == CSWSTATUS_FAILED) {
1716 * csw read phase.
2128 umass_bbb_dump_csw(struct umass_softc *sc, umass_bbb_csw_t *csw)
2131 int sig = UGETDW(csw->dCSWSignature);
2132 int tag = UGETDW(csw->dCSWTag);
2133 int res = UGETDW(csw->dCSWDataResidue);
2134 int status = csw->bCSWStatus;
2136 DPRINTFM(UDMASS_BBB, "sc %#jx: CSW %jd: sig = 0x%08jx, tag = %jd",
2137 (uintptr_t)sc, (uintptr_t)csw, sig, tag);