Lines Matching refs:cbw
2182 struct fsg_bulk_cb_wrap *cbw = req->buf;
2191 cbw->Signature != cpu_to_le32(
2195 le32_to_cpu(cbw->Signature));
2212 if (cbw->Lun >= FSG_MAX_LUNS || cbw->Flags & ~USB_BULK_IN_FLAG ||
2213 cbw->Length <= 0 || cbw->Length > MAX_COMMAND_SIZE) {
2216 cbw->Lun, cbw->Flags, cbw->Length);
2228 common->cmnd_size = cbw->Length;
2229 memcpy(common->cmnd, cbw->CDB, common->cmnd_size);
2230 if (cbw->Flags & USB_BULK_IN_FLAG)
2234 common->data_size = le32_to_cpu(cbw->DataTransferLength);
2237 common->lun = cbw->Lun;
2238 common->tag = cbw->Tag;