Home | History | Annotate | Download | only in usb

Lines Matching refs:cbw

243 	"BBB CBW",
1164 static int dCBWtag = 42; /* unique for CBW of transfer */
1208 "%s: cmdlen exceeds CDB length in CBW (%d > %d)",
1218 "%s: CBW struct does not have the right size (%zu vs. %u)\n",
1248 USETDW(sc->cbw.dCBWSignature, CBWSIGNATURE);
1249 USETDW(sc->cbw.dCBWTag, dCBWtag);
1251 USETDW(sc->cbw.dCBWDataTransferLength, datalen);
1253 sc->cbw.bCBWFlags = (dir == DIR_IN? CBWFLAGS_IN:CBWFLAGS_OUT);
1254 sc->cbw.bCBWLUN = lun;
1255 sc->cbw.bCDBLength = cmdlen;
1256 memcpy(sc->cbw.CBWCDB, cmd, cmdlen);
1258 DIF(UDMASS_BBB, umass_bbb_dump_cbw(sc, &sc->cbw));
1272 /* Send the CBW from host to device via bulk-out endpoint. */
1274 &sc->cbw, UMASS_BBB_CBW_SIZE, flags,
1331 DPRINTFM(UDMASS_BBB, "sc %#jx failed to send CBW",
1333 /* If the device detects that the CBW is invalid, then
1492 USETDW(sc->csw.dCSWTag, UGETDW(sc->cbw.dCBWTag));
1507 != UGETDW(sc->cbw.dCBWTag)) {
1511 UGETDW(sc->cbw.dCBWTag));
2107 umass_bbb_dump_cbw(struct umass_softc *sc, umass_bbb_cbw_t *cbw)
2110 int clen = cbw->bCDBLength;
2111 int dlen = UGETDW(cbw->dCBWDataTransferLength);
2112 uint8_t *c = cbw->CBWCDB;
2113 int tag = UGETDW(cbw->dCBWTag);
2114 int flags = cbw->bCBWFlags;
2116 DPRINTFM(UDMASS_BBB, "sc %#jx: CBW %jd: cmdlen=%jd",