Lines Matching refs:cbw
2225 struct bulk_cb_wrap *cbw = req->buf; in received_cbw() local
2234 cbw->Signature != cpu_to_le32( in received_cbw()
2238 le32_to_cpu(cbw->Signature)); in received_cbw()
2257 if (cbw->Lun >= FSG_MAX_LUNS || cbw->Flags & ~US_BULK_FLAG_IN || in received_cbw()
2258 cbw->Length <= 0 || cbw->Length > MAX_COMMAND_SIZE) { in received_cbw()
2261 cbw->Lun, cbw->Flags, cbw->Length); in received_cbw()
2275 common->cmnd_size = cbw->Length; in received_cbw()
2276 memcpy(common->cmnd, cbw->CDB, common->cmnd_size); in received_cbw()
2277 if (cbw->Flags & US_BULK_FLAG_IN) in received_cbw()
2281 common->data_size = le32_to_cpu(cbw->DataTransferLength); in received_cbw()
2284 common->lun = cbw->Lun; in received_cbw()
2289 common->tag = cbw->Tag; in received_cbw()