Lines Matching refs:cbw
2612 struct bulk_cb_wrap *cbw = req->buf; in received_cbw() local
2620 cbw->Signature != cpu_to_le32( in received_cbw()
2624 le32_to_cpu(cbw->Signature)); in received_cbw()
2641 if (cbw->Lun >= FSG_MAX_LUNS || cbw->Flags & ~US_BULK_FLAG_IN || in received_cbw()
2642 cbw->Length <= 0 || cbw->Length > MAX_COMMAND_SIZE) { in received_cbw()
2645 cbw->Lun, cbw->Flags, cbw->Length); in received_cbw()
2657 fsg->cmnd_size = cbw->Length; in received_cbw()
2658 memcpy(fsg->cmnd, cbw->CDB, fsg->cmnd_size); in received_cbw()
2659 if (cbw->Flags & US_BULK_FLAG_IN) in received_cbw()
2663 fsg->data_size = le32_to_cpu(cbw->DataTransferLength); in received_cbw()
2666 fsg->lun = cbw->Lun; in received_cbw()
2667 fsg->tag = cbw->Tag; in received_cbw()