Searched refs:cbw (Results 1 – 3 of 3) sorted by relevance
101 struct ushc_cbw *cbw; member281 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()
2111 struct bulk_cb_wrap *cbw = req->buf; in received_cbw() local2120 cbw->Signature != cpu_to_le32( in received_cbw()2124 le32_to_cpu(cbw->Signature)); in received_cbw()2143 if (cbw->Lun >= ARRAY_SIZE(common->luns) || in received_cbw()2144 cbw->Flags & ~US_BULK_FLAG_IN || cbw->Length <= 0 || in received_cbw()2145 cbw->Length > MAX_COMMAND_SIZE) { in received_cbw()2148 cbw->Lun, cbw->Flags, cbw->Length); in received_cbw()2162 common->cmnd_size = cbw->Length; in received_cbw()2163 memcpy(common->cmnd, cbw->CDB, common->cmnd_size); in received_cbw()2164 if (cbw->Flags & US_BULK_FLAG_IN) in received_cbw()[all …]
1200 struct bulk_cb_wrap *cbw = cmdbuf; in bot_submit_command() local1208 if (cbw->Signature != cpu_to_le32(US_BULK_CB_SIGN)) { in bot_submit_command()1217 cmd_len = cbw->Length; in bot_submit_command()1233 memcpy(cmd->cmd_buf, cbw->CDB, cmd_len); in bot_submit_command()1235 cmd->bot_tag = cbw->Tag; in bot_submit_command()1245 cmd->unpacked_lun = cbw->Lun; in bot_submit_command()1246 cmd->is_read = cbw->Flags & US_BULK_FLAG_IN ? 1 : 0; in bot_submit_command()1247 cmd->data_len = le32_to_cpu(cbw->DataTransferLength); in bot_submit_command()