Searched refs:cbw (Results 1 – 2 of 2) sorted by relevance
224 static struct CBW cbw; variable277 (void)memset((void *)&cbw, 0, sizeof(struct CBW)); in msd_init()297 if (cbw.DataLength) { in fail()299 if ((cbw.Flags & 0x80) != 0U) { in fail()312 if (size >= cbw.DataLength) { in write()313 size = cbw.DataLength; in write()374 if (cbw.DataLength != 0U) { in testUnitReady()375 if ((cbw.Flags & 0x80) != 0U) { in testUnitReady()505 if (!cbw.DataLength) { in check_cbw_data_length()524 n = sys_get_be32(&cbw.CB[2]); in infoTransfer()[all …]
122 struct CBW cbw; member233 if (ctx->cbw.bmCBWFlags & CBW_FLAGS_RESERVED_MASK) { in is_cbw_meaningful()238 if (ctx->cbw.bCBWLUN >= ctx->registered_luns) { in is_cbw_meaningful()243 if (ctx->cbw.bCBWCBLength < 1 || ctx->cbw.bCBWCBLength > 16) { in is_cbw_meaningful()253 struct scsi_ctx *lun = &ctx->luns[ctx->cbw.bCBWLUN]; in msc_process_read()312 struct scsi_ctx *lun = &ctx->luns[ctx->cbw.bCBWLUN]; in msc_process_cbw()317 cb_len = scsi_usb_boot_cmd_len(ctx->cbw.CBWCB, ctx->cbw.bCBWCBLength); in msc_process_cbw()318 data_len = scsi_cmd(lun, ctx->cbw.CBWCB, cb_len, ctx->scsi_buf); in msc_process_cbw()328 if (ctx->cbw.dCBWDataTransferLength == 0) { in msc_process_cbw()350 if (ctx->cbw.bmCBWFlags & CBW_FLAGS_DIRECTION_IN) { in msc_process_cbw()[all …]