Lines Matching refs:cbw
424 umass_bbb_cbw_t cbw; /* command block wrapper */ member
1395 tag = UGETDW(sc->cbw.dCBWTag) + 1; in umass_t_bbb_command_callback()
1397 USETDW(sc->cbw.dCBWSignature, CBWSIGNATURE); in umass_t_bbb_command_callback()
1398 USETDW(sc->cbw.dCBWTag, tag); in umass_t_bbb_command_callback()
1409 USETDW(sc->cbw.dCBWDataTransferLength, sc->sc_transfer.data_len); in umass_t_bbb_command_callback()
1420 sc->cbw.bCBWFlags = ((sc->sc_transfer.dir == DIR_IN) ? in umass_t_bbb_command_callback()
1422 sc->cbw.bCBWLUN = sc->sc_transfer.lun; in umass_t_bbb_command_callback()
1424 if (sc->sc_transfer.cmd_len > sizeof(sc->cbw.CBWCDB)) { in umass_t_bbb_command_callback()
1425 sc->sc_transfer.cmd_len = sizeof(sc->cbw.CBWCDB); in umass_t_bbb_command_callback()
1428 sc->cbw.bCDBLength = sc->sc_transfer.cmd_len; in umass_t_bbb_command_callback()
1431 ret = memcpy_s(sc->cbw.CBWCDB, CBWCDBLENGTH, in umass_t_bbb_command_callback()
1439 (void)memset_s(sc->cbw.CBWCDB + sc->sc_transfer.cmd_len, in umass_t_bbb_command_callback()
1440 sizeof(sc->cbw.CBWCDB) - sc->sc_transfer.cmd_len, 0, in umass_t_bbb_command_callback()
1441 sizeof(sc->cbw.CBWCDB) - sc->sc_transfer.cmd_len); in umass_t_bbb_command_callback()
1443 DIF(UDMASS_BBB, umass_bbb_dump_cbw(sc, &sc->cbw)); in umass_t_bbb_command_callback()
1446 usbd_copy_in(pc, 0, &sc->cbw, sizeof(sc->cbw)); in umass_t_bbb_command_callback()
1447 usbd_xfer_set_frame_len(xfer, 0, sizeof(sc->cbw)); in umass_t_bbb_command_callback()
1596 } else if (UGETDW(sc->csw.dCSWTag) != UGETDW(sc->cbw.dCBWTag)) { in umass_t_bbb_status_callback()
1599 UGETDW(sc->cbw.dCBWTag)); in umass_t_bbb_status_callback()
2505 umass_bbb_dump_cbw(struct umass_softc *sc, umass_bbb_cbw_t *cbw) in umass_bbb_dump_cbw() argument
2507 uint8_t *c = cbw->CBWCDB; in umass_bbb_dump_cbw()
2509 uint32_t dlen = UGETDW(cbw->dCBWDataTransferLength); in umass_bbb_dump_cbw()
2510 uint32_t tag = UGETDW(cbw->dCBWTag); in umass_bbb_dump_cbw()
2512 uint8_t clen = cbw->bCDBLength; in umass_bbb_dump_cbw()
2513 uint8_t flags = cbw->bCBWFlags; in umass_bbb_dump_cbw()
2514 uint8_t lun = cbw->bCBWLUN; in umass_bbb_dump_cbw()
3117 tag = UGETDW(sc->cbw.dCBWTag); in umass_status()