Lines Matching refs:cbw
2085 struct fsg_bulk_cb_wrap *cbw = req->buf; in received_cbw() local
2094 cbw->Signature != cpu_to_le32( in received_cbw()
2098 le32_to_cpu(cbw->Signature)); in received_cbw()
2115 if (cbw->Lun >= FSG_MAX_LUNS || cbw->Flags & ~USB_BULK_IN_FLAG || in received_cbw()
2116 cbw->Length <= 0 || cbw->Length > MAX_COMMAND_SIZE) { in received_cbw()
2119 cbw->Lun, cbw->Flags, cbw->Length); in received_cbw()
2131 common->cmnd_size = cbw->Length; in received_cbw()
2132 memcpy(common->cmnd, cbw->CDB, common->cmnd_size); in received_cbw()
2133 if (cbw->Flags & USB_BULK_IN_FLAG) in received_cbw()
2137 common->data_size = le32_to_cpu(cbw->DataTransferLength); in received_cbw()
2140 common->lun = cbw->Lun; in received_cbw()
2141 common->tag = cbw->Tag; in received_cbw()