Home
last modified time | relevance | path

Searched refs:cbw (Results 1 – 16 of 16) sorted by relevance

/third_party/libusb/examples/
Dxusb.c322 struct command_block_wrapper cbw; in send_mass_storage_command() local
334 if ((cdb_len == 0) || (cdb_len > sizeof(cbw.CBWCB))) { in send_mass_storage_command()
340 memset(&cbw, 0, sizeof(cbw)); in send_mass_storage_command()
341 cbw.dCBWSignature[0] = 'U'; in send_mass_storage_command()
342 cbw.dCBWSignature[1] = 'S'; in send_mass_storage_command()
343 cbw.dCBWSignature[2] = 'B'; in send_mass_storage_command()
344 cbw.dCBWSignature[3] = 'C'; in send_mass_storage_command()
346 cbw.dCBWTag = tag++; in send_mass_storage_command()
347 cbw.dCBWDataTransferLength = data_length; in send_mass_storage_command()
348 cbw.bmCBWFlags = direction; in send_mass_storage_command()
[all …]
/third_party/NuttX/drivers/usbdev/gadget/
Df_mass_storage.c735 struct bulk_cbw *cbw = (struct bulk_cbw *)fmass->bulkreq.buf; in fmass_check_receive_cbw() local
738 …DPRINTFN(1, "\t -----Received CBW packet -----dCBWTag: 0x%x bCBWLUN:%u\n", cbw->dCBWTag, cbw->bCB… in fmass_check_receive_cbw()
743 cbw->dCBWSignature != BULK_CBW_SIGN) in fmass_check_receive_cbw()
746 fmass->bulkreq.xfrd, cbw->dCBWSignature, cbw->dCBWSignature, BULK_CBW_SIGN); in fmass_check_receive_cbw()
752 if (cbw->bCBWLUN >= FMASS_MAX_LUNS || cbw->bmCBWFlags & ~BULK_CBW_FLAG_IN || in fmass_check_receive_cbw()
753 cbw->bCBWLEN == 0 || cbw->bCBWLEN > MAX_COMMAND_SIZE) in fmass_check_receive_cbw()
756 cbw->bCBWLUN, cbw->bmCBWFlags, cbw->bCBWLEN); in fmass_check_receive_cbw()
762 fmass->cmd_size = cbw->bCBWLEN; in fmass_check_receive_cbw()
763 ret = memcpy_s(fmass->cmd, MAX_COMMAND_SIZE, cbw->CDB, fmass->cmd_size); in fmass_check_receive_cbw()
769 if (cbw->bmCBWFlags & BULK_CBW_FLAG_IN) in fmass_check_receive_cbw()
[all …]
/third_party/FreeBSD/sys/dev/usb/storage/
Dumass.c424 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()
[all …]
/third_party/libwebsockets/READMEs/
DREADME.cbor-lecp.md242 lws_lec_pctx_t cbw;
244 lws_lec_init(&cbw, buf, sizeof(buf));
257 lws_lec_pctx_t cbw;
260 lws_lec_init(&cbw, buf, sizeof(buf));
290 lws_lec_pctx_t cbw;
292 lws_lec_init(&cbw, buf, sizeof(buf));
296 lws_lec_setbuf(&cbw, buf, sizeof(buf));
320 lws_lec_pctx_t cbw;
322 lws_lec_init(&cbw, buf, sizeof(buf));
326 lws_lec_setbuf(&cbw, buf, sizeof(buf));
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86InstrExtension.td16 "{cbtw|cbw}", []>, OpSize16, Sched<[WriteALU]>;
DX86InstrInfo.td3031 def : MnemonicAlias<"cbw", "cbtw", "att">;
/third_party/mesa3d/src/mesa/x86/
Dassyntax.h410 #define CBW CHOICE(cbtw, cbw, cbw)
1138 #define CBW cbw
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceAssemblerX8632.h769 void cbw();
DIceAssemblerX8664.h764 void cbw();
DIceInstX8632.cpp1224 Asm->cbw(); in emitIAS()
DIceAssemblerX8632.cpp2348 void AssemblerX8632::cbw() { in cbw() function in Ice::X8632::AssemblerX8632
DIceInstX8664.cpp1222 Asm->cbw(); in emitIAS()
DIceAssemblerX8664.cpp2476 void AssemblerX8664::cbw() { in cbw() function in Ice::X8664::AssemblerX8664
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/unittest/AssemblerX8632/
DGPRArith.cpp899 TestImpl(cbw, 2u, 0x66, 0x98); in TEST_F()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/unittest/AssemblerX8664/
DGPRArith.cpp927 TestImpl(cbw, 2u, 0x66, 0x98); in TEST_F()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/X86/
DX86GenAsmMatcher.inc967 Mnemonic = "cbtw"; // "cbw"
7626 "i\005bzhil\005bzhiq\004call\005calll\005callq\005callw\004cbtw\003cbw\003"
22875 { 757 /* cbw */, X86::CBW, Convert_NoOperands, AMFBS_None, { }, },