Home
last modified time | relevance | path

Searched refs:cbw (Results 1 – 3 of 3) sorted by relevance

/drivers/mmc/host/
Dushc.c101 struct ushc_cbw *cbw; member
281 ushc->cbw->cmd_idx = cpu_to_le16(req->cmd->opcode); in ushc_request()
283 ushc->cbw->block_size = cpu_to_le16(req->data->blksz); in ushc_request()
285 ushc->cbw->block_size = 0; in ushc_request()
286 ushc->cbw->arg = cpu_to_le32(req->cmd->arg); in ushc_request()
409 kfree(ushc->cbw); in ushc_clean_up()
485 ushc->cbw = kzalloc(sizeof(struct ushc_cbw), GFP_KERNEL); in ushc_probe()
486 if (ushc->cbw == NULL) { in ushc_probe()
490 ushc->cbw->signature = USHC_CBW_SIGNATURE; in ushc_probe()
493 ushc->cbw, sizeof(struct ushc_cbw), in ushc_probe()
/drivers/usb/gadget/
Df_mass_storage.c2225 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()
[all …]
Dfile_storage.c2612 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()
[all …]