Lines Matching refs:cbw
2494 struct fsg_bulk_cb_wrap *cbw = req->buf;
2502 cbw->Signature != cpu_to_le32(
2506 le32_to_cpu(cbw->Signature));
2523 if (cbw->Lun >= FSG_MAX_LUNS || cbw->Flags & ~USB_BULK_IN_FLAG ||
2524 cbw->Length <= 0 || cbw->Length > MAX_COMMAND_SIZE) {
2527 cbw->Lun, cbw->Flags, cbw->Length);
2539 fsg->cmnd_size = cbw->Length;
2540 memcpy(fsg->cmnd, cbw->CDB, fsg->cmnd_size);
2541 if (cbw->Flags & USB_BULK_IN_FLAG)
2545 fsg->data_size = le32_to_cpu(cbw->DataTransferLength);
2548 fsg->lun = cbw->Lun;
2549 fsg->tag = cbw->Tag;