cmnd 2543 drivers/ata/libata-eh.c cdb = qc->scsicmd->cmnd; cmnd 1462 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cmnd 1679 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cmnd 1825 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cmnd 1935 drivers/ata/libata-scsi.c u8 *cdb = cmd->cmnd; cmnd 2585 drivers/ata/libata-scsi.c u8 *scsicmd = args->cmd->cmnd, *p = rbuf; cmnd 2717 drivers/ata/libata-scsi.c if (args->cmd->cmnd[0] == READ_CAPACITY) { cmnd 2932 drivers/ata/libata-scsi.c if (cmd->cmnd[0] == INQUIRY && (cmd->cmnd[1] & 0x03) == 0) cmnd 2958 drivers/ata/libata-scsi.c memcpy(qc->cdb, scmd->cmnd, scmd->cmd_len); cmnd 3147 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cmnd 3456 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cmnd 3565 drivers/ata/libata-scsi.c u8 *cdb = args->cmd->cmnd; cmnd 3698 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cmnd 3782 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cmnd 3980 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cmnd 4138 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cmnd 4204 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cmnd 4302 drivers/ata/libata-scsi.c cmd->cmnd); cmnd 4309 drivers/ata/libata-scsi.c u8 scsi_op = scmd->cmnd[0]; cmnd 4417 drivers/ata/libata-scsi.c const u8 *scsicmd = cmd->cmnd; cmnd 438 drivers/ata/pata_pdc2027x.c u8 *scsicmd = cmd->cmnd; cmnd 1858 drivers/ata/sata_mv.c switch (scmd->cmnd[0]) { cmnd 1059 drivers/ata/sata_promise.c u8 *scsicmd = qc->scsicmd->cmnd; cmnd 84 drivers/ata/sata_svw.c u8 cmnd = qc->scsicmd->cmnd[0]; cmnd 89 drivers/ata/sata_svw.c switch (cmnd) { cmnd 918 drivers/ata/sata_sx4.c u8 *scsicmd = qc->scsicmd->cmnd; cmnd 1472 drivers/firewire/sbp2.c memcpy(orb->request.command_block, cmd->cmnd, cmd->cmd_len); cmnd 2385 drivers/infiniband/ulp/srp/ib_srp.c memcpy(cmd->cdb, scmnd->cmnd, scmnd->cmd_len); cmnd 1397 drivers/message/fusion/mptscsih.c pScsiReq->CDB[ii] = SCpnt->cmnd[ii]; cmnd 342 drivers/mmc/host/vub300.c union sd_command cmnd; cmnd 482 drivers/mmc/host/vub300.c vub300->cmnd.poll.header_size = 22; cmnd 483 drivers/mmc/host/vub300.c vub300->cmnd.poll.header_type = 1; cmnd 484 drivers/mmc/host/vub300.c vub300->cmnd.poll.port_number = 0; cmnd 485 drivers/mmc/host/vub300.c vub300->cmnd.poll.command_type = 2; cmnd 486 drivers/mmc/host/vub300.c vub300->cmnd.poll.poll_timeout_lsb = 0xFF & (unsigned)timeout; cmnd 487 drivers/mmc/host/vub300.c vub300->cmnd.poll.poll_timeout_msb = 0xFF & (unsigned)(timeout >> 8); cmnd 490 drivers/mmc/host/vub300.c , &vub300->cmnd, sizeof(vub300->cmnd) cmnd 1066 drivers/mmc/host/vub300.c vub300->cmnd.head.header_size = 20; cmnd 1067 drivers/mmc/host/vub300.c vub300->cmnd.head.header_type = 0x00; cmnd 1068 drivers/mmc/host/vub300.c vub300->cmnd.head.port_number = 0; /* "0" means port 1 */ cmnd 1069 drivers/mmc/host/vub300.c vub300->cmnd.head.command_type = 0x00; /* standard read command */ cmnd 1070 drivers/mmc/host/vub300.c vub300->cmnd.head.response_type = response_type; cmnd 1071 drivers/mmc/host/vub300.c vub300->cmnd.head.command_index = cmd->opcode; cmnd 1072 drivers/mmc/host/vub300.c vub300->cmnd.head.arguments[0] = cmd->arg >> 24; cmnd 1073 drivers/mmc/host/vub300.c vub300->cmnd.head.arguments[1] = cmd->arg >> 16; cmnd 1074 drivers/mmc/host/vub300.c vub300->cmnd.head.arguments[2] = cmd->arg >> 8; cmnd 1075 drivers/mmc/host/vub300.c vub300->cmnd.head.arguments[3] = cmd->arg >> 0; cmnd 1078 drivers/mmc/host/vub300.c vub300->cmnd.head.block_count[0] = 0; cmnd 1079 drivers/mmc/host/vub300.c vub300->cmnd.head.block_count[1] = 0; cmnd 1080 drivers/mmc/host/vub300.c vub300->cmnd.head.block_size[0] = (vub300->fbs[fn] >> 8) & 0xFF; cmnd 1081 drivers/mmc/host/vub300.c vub300->cmnd.head.block_size[1] = (vub300->fbs[fn] >> 0) & 0xFF; cmnd 1082 drivers/mmc/host/vub300.c vub300->cmnd.head.command_type = 0x00; cmnd 1083 drivers/mmc/host/vub300.c vub300->cmnd.head.transfer_size[0] = 0; cmnd 1084 drivers/mmc/host/vub300.c vub300->cmnd.head.transfer_size[1] = 0; cmnd 1085 drivers/mmc/host/vub300.c vub300->cmnd.head.transfer_size[2] = 0; cmnd 1086 drivers/mmc/host/vub300.c vub300->cmnd.head.transfer_size[3] = 0; cmnd 1088 drivers/mmc/host/vub300.c vub300->cmnd.head.block_count[0] = 0; cmnd 1089 drivers/mmc/host/vub300.c vub300->cmnd.head.block_count[1] = 0; cmnd 1090 drivers/mmc/host/vub300.c vub300->cmnd.head.block_size[0] = (vub300->fbs[0] >> 8) & 0xFF; cmnd 1091 drivers/mmc/host/vub300.c vub300->cmnd.head.block_size[1] = (vub300->fbs[0] >> 0) & 0xFF; cmnd 1092 drivers/mmc/host/vub300.c vub300->cmnd.head.command_type = 0x00; cmnd 1093 drivers/mmc/host/vub300.c vub300->cmnd.head.transfer_size[0] = 0; cmnd 1094 drivers/mmc/host/vub300.c vub300->cmnd.head.transfer_size[1] = 0; cmnd 1095 drivers/mmc/host/vub300.c vub300->cmnd.head.transfer_size[2] = 0; cmnd 1096 drivers/mmc/host/vub300.c vub300->cmnd.head.transfer_size[3] = 0; cmnd 1099 drivers/mmc/host/vub300.c if (0x08 & vub300->cmnd.head.arguments[0]) { /* BLOCK MODE */ cmnd 1100 drivers/mmc/host/vub300.c vub300->cmnd.head.block_count[0] = cmnd 1102 drivers/mmc/host/vub300.c vub300->cmnd.head.block_count[1] = cmnd 1104 drivers/mmc/host/vub300.c vub300->cmnd.head.block_size[0] = cmnd 1106 drivers/mmc/host/vub300.c vub300->cmnd.head.block_size[1] = cmnd 1109 drivers/mmc/host/vub300.c vub300->cmnd.head.block_count[0] = 0; cmnd 1110 drivers/mmc/host/vub300.c vub300->cmnd.head.block_count[1] = 0; cmnd 1111 drivers/mmc/host/vub300.c vub300->cmnd.head.block_size[0] = cmnd 1113 drivers/mmc/host/vub300.c vub300->cmnd.head.block_size[1] = cmnd 1116 drivers/mmc/host/vub300.c vub300->cmnd.head.command_type = cmnd 1118 drivers/mmc/host/vub300.c vub300->cmnd.head.transfer_size[0] = cmnd 1120 drivers/mmc/host/vub300.c vub300->cmnd.head.transfer_size[1] = cmnd 1122 drivers/mmc/host/vub300.c vub300->cmnd.head.transfer_size[2] = cmnd 1124 drivers/mmc/host/vub300.c vub300->cmnd.head.transfer_size[3] = cmnd 1127 drivers/mmc/host/vub300.c vub300->cmnd.head.block_count[0] = 0; cmnd 1128 drivers/mmc/host/vub300.c vub300->cmnd.head.block_count[1] = 0; cmnd 1131 drivers/mmc/host/vub300.c vub300->cmnd.head.block_count[0] = (data->blocks >> 8) & 0xFF; cmnd 1132 drivers/mmc/host/vub300.c vub300->cmnd.head.block_count[1] = (data->blocks >> 0) & 0xFF; cmnd 1133 drivers/mmc/host/vub300.c vub300->cmnd.head.block_size[0] = (data->blksz >> 8) & 0xFF; cmnd 1134 drivers/mmc/host/vub300.c vub300->cmnd.head.block_size[1] = (data->blksz >> 0) & 0xFF; cmnd 1135 drivers/mmc/host/vub300.c vub300->cmnd.head.command_type = cmnd 1137 drivers/mmc/host/vub300.c vub300->cmnd.head.transfer_size[0] = cmnd 1139 drivers/mmc/host/vub300.c vub300->cmnd.head.transfer_size[1] = cmnd 1141 drivers/mmc/host/vub300.c vub300->cmnd.head.transfer_size[2] = cmnd 1143 drivers/mmc/host/vub300.c vub300->cmnd.head.transfer_size[3] = cmnd 1146 drivers/mmc/host/vub300.c vub300->cmnd.head.block_count[0] = 0; cmnd 1147 drivers/mmc/host/vub300.c vub300->cmnd.head.block_count[1] = 0; cmnd 1150 drivers/mmc/host/vub300.c if (vub300->cmnd.head.block_size[0] || vub300->cmnd.head.block_size[1]) { cmnd 1151 drivers/mmc/host/vub300.c u16 block_size = vub300->cmnd.head.block_size[1] | cmnd 1152 drivers/mmc/host/vub300.c (vub300->cmnd.head.block_size[0] << 8); cmnd 1155 drivers/mmc/host/vub300.c vub300->cmnd.head.block_boundary[0] = cmnd 1157 drivers/mmc/host/vub300.c vub300->cmnd.head.block_boundary[1] = cmnd 1160 drivers/mmc/host/vub300.c vub300->cmnd.head.block_boundary[0] = 0; cmnd 1161 drivers/mmc/host/vub300.c vub300->cmnd.head.block_boundary[1] = 0; cmnd 1165 drivers/mmc/host/vub300.c &vub300->cmnd, sizeof(vub300->cmnd), cmnd 2181 drivers/mmc/host/vub300.c vub300->cmnd.head.block_size[0] = 0x00; cmnd 2182 drivers/mmc/host/vub300.c vub300->cmnd.head.block_size[1] = 0x00; cmnd 602 drivers/nvme/host/core.c struct nvme_command *cmnd) cmnd 604 drivers/nvme/host/core.c cmnd->common.opcode = nvme_cmd_flush; cmnd 605 drivers/nvme/host/core.c cmnd->common.nsid = cpu_to_le32(ns->head->ns_id); cmnd 609 drivers/nvme/host/core.c struct nvme_command *cmnd) cmnd 655 drivers/nvme/host/core.c cmnd->dsm.opcode = nvme_cmd_dsm; cmnd 656 drivers/nvme/host/core.c cmnd->dsm.nsid = cpu_to_le32(ns->head->ns_id); cmnd 657 drivers/nvme/host/core.c cmnd->dsm.nr = cpu_to_le32(segments - 1); cmnd 658 drivers/nvme/host/core.c cmnd->dsm.attributes = cpu_to_le32(NVME_DSMGMT_AD); cmnd 669 drivers/nvme/host/core.c struct request *req, struct nvme_command *cmnd) cmnd 672 drivers/nvme/host/core.c return nvme_setup_discard(ns, req, cmnd); cmnd 674 drivers/nvme/host/core.c cmnd->write_zeroes.opcode = nvme_cmd_write_zeroes; cmnd 675 drivers/nvme/host/core.c cmnd->write_zeroes.nsid = cpu_to_le32(ns->head->ns_id); cmnd 676 drivers/nvme/host/core.c cmnd->write_zeroes.slba = cmnd 678 drivers/nvme/host/core.c cmnd->write_zeroes.length = cmnd 680 drivers/nvme/host/core.c cmnd->write_zeroes.control = 0; cmnd 685 drivers/nvme/host/core.c struct request *req, struct nvme_command *cmnd) cmnd 699 drivers/nvme/host/core.c cmnd->rw.opcode = (rq_data_dir(req) ? nvme_cmd_write : nvme_cmd_read); cmnd 700 drivers/nvme/host/core.c cmnd->rw.nsid = cpu_to_le32(ns->head->ns_id); cmnd 701 drivers/nvme/host/core.c cmnd->rw.slba = cpu_to_le64(nvme_block_nr(ns, blk_rq_pos(req))); cmnd 702 drivers/nvme/host/core.c cmnd->rw.length = cpu_to_le16((blk_rq_bytes(req) >> ns->lba_shift) - 1); cmnd 728 drivers/nvme/host/core.c cmnd->rw.reftag = cpu_to_le32(t10_pi_ref_tag(req)); cmnd 733 drivers/nvme/host/core.c cmnd->rw.control = cpu_to_le16(control); cmnd 734 drivers/nvme/host/core.c cmnd->rw.dsmgmt = cpu_to_le32(dsmgmt); cmnd 586 drivers/nvme/host/pci.c struct request *req, struct nvme_rw_command *cmnd) cmnd 666 drivers/nvme/host/pci.c cmnd->dptr.prp1 = cpu_to_le64(sg_dma_address(iod->sg)); cmnd 667 drivers/nvme/host/pci.c cmnd->dptr.prp2 = cpu_to_le64(iod->first_dma); cmnd 759 drivers/nvme/host/pci.c struct request *req, struct nvme_rw_command *cmnd, cmnd 771 drivers/nvme/host/pci.c cmnd->dptr.prp1 = cpu_to_le64(iod->first_dma); cmnd 773 drivers/nvme/host/pci.c cmnd->dptr.prp2 = cpu_to_le64(iod->first_dma + first_prp_len); cmnd 778 drivers/nvme/host/pci.c struct request *req, struct nvme_rw_command *cmnd, cmnd 788 drivers/nvme/host/pci.c cmnd->flags = NVME_CMD_SGL_METABUF; cmnd 789 drivers/nvme/host/pci.c cmnd->dptr.sgl.addr = cpu_to_le64(iod->first_dma); cmnd 790 drivers/nvme/host/pci.c cmnd->dptr.sgl.length = cpu_to_le32(iod->dma_len); cmnd 791 drivers/nvme/host/pci.c cmnd->dptr.sgl.type = NVME_SGL_FMT_DATA_DESC << 4; cmnd 796 drivers/nvme/host/pci.c struct nvme_command *cmnd) cmnd 808 drivers/nvme/host/pci.c &cmnd->rw, &bv); cmnd 813 drivers/nvme/host/pci.c &cmnd->rw, &bv); cmnd 837 drivers/nvme/host/pci.c ret = nvme_pci_setup_sgls(dev, req, &cmnd->rw, nr_mapped); cmnd 839 drivers/nvme/host/pci.c ret = nvme_pci_setup_prps(dev, req, &cmnd->rw); cmnd 847 drivers/nvme/host/pci.c struct nvme_command *cmnd) cmnd 855 drivers/nvme/host/pci.c cmnd->rw.metadata = cpu_to_le64(iod->meta_dma); cmnd 870 drivers/nvme/host/pci.c struct nvme_command cmnd; cmnd 884 drivers/nvme/host/pci.c ret = nvme_setup_cmd(ns, req, &cmnd); cmnd 889 drivers/nvme/host/pci.c ret = nvme_map_data(dev, req, &cmnd); cmnd 895 drivers/nvme/host/pci.c ret = nvme_map_metadata(dev, req, &cmnd); cmnd 901 drivers/nvme/host/pci.c nvme_submit_cmd(nvmeq, &cmnd, bd->last); cmnd 637 drivers/s390/scsi/zfcp_dbf.c memcpy(rec->scsi_opcode, sc->cmnd, cmnd 240 drivers/s390/scsi/zfcp_fc.h memcpy(fcp->fc_cdb, scsi->cmnd, scsi->cmd_len); cmnd 1734 drivers/scsi/3w-9xxx.c TW_DRIVER, 0x2c, SCpnt->cmnd[0]); cmnd 1833 drivers/scsi/3w-9xxx.c memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); cmnd 1891 drivers/scsi/3w-9xxx.c if (srb->cmnd[0] == READ_6 || srb->cmnd[0] == WRITE_6) cmnd 1892 drivers/scsi/3w-9xxx.c num_sectors = (u32)srb->cmnd[4]; cmnd 1894 drivers/scsi/3w-9xxx.c if (srb->cmnd[0] == READ_10 || srb->cmnd[0] == WRITE_10) cmnd 1895 drivers/scsi/3w-9xxx.c num_sectors = (u32)srb->cmnd[8] | ((u32)srb->cmnd[7] << 8); cmnd 319 drivers/scsi/3w-sas.c memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); cmnd 1442 drivers/scsi/3w-sas.c TW_DRIVER, 0x2c, SCpnt->cmnd[0]); cmnd 1382 drivers/scsi/3w-xxxx.c SCpnt->cmnd[0]); cmnd 1508 drivers/scsi/3w-xxxx.c if (tw_dev->srb[request_id]->cmnd[2] != 0x8) { cmnd 1723 drivers/scsi/3w-xxxx.c if (srb->cmnd[0] == READ_6 || srb->cmnd[0] == READ_10) { cmnd 1735 drivers/scsi/3w-xxxx.c if (srb->cmnd[0] == WRITE_10) { cmnd 1736 drivers/scsi/3w-xxxx.c if ((srb->cmnd[1] & 0x8) || (srb->cmnd[1] & 0x10)) cmnd 1740 drivers/scsi/3w-xxxx.c if (srb->cmnd[0] == READ_6 || srb->cmnd[0] == WRITE_6) { cmnd 1741 drivers/scsi/3w-xxxx.c lba = ((u32)srb->cmnd[1] << 16) | ((u32)srb->cmnd[2] << 8) | (u32)srb->cmnd[3]; cmnd 1742 drivers/scsi/3w-xxxx.c num_sectors = (u32)srb->cmnd[4]; cmnd 1744 drivers/scsi/3w-xxxx.c lba = ((u32)srb->cmnd[2] << 24) | ((u32)srb->cmnd[3] << 16) | ((u32)srb->cmnd[4] << 8) | (u32)srb->cmnd[5]; cmnd 1745 drivers/scsi/3w-xxxx.c num_sectors = (u32)srb->cmnd[8] | ((u32)srb->cmnd[7] << 8); cmnd 1927 drivers/scsi/3w-xxxx.c unsigned char *command = SCpnt->cmnd; cmnd 2126 drivers/scsi/3w-xxxx.c switch (tw_dev->srb[request_id]->cmnd[0]) { cmnd 536 drivers/scsi/53c700.c slot->cmnd = NULL; cmnd 584 drivers/scsi/53c700.c char *cmnd = NCR_700_get_sense_cmnd(SCp->device); cmnd 591 drivers/scsi/53c700.c result = cmnd[7]; cmnd 593 drivers/scsi/53c700.c SCp->cmd_len = cmnd[8]; cmnd 968 drivers/scsi/53c700.c char *cmnd = cmnd 987 drivers/scsi/53c700.c cmnd[0] = REQUEST_SENSE; cmnd 988 drivers/scsi/53c700.c cmnd[1] = (lun & 0x7) << 5; cmnd 989 drivers/scsi/53c700.c cmnd[2] = 0; cmnd 990 drivers/scsi/53c700.c cmnd[3] = 0; cmnd 991 drivers/scsi/53c700.c cmnd[4] = SCSI_SENSE_BUFFERSIZE; cmnd 992 drivers/scsi/53c700.c cmnd[5] = 0; cmnd 999 drivers/scsi/53c700.c cmnd[6] = NCR_700_INTERNAL_SENSE_MAGIC; cmnd 1000 drivers/scsi/53c700.c cmnd[7] = hostdata->status[0]; cmnd 1001 drivers/scsi/53c700.c cmnd[8] = SCp->cmd_len; cmnd 1004 drivers/scsi/53c700.c slot->pCmd = dma_map_single(hostdata->dev, cmnd, MAX_COMMAND_SIZE, DMA_TO_DEVICE); cmnd 1129 drivers/scsi/53c700.c hostdata->cmd = slot->cmnd; cmnd 1135 drivers/scsi/53c700.c CommandCount, slot->cmnd->cmd_len); cmnd 1153 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, slot->cmnd->cmnd, cmnd 1154 drivers/scsi/53c700.c slot->cmnd->cmd_len, DMA_TO_DEVICE); cmnd 1189 drivers/scsi/53c700.c printk(KERN_INFO "IDENTIFIED SG segment as being %08x in slot %p, cmd %p, slot->resume_offset=%08x\n", SG, &hostdata->slots[i], hostdata->slots[i].cmnd, hostdata->slots[i].resume_offset); cmnd 1190 drivers/scsi/53c700.c SCp = hostdata->slots[i].cmnd; cmnd 1392 drivers/scsi/53c700.c SCp->device->host->host_no, slot->cmnd, slot)); cmnd 1401 drivers/scsi/53c700.c hostdata->msgout[0] = NCR_700_identify((SCp->cmnd[0] != REQUEST_SENSE && cmnd 1407 drivers/scsi/53c700.c if(SCp->cmnd[0] == INQUIRY || SCp->cmnd[0] == REQUEST_SENSE || cmnd 1417 drivers/scsi/53c700.c && (slot->tag != SCSI_NO_TAG && SCp->cmnd[0] != REQUEST_SENSE && cmnd 1452 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, SCp->cmnd, SCp->cmd_len, DMA_TO_DEVICE); cmnd 1543 drivers/scsi/53c700.c SCp = slot->cmnd; cmnd 1721 drivers/scsi/53c700.c if(NCR_700_start_command(hostdata->slots[j].cmnd)) { cmnd 1724 drivers/scsi/53c700.c hostdata->slots[j].cmnd)); cmnd 1776 drivers/scsi/53c700.c slot->cmnd = SCp; cmnd 1831 drivers/scsi/53c700.c switch (SCp->cmnd[0]) { cmnd 1834 drivers/scsi/53c700.c SCp->cmnd[6] = 0; cmnd 1887 drivers/scsi/53c700.c slot->pCmd = dma_map_single(hostdata->dev, SCp->cmnd, cmnd 1907 drivers/scsi/53c700.c if(SCp->cmnd[0] == TEST_UNIT_READY) { cmnd 84 drivers/scsi/53c700.h unsigned char cmnd[MAX_COMMAND_SIZE]; cmnd 112 drivers/scsi/53c700.h return hostdata->cmnd; cmnd 185 drivers/scsi/53c700.h struct scsi_cmnd *cmnd; cmnd 3028 drivers/scsi/BusLogic.c unsigned char *cdb = command->cmnd; cmnd 558 drivers/scsi/NCR5380.c switch (cmd->cmnd[0]) { cmnd 582 drivers/scsi/NCR5380.c if (cmd->cmnd[0] == REQUEST_SENSE) cmnd 590 drivers/scsi/NCR5380.c cmd, (cmd->cmnd[0] == REQUEST_SENSE) ? "head" : "tail"); cmnd 960 drivers/scsi/NCR5380.c cmd->cmnd[0] != REQUEST_SENSE && cmnd 1810 drivers/scsi/NCR5380.c if (cmd->cmnd[0] == REQUEST_SENSE) cmnd 1968 drivers/scsi/NCR5380.c data = cmd->cmnd; cmnd 900 drivers/scsi/a100u2w.c memcpy(scb->cdb, cmd->cmnd, scb->cdb_len); cmnd 991 drivers/scsi/aacraid/aachba.c if (scsicmd->cmnd[2] == 0x83) { cmnd 1082 drivers/scsi/aacraid/aachba.c sp[1] = scsicmd->cmnd[2]; cmnd 1548 drivers/scsi/aacraid/aachba.c memcpy(hbacmd->cdb, cmd->cmnd, cmd->cmd_len); cmnd 1573 drivers/scsi/aacraid/aachba.c memcpy(srbcmd->cdb, cmd->cmnd, cmd->cmd_len); cmnd 1604 drivers/scsi/aacraid/aachba.c memcpy(srbcmd->cdb, cmd->cmnd, cmd->cmd_len); cmnd 2324 drivers/scsi/aacraid/aachba.c switch (scsicmd->cmnd[0]) { cmnd 2327 drivers/scsi/aacraid/aachba.c lba = ((scsicmd->cmnd[1] & 0x1F) << 16) | cmnd 2328 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[2] << 8) | scsicmd->cmnd[3]; cmnd 2332 drivers/scsi/aacraid/aachba.c lba = ((u64)scsicmd->cmnd[2] << 56) | cmnd 2333 drivers/scsi/aacraid/aachba.c ((u64)scsicmd->cmnd[3] << 48) | cmnd 2334 drivers/scsi/aacraid/aachba.c ((u64)scsicmd->cmnd[4] << 40) | cmnd 2335 drivers/scsi/aacraid/aachba.c ((u64)scsicmd->cmnd[5] << 32) | cmnd 2336 drivers/scsi/aacraid/aachba.c ((u64)scsicmd->cmnd[6] << 24) | cmnd 2337 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[7] << 16) | cmnd 2338 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[8] << 8) | scsicmd->cmnd[9]; cmnd 2342 drivers/scsi/aacraid/aachba.c lba = ((u64)scsicmd->cmnd[2] << 24) | cmnd 2343 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[3] << 16) | cmnd 2344 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[4] << 8) | scsicmd->cmnd[5]; cmnd 2347 drivers/scsi/aacraid/aachba.c lba = ((u64)scsicmd->cmnd[2] << 24) | cmnd 2348 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[3] << 16) | cmnd 2349 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[4] << 8) | scsicmd->cmnd[5]; cmnd 2419 drivers/scsi/aacraid/aachba.c switch (scsicmd->cmnd[0]) { cmnd 2423 drivers/scsi/aacraid/aachba.c lba = ((scsicmd->cmnd[1] & 0x1F) << 16) | cmnd 2424 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[2] << 8) | scsicmd->cmnd[3]; cmnd 2425 drivers/scsi/aacraid/aachba.c count = scsicmd->cmnd[4]; cmnd 2433 drivers/scsi/aacraid/aachba.c lba = ((u64)scsicmd->cmnd[2] << 56) | cmnd 2434 drivers/scsi/aacraid/aachba.c ((u64)scsicmd->cmnd[3] << 48) | cmnd 2435 drivers/scsi/aacraid/aachba.c ((u64)scsicmd->cmnd[4] << 40) | cmnd 2436 drivers/scsi/aacraid/aachba.c ((u64)scsicmd->cmnd[5] << 32) | cmnd 2437 drivers/scsi/aacraid/aachba.c ((u64)scsicmd->cmnd[6] << 24) | cmnd 2438 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[7] << 16) | cmnd 2439 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[8] << 8) | scsicmd->cmnd[9]; cmnd 2440 drivers/scsi/aacraid/aachba.c count = (scsicmd->cmnd[10] << 24) | cmnd 2441 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[11] << 16) | cmnd 2442 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[12] << 8) | scsicmd->cmnd[13]; cmnd 2447 drivers/scsi/aacraid/aachba.c lba = ((u64)scsicmd->cmnd[2] << 24) | cmnd 2448 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[3] << 16) | cmnd 2449 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[4] << 8) | scsicmd->cmnd[5]; cmnd 2450 drivers/scsi/aacraid/aachba.c count = (scsicmd->cmnd[6] << 24) | cmnd 2451 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[7] << 16) | cmnd 2452 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[8] << 8) | scsicmd->cmnd[9]; cmnd 2457 drivers/scsi/aacraid/aachba.c lba = ((u64)scsicmd->cmnd[2] << 24) | cmnd 2458 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[3] << 16) | cmnd 2459 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[4] << 8) | scsicmd->cmnd[5]; cmnd 2460 drivers/scsi/aacraid/aachba.c count = (scsicmd->cmnd[7] << 8) | scsicmd->cmnd[8]; cmnd 2521 drivers/scsi/aacraid/aachba.c if (scsicmd->cmnd[0] == WRITE_6) /* 6 byte command */ cmnd 2523 drivers/scsi/aacraid/aachba.c lba = ((scsicmd->cmnd[1] & 0x1F) << 16) | (scsicmd->cmnd[2] << 8) | scsicmd->cmnd[3]; cmnd 2524 drivers/scsi/aacraid/aachba.c count = scsicmd->cmnd[4]; cmnd 2528 drivers/scsi/aacraid/aachba.c } else if (scsicmd->cmnd[0] == WRITE_16) { /* 16 byte command */ cmnd 2531 drivers/scsi/aacraid/aachba.c lba = ((u64)scsicmd->cmnd[2] << 56) | cmnd 2532 drivers/scsi/aacraid/aachba.c ((u64)scsicmd->cmnd[3] << 48) | cmnd 2533 drivers/scsi/aacraid/aachba.c ((u64)scsicmd->cmnd[4] << 40) | cmnd 2534 drivers/scsi/aacraid/aachba.c ((u64)scsicmd->cmnd[5] << 32) | cmnd 2535 drivers/scsi/aacraid/aachba.c ((u64)scsicmd->cmnd[6] << 24) | cmnd 2536 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[7] << 16) | cmnd 2537 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[8] << 8) | scsicmd->cmnd[9]; cmnd 2538 drivers/scsi/aacraid/aachba.c count = (scsicmd->cmnd[10] << 24) | (scsicmd->cmnd[11] << 16) | cmnd 2539 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[12] << 8) | scsicmd->cmnd[13]; cmnd 2540 drivers/scsi/aacraid/aachba.c fua = scsicmd->cmnd[1] & 0x8; cmnd 2541 drivers/scsi/aacraid/aachba.c } else if (scsicmd->cmnd[0] == WRITE_12) { /* 12 byte command */ cmnd 2544 drivers/scsi/aacraid/aachba.c lba = ((u64)scsicmd->cmnd[2] << 24) | (scsicmd->cmnd[3] << 16) cmnd 2545 drivers/scsi/aacraid/aachba.c | (scsicmd->cmnd[4] << 8) | scsicmd->cmnd[5]; cmnd 2546 drivers/scsi/aacraid/aachba.c count = (scsicmd->cmnd[6] << 24) | (scsicmd->cmnd[7] << 16) cmnd 2547 drivers/scsi/aacraid/aachba.c | (scsicmd->cmnd[8] << 8) | scsicmd->cmnd[9]; cmnd 2548 drivers/scsi/aacraid/aachba.c fua = scsicmd->cmnd[1] & 0x8; cmnd 2551 drivers/scsi/aacraid/aachba.c lba = ((u64)scsicmd->cmnd[2] << 24) | (scsicmd->cmnd[3] << 16) | (scsicmd->cmnd[4] << 8) | scsicmd->cmnd[5]; cmnd 2552 drivers/scsi/aacraid/aachba.c count = (scsicmd->cmnd[7] << 8) | scsicmd->cmnd[8]; cmnd 2553 drivers/scsi/aacraid/aachba.c fua = scsicmd->cmnd[1] & 0x8; cmnd 2650 drivers/scsi/aacraid/aachba.c u64 lba = ((u64)scsicmd->cmnd[2] << 24) | (scsicmd->cmnd[3] << 16) | cmnd 2651 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[4] << 8) | scsicmd->cmnd[5]; cmnd 2652 drivers/scsi/aacraid/aachba.c u32 count = (scsicmd->cmnd[7] << 8) | scsicmd->cmnd[8]; cmnd 2665 drivers/scsi/aacraid/aachba.c if (cmd->cmnd[0] == WRITE_6) { cmnd 2666 drivers/scsi/aacraid/aachba.c cmnd_lba = ((cmd->cmnd[1] & 0x1F) << 16) | cmnd 2667 drivers/scsi/aacraid/aachba.c (cmd->cmnd[2] << 8) | cmnd 2668 drivers/scsi/aacraid/aachba.c cmd->cmnd[3]; cmnd 2669 drivers/scsi/aacraid/aachba.c cmnd_count = cmd->cmnd[4]; cmnd 2672 drivers/scsi/aacraid/aachba.c } else if (cmd->cmnd[0] == WRITE_16) { cmnd 2673 drivers/scsi/aacraid/aachba.c cmnd_lba = ((u64)cmd->cmnd[2] << 56) | cmnd 2674 drivers/scsi/aacraid/aachba.c ((u64)cmd->cmnd[3] << 48) | cmnd 2675 drivers/scsi/aacraid/aachba.c ((u64)cmd->cmnd[4] << 40) | cmnd 2676 drivers/scsi/aacraid/aachba.c ((u64)cmd->cmnd[5] << 32) | cmnd 2677 drivers/scsi/aacraid/aachba.c ((u64)cmd->cmnd[6] << 24) | cmnd 2678 drivers/scsi/aacraid/aachba.c (cmd->cmnd[7] << 16) | cmnd 2679 drivers/scsi/aacraid/aachba.c (cmd->cmnd[8] << 8) | cmnd 2680 drivers/scsi/aacraid/aachba.c cmd->cmnd[9]; cmnd 2681 drivers/scsi/aacraid/aachba.c cmnd_count = (cmd->cmnd[10] << 24) | cmnd 2682 drivers/scsi/aacraid/aachba.c (cmd->cmnd[11] << 16) | cmnd 2683 drivers/scsi/aacraid/aachba.c (cmd->cmnd[12] << 8) | cmnd 2684 drivers/scsi/aacraid/aachba.c cmd->cmnd[13]; cmnd 2685 drivers/scsi/aacraid/aachba.c } else if (cmd->cmnd[0] == WRITE_12) { cmnd 2686 drivers/scsi/aacraid/aachba.c cmnd_lba = ((u64)cmd->cmnd[2] << 24) | cmnd 2687 drivers/scsi/aacraid/aachba.c (cmd->cmnd[3] << 16) | cmnd 2688 drivers/scsi/aacraid/aachba.c (cmd->cmnd[4] << 8) | cmnd 2689 drivers/scsi/aacraid/aachba.c cmd->cmnd[5]; cmnd 2690 drivers/scsi/aacraid/aachba.c cmnd_count = (cmd->cmnd[6] << 24) | cmnd 2691 drivers/scsi/aacraid/aachba.c (cmd->cmnd[7] << 16) | cmnd 2692 drivers/scsi/aacraid/aachba.c (cmd->cmnd[8] << 8) | cmnd 2693 drivers/scsi/aacraid/aachba.c cmd->cmnd[9]; cmnd 2694 drivers/scsi/aacraid/aachba.c } else if (cmd->cmnd[0] == WRITE_10) { cmnd 2695 drivers/scsi/aacraid/aachba.c cmnd_lba = ((u64)cmd->cmnd[2] << 24) | cmnd 2696 drivers/scsi/aacraid/aachba.c (cmd->cmnd[3] << 16) | cmnd 2697 drivers/scsi/aacraid/aachba.c (cmd->cmnd[4] << 8) | cmnd 2698 drivers/scsi/aacraid/aachba.c cmd->cmnd[5]; cmnd 2699 drivers/scsi/aacraid/aachba.c cmnd_count = (cmd->cmnd[7] << 8) | cmnd 2700 drivers/scsi/aacraid/aachba.c cmd->cmnd[8]; cmnd 2808 drivers/scsi/aacraid/aachba.c pmcmd->sub = (scsicmd->cmnd[4] & 1) ? cmnd 2811 drivers/scsi/aacraid/aachba.c pmcmd->parm = (scsicmd->cmnd[1] & 1) ? cmnd 2875 drivers/scsi/aacraid/aachba.c switch (scsicmd->cmnd[0]) { cmnd 2879 drivers/scsi/aacraid/aachba.c ((scsicmd->cmnd[1] & 0x1f) != SAI_READ_CAPACITY_16)) cmnd 2916 drivers/scsi/aacraid/aachba.c else if ((scsicmd->cmnd[0] != INQUIRY) && /* only INQUIRY & TUR cmnd supported for controller */ cmnd 2917 drivers/scsi/aacraid/aachba.c (scsicmd->cmnd[0] != TEST_UNIT_READY)) cmnd 2919 drivers/scsi/aacraid/aachba.c dprintk((KERN_WARNING "Only INQUIRY & TUR command supported for controller, rcvd = 0x%x.\n", scsicmd->cmnd[0])); cmnd 2930 drivers/scsi/aacraid/aachba.c switch (scsicmd->cmnd[0]) { cmnd 2964 drivers/scsi/aacraid/aachba.c if ((scsicmd->cmnd[1] & 0x1) && aac_wwn) { cmnd 2970 drivers/scsi/aacraid/aachba.c if (scsicmd->cmnd[2] == 0) { cmnd 2976 drivers/scsi/aacraid/aachba.c arr[1] = scsicmd->cmnd[2]; cmnd 2982 drivers/scsi/aacraid/aachba.c } else if (scsicmd->cmnd[2] == 0x80) { cmnd 2986 drivers/scsi/aacraid/aachba.c arr[1] = scsicmd->cmnd[2]; cmnd 2995 drivers/scsi/aacraid/aachba.c } else if (scsicmd->cmnd[2] == 0x83) { cmnd 3050 drivers/scsi/aacraid/aachba.c ((scsicmd->cmnd[1] & 0x1f) != SAI_READ_CAPACITY_16)) cmnd 3073 drivers/scsi/aacraid/aachba.c alloc_len = ((scsicmd->cmnd[10] << 24) cmnd 3074 drivers/scsi/aacraid/aachba.c + (scsicmd->cmnd[11] << 16) cmnd 3075 drivers/scsi/aacraid/aachba.c + (scsicmd->cmnd[12] << 8) + scsicmd->cmnd[13]); cmnd 3143 drivers/scsi/aacraid/aachba.c if (scsicmd->cmnd[1] & 0x8) cmnd 3155 drivers/scsi/aacraid/aachba.c mpd.mpc_buf[0] = scsicmd->cmnd[2]; cmnd 3156 drivers/scsi/aacraid/aachba.c if (scsicmd->cmnd[2] == 0x1C) { cmnd 3176 drivers/scsi/aacraid/aachba.c if (((scsicmd->cmnd[2] & 0x3f) == 8) || cmnd 3177 drivers/scsi/aacraid/aachba.c ((scsicmd->cmnd[2] & 0x3f) == 0x3f)) { cmnd 3186 drivers/scsi/aacraid/aachba.c if (mode_buf_length > scsicmd->cmnd[4]) cmnd 3187 drivers/scsi/aacraid/aachba.c mode_buf_length = scsicmd->cmnd[4]; cmnd 3225 drivers/scsi/aacraid/aachba.c if (scsicmd->cmnd[1] & 0x8) { cmnd 3256 drivers/scsi/aacraid/aachba.c if (((scsicmd->cmnd[2] & 0x3f) == 8) || cmnd 3257 drivers/scsi/aacraid/aachba.c ((scsicmd->cmnd[2] & 0x3f) == 0x3f)) { cmnd 3264 drivers/scsi/aacraid/aachba.c if (mode_buf_length > scsicmd->cmnd[8]) cmnd 3265 drivers/scsi/aacraid/aachba.c mode_buf_length = scsicmd->cmnd[8]; cmnd 3287 drivers/scsi/aacraid/aachba.c if (scsicmd->cmnd[4]) cmnd 3331 drivers/scsi/aacraid/aachba.c scsicmd->cmnd[0])); cmnd 3502 drivers/scsi/aacraid/aachba.c if (scsicmd->cmnd[0] == INQUIRY && !(scsicmd->cmnd[1] & 0x01) cmnd 3534 drivers/scsi/aacraid/aachba.c switch (scsicmd->cmnd[0]) { cmnd 3623 drivers/scsi/aacraid/aachba.c scsicmd->cmnd[0], cmnd 3633 drivers/scsi/aacraid/aachba.c if ((scsicmd->cmnd[0] == ATA_12) cmnd 3634 drivers/scsi/aacraid/aachba.c || (scsicmd->cmnd[0] == ATA_16)) { cmnd 3636 drivers/scsi/aacraid/aachba.c if (scsicmd->cmnd[2] & (0x01 << 5)) { cmnd 746 drivers/scsi/aacraid/linit.c switch (cmd->cmnd[0]) { cmnd 750 drivers/scsi/aacraid/linit.c ((cmd->cmnd[1] & 0x1f) != SAI_READ_CAPACITY_16)) cmnd 5971 drivers/scsi/advansys.c ASC_DBG_PRT_CDB(2, scp->cmnd, scp->cmd_len); cmnd 6756 drivers/scsi/advansys.c ASC_DBG_PRT_CDB(2, scp->cmnd, scp->cmd_len); cmnd 7527 drivers/scsi/advansys.c asc_scsi_q->cdbptr = &scp->cmnd[0]; cmnd 7608 drivers/scsi/advansys.c ASC_DBG_PRT_CDB(1, scp->cmnd, scp->cmd_len); cmnd 7780 drivers/scsi/advansys.c memcpy(scsiqp->cdb, scp->cmnd, scp->cmd_len < 12 ? scp->cmd_len : 12); cmnd 7785 drivers/scsi/advansys.c memcpy(scsiqp->cdb16, &scp->cmnd[12], cdb16_len); cmnd 7847 drivers/scsi/advansys.c ASC_DBG_PRT_CDB(1, scp->cmnd, scp->cmd_len); cmnd 1911 drivers/scsi/aha152x.c SETPORT(SCSIDAT, CURRENT_SC->cmnd[CMD_I++]); cmnd 2488 drivers/scsi/aha152x.c for (i = 0; i < COMMAND_SIZE(ptr->cmnd[0]); i++) cmnd 2489 drivers/scsi/aha152x.c seq_printf(m, "0x%02x ", ptr->cmnd[i]); cmnd 405 drivers/scsi/aha1542.c if (*cmd->cmnd == REQUEST_SENSE) { cmnd 414 drivers/scsi/aha1542.c if (*cmd->cmnd == READ_10 || *cmd->cmnd == WRITE_10) cmnd 415 drivers/scsi/aha1542.c i = xscsi2int(cmd->cmnd + 2); cmnd 416 drivers/scsi/aha1542.c else if (*cmd->cmnd == READ_6 || *cmd->cmnd == WRITE_6) cmnd 417 drivers/scsi/aha1542.c i = scsi2int(cmd->cmnd + 2); cmnd 419 drivers/scsi/aha1542.c target, *cmd->cmnd, i, bufflen); cmnd 420 drivers/scsi/aha1542.c print_hex_dump_bytes("command: ", DUMP_PREFIX_NONE, cmd->cmnd, cmd->cmd_len); cmnd 472 drivers/scsi/aha1542.c if (*cmd->cmnd == READ_10 || *cmd->cmnd == READ_6) cmnd 474 drivers/scsi/aha1542.c else if (*cmd->cmnd == WRITE_10 || *cmd->cmnd == WRITE_6) cmnd 477 drivers/scsi/aha1542.c memcpy(ccb[mbo].cdb, cmd->cmnd, ccb[mbo].cdblen); cmnd 318 drivers/scsi/aha1740.c unchar *cmd = (unchar *) SCpnt->cmnd; cmnd 805 drivers/scsi/aic7xxx/aic79xx_osm.c printk(" 0x%x", cmd->cmnd[cdb_byte]); cmnd 1627 drivers/scsi/aic7xxx/aic79xx_osm.c memcpy(hscb->shared_data.idata.cdb, cmd->cmnd, hscb->cdb_len); cmnd 1831 drivers/scsi/aic7xxx/aic79xx_osm.c printk(" 0x%x", scb->io_ctx->cmnd[i]); cmnd 2175 drivers/scsi/aic7xxx/aic79xx_osm.c printk(" 0x%x", cmd->cmnd[cdb_byte]); cmnd 1508 drivers/scsi/aic7xxx/aic7xxx_osm.c memcpy(hscb->shared_data.cdb, cmd->cmnd, hscb->cdb_len); cmnd 1510 drivers/scsi/aic7xxx/aic7xxx_osm.c memcpy(hscb->cdb32, cmd->cmnd, hscb->cdb_len); cmnd 1760 drivers/scsi/aic7xxx/aic7xxx_osm.c printk(" 0x%x", scb->io_ctx->cmnd[i]); cmnd 2077 drivers/scsi/aic7xxx/aic7xxx_osm.c printk(" 0x%x", cmd->cmnd[cdb_byte]); cmnd 490 drivers/scsi/aic94xx/aic94xx_task.c memcpy(scb->ssp_task.ssp_cmd.cdb, task->ssp_task.cmd->cmnd, cmnd 1741 drivers/scsi/arcmsr/arcmsr_hba.c memcpy(arcmsr_cdb->Cdb, pcmd->cmnd, pcmd->cmd_len); cmnd 2775 drivers/scsi/arcmsr/arcmsr_hba.c uint32_t controlcode = (uint32_t)cmd->cmnd[5] << 24 | cmnd 2776 drivers/scsi/arcmsr/arcmsr_hba.c (uint32_t)cmd->cmnd[6] << 16 | cmnd 2777 drivers/scsi/arcmsr/arcmsr_hba.c (uint32_t)cmd->cmnd[7] << 8 | cmnd 2778 drivers/scsi/arcmsr/arcmsr_hba.c (uint32_t)cmd->cmnd[8]; cmnd 3041 drivers/scsi/arcmsr/arcmsr_hba.c switch (cmd->cmnd[0]) { cmnd 746 drivers/scsi/arm/acornscsi.c SCpnt->cmnd[0])); cmnd 766 drivers/scsi/arm/acornscsi.c switch (acornscsi_cmdtype(SCpnt->cmnd[0])) { cmnd 818 drivers/scsi/arm/acornscsi.c acornscsi_cmdtype(SCpnt->cmnd[0]) != CMD_MISC) cmnd 1314 drivers/scsi/arm/acornscsi.c if (acornscsi_write_pio(host, SCpnt->cmnd, cmnd 1706 drivers/scsi/arm/acornscsi.c if (host->SCpnt->cmnd[0] == REQUEST_SENSE || cmnd 1707 drivers/scsi/arm/acornscsi.c host->SCpnt->cmnd[0] == TEST_UNIT_READY || cmnd 1708 drivers/scsi/arm/acornscsi.c host->SCpnt->cmnd[0] == INQUIRY) cmnd 2480 drivers/scsi/arm/acornscsi.c if (acornscsi_cmdtype(SCpnt->cmnd[0]) == CMD_WRITE && (NO_WRITE & (1 << SCpnt->device->id))) { cmnd 2493 drivers/scsi/arm/acornscsi.c SCpnt->SCp.phase = (int)acornscsi_datadirection(SCpnt->cmnd[0]); cmnd 1298 drivers/scsi/arm/fas216.c fas216_writeb(info, REG_FF, info->SCpnt->cmnd[i]); cmnd 1724 drivers/scsi/arm/fas216.c fas216_writeb(info, REG_FF, SCpnt->cmnd[i]); cmnd 1781 drivers/scsi/arm/fas216.c disconnect_ok = SCpnt->cmnd[0] != REQUEST_SENSE && cmnd 1800 drivers/scsi/arm/fas216.c (SCpnt->cmnd[0] == REQUEST_SENSE || cmnd 1801 drivers/scsi/arm/fas216.c SCpnt->cmnd[0] == INQUIRY)) { cmnd 1821 drivers/scsi/arm/fas216.c if (SCpnt->device->simple_tags && SCpnt->cmnd[0] != REQUEST_SENSE && cmnd 1822 drivers/scsi/arm/fas216.c SCpnt->cmnd[0] != INQUIRY) { cmnd 1833 drivers/scsi/arm/fas216.c switch (SCpnt->cmnd[0]) { cmnd 2081 drivers/scsi/arm/fas216.c switch (SCpnt->cmnd[0]) { cmnd 2109 drivers/scsi/arm/fas216.c if (SCpnt->cmnd[0] == REQUEST_SENSE) cmnd 50 drivers/scsi/arm/queue.h __queue_add(queue,SCpnt,(SCpnt)->cmnd[0] == REQUEST_SENSE) cmnd 513 drivers/scsi/atari_scsi.c unsigned char opcode = cmd->cmnd[0]; cmnd 524 drivers/scsi/atari_scsi.c if (cmd->device->type == TYPE_TAPE && !(cmd->cmnd[1] & 1)) cmnd 336 drivers/scsi/atp870u.c printk(KERN_DEBUG " %x",workreq->cmnd[l]); cmnd 365 drivers/scsi/atp870u.c if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) || (workreq->cmnd[0] == 0x0a) || (workreq->cmnd[0] == 0x2a)) { cmnd 370 drivers/scsi/atp870u.c if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) || (workreq->cmnd[0] == 0x0a) || (workreq->cmnd[0] == 0x2a)) cmnd 375 drivers/scsi/atp870u.c if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) || (workreq->cmnd[0] == 0x0a) || (workreq->cmnd[0] == 0x2a)) cmnd 744 drivers/scsi/atp870u.c printk(" %x",workreq->cmnd[i]); cmnd 756 drivers/scsi/atp870u.c if (workreq->cmnd[0] == READ_CAPACITY) { cmnd 760 drivers/scsi/atp870u.c if (workreq->cmnd[0] == 0x00) { cmnd 793 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x03 + i, workreq->cmnd[i]); cmnd 888 drivers/scsi/atp870u.c if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) || cmnd 889 drivers/scsi/atp870u.c (workreq->cmnd[0] == 0x0a) || (workreq->cmnd[0] == 0x2a)) { cmnd 894 drivers/scsi/atp870u.c if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) || (workreq->cmnd[0] == 0x0a) || (workreq->cmnd[0] == 0x2a)) cmnd 899 drivers/scsi/atp870u.c if ((workreq->cmnd[0] == 0x08) || (workreq->cmnd[0] == 0x28) || (workreq->cmnd[0] == 0x0a) || (workreq->cmnd[0] == 0x2a)) cmnd 1610 drivers/scsi/atp870u.c printk(" %2x ",workrequ->cmnd[k]); cmnd 2460 drivers/scsi/bfa/bfa_fcpim.c struct scsi_cmnd *cmnd = (struct scsi_cmnd *) ioim->dio; cmnd 2487 drivers/scsi/bfa/bfa_fcpim.c scsi_for_each_sg(cmnd, sg, ioim->nsges, i) { cmnd 2550 drivers/scsi/bfa/bfa_fcpim.c m->cmnd = cmnd_z0; cmnd 2551 drivers/scsi/bfa/bfa_fcpim.c int_to_scsilun(cmnd->device->lun, &m->cmnd.lun); cmnd 2552 drivers/scsi/bfa/bfa_fcpim.c dmadir = cmnd->sc_data_direction; cmnd 2554 drivers/scsi/bfa/bfa_fcpim.c m->cmnd.iodir = FCP_IODIR_WRITE; cmnd 2556 drivers/scsi/bfa/bfa_fcpim.c m->cmnd.iodir = FCP_IODIR_READ; cmnd 2558 drivers/scsi/bfa/bfa_fcpim.c m->cmnd.iodir = FCP_IODIR_NONE; cmnd 2560 drivers/scsi/bfa/bfa_fcpim.c m->cmnd.cdb = *(struct scsi_cdb_s *) cmnd->cmnd; cmnd 2561 drivers/scsi/bfa/bfa_fcpim.c fcp_dl = scsi_bufflen(cmnd); cmnd 2562 drivers/scsi/bfa/bfa_fcpim.c m->cmnd.fcp_dl = cpu_to_be32(fcp_dl); cmnd 2567 drivers/scsi/bfa/bfa_fcpim.c switch (m->cmnd.iodir) { cmnd 2586 drivers/scsi/bfa/bfa_fcpim.c (scsi_bufflen(cmnd) & (sizeof(u32) - 1))) cmnd 3314 drivers/scsi/bfa/bfa_fcpim.c struct scsi_cmnd *cmnd; cmnd 3324 drivers/scsi/bfa/bfa_fcpim.c cmnd = (struct scsi_cmnd *) ioim->dio; cmnd 3325 drivers/scsi/bfa/bfa_fcpim.c int_to_scsilun(cmnd->device->lun, &scsilun); cmnd 3337 drivers/scsi/bfa/bfa_fcpim.c cmnd = (struct scsi_cmnd *) ioim->dio; cmnd 3338 drivers/scsi/bfa/bfa_fcpim.c int_to_scsilun(cmnd->device->lun, &scsilun); cmnd 27 drivers/scsi/bfa/bfad_im.c static int bfad_im_queuecommand(struct Scsi_Host *h, struct scsi_cmnd *cmnd); cmnd 37 drivers/scsi/bfa/bfad_im.c struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; cmnd 46 drivers/scsi/bfa/bfad_im.c scsi_set_resid(cmnd, 0); cmnd 52 drivers/scsi/bfa/bfad_im.c memcpy(cmnd->sense_buffer, sns_info, sns_len); cmnd 57 drivers/scsi/bfa/bfad_im.c scsi_set_resid(cmnd, residue); cmnd 59 drivers/scsi/bfa/bfad_im.c (scsi_bufflen(cmnd) - residue) < cmnd 60 drivers/scsi/bfa/bfad_im.c cmnd->underflow) { cmnd 65 drivers/scsi/bfa/bfad_im.c cmnd->result = host_status << 16 | scsi_status; cmnd 70 drivers/scsi/bfa/bfad_im.c cmnd->result = DID_TIME_OUT << 16; cmnd 73 drivers/scsi/bfa/bfad_im.c cmnd->result = DID_TRANSPORT_DISRUPTED << 16; cmnd 76 drivers/scsi/bfa/bfad_im.c cmnd->result = DID_ERROR << 16; cmnd 80 drivers/scsi/bfa/bfad_im.c if (cmnd->device->host != NULL) cmnd 81 drivers/scsi/bfa/bfad_im.c scsi_dma_unmap(cmnd); cmnd 83 drivers/scsi/bfa/bfad_im.c cmnd->host_scribble = NULL; cmnd 84 drivers/scsi/bfa/bfad_im.c bfa_trc(bfad, cmnd->result); cmnd 86 drivers/scsi/bfa/bfad_im.c itnim_data = cmnd->device->hostdata; cmnd 89 drivers/scsi/bfa/bfad_im.c if (!cmnd->result && itnim && cmnd 90 drivers/scsi/bfa/bfad_im.c (bfa_lun_queue_depth > cmnd->device->queue_depth)) { cmnd 92 drivers/scsi/bfa/bfad_im.c bfad_ramp_up_qdepth(itnim, cmnd->device); cmnd 93 drivers/scsi/bfa/bfad_im.c } else if (cmnd->result == SAM_STAT_TASK_SET_FULL && itnim) { cmnd 95 drivers/scsi/bfa/bfad_im.c bfad_handle_qfull(itnim, cmnd->device); cmnd 99 drivers/scsi/bfa/bfad_im.c cmnd->scsi_done(cmnd); cmnd 105 drivers/scsi/bfa/bfad_im.c struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; cmnd 109 drivers/scsi/bfa/bfad_im.c cmnd->result = DID_OK << 16 | SCSI_STATUS_GOOD; cmnd 112 drivers/scsi/bfa/bfad_im.c if (cmnd->device->host != NULL) cmnd 113 drivers/scsi/bfa/bfad_im.c scsi_dma_unmap(cmnd); cmnd 115 drivers/scsi/bfa/bfad_im.c cmnd->host_scribble = NULL; cmnd 118 drivers/scsi/bfa/bfad_im.c if (bfa_lun_queue_depth > cmnd->device->queue_depth) { cmnd 119 drivers/scsi/bfa/bfad_im.c itnim_data = cmnd->device->hostdata; cmnd 123 drivers/scsi/bfa/bfad_im.c bfad_ramp_up_qdepth(itnim, cmnd->device); cmnd 127 drivers/scsi/bfa/bfad_im.c cmnd->scsi_done(cmnd); cmnd 133 drivers/scsi/bfa/bfad_im.c struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; cmnd 136 drivers/scsi/bfa/bfad_im.c cmnd->result = DID_ERROR << 16; cmnd 139 drivers/scsi/bfa/bfad_im.c if (cmnd->device->host != NULL) cmnd 140 drivers/scsi/bfa/bfad_im.c scsi_dma_unmap(cmnd); cmnd 142 drivers/scsi/bfa/bfad_im.c bfa_trc(bfad, cmnd->result); cmnd 143 drivers/scsi/bfa/bfad_im.c cmnd->host_scribble = NULL; cmnd 150 drivers/scsi/bfa/bfad_im.c struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dtsk; cmnd 153 drivers/scsi/bfa/bfad_im.c cmnd->SCp.Status |= tsk_status << 1; cmnd 154 drivers/scsi/bfa/bfad_im.c set_bit(IO_DONE_BIT, (unsigned long *)&cmnd->SCp.Status); cmnd 155 drivers/scsi/bfa/bfad_im.c wq = (wait_queue_head_t *) cmnd->SCp.ptr; cmnd 156 drivers/scsi/bfa/bfad_im.c cmnd->SCp.ptr = NULL; cmnd 190 drivers/scsi/bfa/bfad_im.c bfad_im_abort_handler(struct scsi_cmnd *cmnd) cmnd 192 drivers/scsi/bfa/bfad_im.c struct Scsi_Host *shost = cmnd->device->host; cmnd 202 drivers/scsi/bfa/bfad_im.c hal_io = (struct bfa_ioim_s *) cmnd->host_scribble; cmnd 208 drivers/scsi/bfa/bfad_im.c if (hal_io->dio != (struct bfad_ioim_s *) cmnd) { cmnd 216 drivers/scsi/bfa/bfad_im.c im_port->shost->host_no, cmnd, hal_io->iotag); cmnd 222 drivers/scsi/bfa/bfad_im.c while ((struct bfa_ioim_s *) cmnd->host_scribble == hal_io) { cmnd 229 drivers/scsi/bfa/bfad_im.c cmnd->scsi_done(cmnd); cmnd 233 drivers/scsi/bfa/bfad_im.c im_port->shost->host_no, cmnd, hal_io->iotag); cmnd 241 drivers/scsi/bfa/bfad_im.c bfad_im_target_reset_send(struct bfad_s *bfad, struct scsi_cmnd *cmnd, cmnd 249 drivers/scsi/bfa/bfad_im.c tskim = bfa_tskim_alloc(&bfad->bfa, (struct bfad_tskim_s *) cmnd); cmnd 261 drivers/scsi/bfa/bfad_im.c cmnd->host_scribble = NULL; cmnd 262 drivers/scsi/bfa/bfad_im.c cmnd->SCp.Status = 0; cmnd 291 drivers/scsi/bfa/bfad_im.c bfad_im_reset_lun_handler(struct scsi_cmnd *cmnd) cmnd 293 drivers/scsi/bfa/bfad_im.c struct Scsi_Host *shost = cmnd->device->host; cmnd 296 drivers/scsi/bfa/bfad_im.c struct bfad_itnim_data_s *itnim_data = cmnd->device->hostdata; cmnd 315 drivers/scsi/bfa/bfad_im.c tskim = bfa_tskim_alloc(&bfad->bfa, (struct bfad_tskim_s *) cmnd); cmnd 328 drivers/scsi/bfa/bfad_im.c cmnd->host_scribble = NULL; cmnd 329 drivers/scsi/bfa/bfad_im.c cmnd->SCp.ptr = (char *)&wq; cmnd 330 drivers/scsi/bfa/bfad_im.c cmnd->SCp.Status = 0; cmnd 345 drivers/scsi/bfa/bfad_im.c int_to_scsilun(cmnd->device->lun, &scsilun); cmnd 351 drivers/scsi/bfa/bfad_im.c (unsigned long *)&cmnd->SCp.Status)); cmnd 353 drivers/scsi/bfa/bfad_im.c task_status = cmnd->SCp.Status >> 1; cmnd 368 drivers/scsi/bfa/bfad_im.c bfad_im_reset_target_handler(struct scsi_cmnd *cmnd) cmnd 370 drivers/scsi/bfa/bfad_im.c struct Scsi_Host *shost = cmnd->device->host; cmnd 371 drivers/scsi/bfa/bfad_im.c struct scsi_target *starget = scsi_target(cmnd->device); cmnd 384 drivers/scsi/bfa/bfad_im.c cmnd->SCp.ptr = (char *)&wq; cmnd 385 drivers/scsi/bfa/bfad_im.c rc = bfad_im_target_reset_send(bfad, cmnd, itnim); cmnd 390 drivers/scsi/bfa/bfad_im.c (unsigned long *)&cmnd->SCp.Status)); cmnd 393 drivers/scsi/bfa/bfad_im.c task_status = cmnd->SCp.Status >> 1; cmnd 1203 drivers/scsi/bfa/bfad_im.c bfad_im_queuecommand_lck(struct scsi_cmnd *cmnd, void (*done) (struct scsi_cmnd *)) cmnd 1206 drivers/scsi/bfa/bfad_im.c (struct bfad_im_port_s *) cmnd->device->host->hostdata[0]; cmnd 1208 drivers/scsi/bfa/bfad_im.c struct bfad_itnim_data_s *itnim_data = cmnd->device->hostdata; cmnd 1214 drivers/scsi/bfa/bfad_im.c struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); cmnd 1218 drivers/scsi/bfa/bfad_im.c cmnd->result = rc; cmnd 1219 drivers/scsi/bfa/bfad_im.c done(cmnd); cmnd 1225 drivers/scsi/bfa/bfad_im.c cmnd->result = DID_NO_CONNECT << 16; cmnd 1227 drivers/scsi/bfa/bfad_im.c cmnd->result = DID_REQUEUE << 16; cmnd 1228 drivers/scsi/bfa/bfad_im.c done(cmnd); cmnd 1232 drivers/scsi/bfa/bfad_im.c sg_cnt = scsi_dma_map(cmnd); cmnd 1236 drivers/scsi/bfa/bfad_im.c cmnd->scsi_done = done; cmnd 1242 drivers/scsi/bfa/bfad_im.c bfad->inst_no, cmnd, cmnd->cmnd[0]); cmnd 1243 drivers/scsi/bfa/bfad_im.c cmnd->result = DID_NO_CONNECT << 16; cmnd 1250 drivers/scsi/bfa/bfad_im.c cmnd->result = DID_IMM_RETRY << 16; cmnd 1254 drivers/scsi/bfa/bfad_im.c hal_io = bfa_ioim_alloc(&bfad->bfa, (struct bfad_ioim_s *) cmnd, cmnd 1259 drivers/scsi/bfa/bfad_im.c scsi_dma_unmap(cmnd); cmnd 1263 drivers/scsi/bfa/bfad_im.c cmnd->host_scribble = (char *)hal_io; cmnd 1271 drivers/scsi/bfa/bfad_im.c scsi_dma_unmap(cmnd); cmnd 1273 drivers/scsi/bfa/bfad_im.c done(cmnd); cmnd 671 drivers/scsi/bfa/bfi_ms.h struct fcp_cmnd_s cmnd; /* IO request info */ cmnd 1747 drivers/scsi/bnx2fc/bnx2fc_io.c memcpy(fcp_cmnd->fc_cdb, sc_cmd->cmnd, sc_cmd->cmd_len); cmnd 843 drivers/scsi/bnx2i/bnx2i.h struct bnx2i_cmd *cmnd); cmnd 1144 drivers/scsi/bnx2i/bnx2i_iscsi.c srcp = (u8 *) sc->cmnd; cmnd 152 drivers/scsi/csiostor/csio_isr.c void *cmnd; cmnd 184 drivers/scsi/csiostor/csio_isr.c cmnd = csio_scsi_cmnd(ioreq); cmnd 185 drivers/scsi/csiostor/csio_isr.c if (unlikely(cmnd == NULL)) cmnd 190 drivers/scsi/csiostor/csio_isr.c if (unlikely(cmnd == NULL)) cmnd 174 drivers/scsi/csiostor/csio_scsi.c memcpy(fcp_cmnd->fc_cdb, scmnd->cmnd, 16); cmnd 1560 drivers/scsi/csiostor/csio_scsi.c struct scsi_cmnd *cmnd = (struct scsi_cmnd *)csio_scsi_cmnd(req); cmnd 1568 drivers/scsi/csiostor/csio_scsi.c struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); cmnd 1601 drivers/scsi/csiostor/csio_scsi.c memcpy(cmnd->sense_buffer, cmnd 1606 drivers/scsi/csiostor/csio_scsi.c scsi_set_resid(cmnd, 0); cmnd 1610 drivers/scsi/csiostor/csio_scsi.c scsi_set_resid(cmnd, cmnd 1615 drivers/scsi/csiostor/csio_scsi.c ((scsi_bufflen(cmnd) - scsi_get_resid(cmnd)) cmnd 1616 drivers/scsi/csiostor/csio_scsi.c < cmnd->underflow)) cmnd 1627 drivers/scsi/csiostor/csio_scsi.c " resid:0x%x\n", cmnd->cmnd[0], cmnd 1628 drivers/scsi/csiostor/csio_scsi.c scsi_bufflen(cmnd), scsi_get_resid(cmnd)); cmnd 1637 drivers/scsi/csiostor/csio_scsi.c cmnd->cmnd[0], scsi_bufflen(cmnd), cmnd 1638 drivers/scsi/csiostor/csio_scsi.c scsi_get_resid(cmnd), cmnd->device->lun, cmnd 1647 drivers/scsi/csiostor/csio_scsi.c csio_dbg(hw, "Req %p cmd:%p op:%x %s\n", req, cmnd, cmnd 1648 drivers/scsi/csiostor/csio_scsi.c cmnd->cmnd[0], cmnd 1665 drivers/scsi/csiostor/csio_scsi.c req, cmnd, req->wr_status); cmnd 1707 drivers/scsi/csiostor/csio_scsi.c req->wr_status, req, cmnd); cmnd 1717 drivers/scsi/csiostor/csio_scsi.c scsi_dma_unmap(cmnd); cmnd 1722 drivers/scsi/csiostor/csio_scsi.c cmnd->result = (((host_status) << 16) | scsi_status); cmnd 1723 drivers/scsi/csiostor/csio_scsi.c cmnd->scsi_done(cmnd); cmnd 1739 drivers/scsi/csiostor/csio_scsi.c struct scsi_cmnd *cmnd = (struct scsi_cmnd *)csio_scsi_cmnd(req); cmnd 1745 drivers/scsi/csiostor/csio_scsi.c scsi_dma_unmap(cmnd); cmnd 1750 drivers/scsi/csiostor/csio_scsi.c cmnd->result = (((host_status) << 16) | scsi_status); cmnd 1751 drivers/scsi/csiostor/csio_scsi.c cmnd->scsi_done(cmnd); cmnd 1775 drivers/scsi/csiostor/csio_scsi.c csio_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmnd) cmnd 1780 drivers/scsi/csiostor/csio_scsi.c struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); cmnd 1787 drivers/scsi/csiostor/csio_scsi.c struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); cmnd 1789 drivers/scsi/csiostor/csio_scsi.c sqset = &hw->sqset[ln->portid][blk_mq_rq_cpu(cmnd->request)]; cmnd 1793 drivers/scsi/csiostor/csio_scsi.c cmnd->result = nr; cmnd 1799 drivers/scsi/csiostor/csio_scsi.c cmnd->result = (DID_REQUEUE << 16); cmnd 1805 drivers/scsi/csiostor/csio_scsi.c nsge = scsi_dma_map(cmnd); cmnd 1836 drivers/scsi/csiostor/csio_scsi.c csio_scsi_cmnd(ioreq) = (void *)cmnd; cmnd 1838 drivers/scsi/csiostor/csio_scsi.c ioreq->datadir = cmnd->sc_data_direction; cmnd 1840 drivers/scsi/csiostor/csio_scsi.c if (cmnd->sc_data_direction == DMA_TO_DEVICE) { cmnd 1842 drivers/scsi/csiostor/csio_scsi.c ln->stats.n_output_bytes += scsi_bufflen(cmnd); cmnd 1843 drivers/scsi/csiostor/csio_scsi.c } else if (cmnd->sc_data_direction == DMA_FROM_DEVICE) { cmnd 1845 drivers/scsi/csiostor/csio_scsi.c ln->stats.n_input_bytes += scsi_bufflen(cmnd); cmnd 1853 drivers/scsi/csiostor/csio_scsi.c cmnd->host_scribble = (unsigned char *)ioreq; cmnd 1854 drivers/scsi/csiostor/csio_scsi.c cmnd->SCp.Message = 0; cmnd 1874 drivers/scsi/csiostor/csio_scsi.c scsi_dma_unmap(cmnd); cmnd 1879 drivers/scsi/csiostor/csio_scsi.c cmnd->scsi_done(cmnd); cmnd 1909 drivers/scsi/csiostor/csio_scsi.c csio_eh_abort_handler(struct scsi_cmnd *cmnd) cmnd 1912 drivers/scsi/csiostor/csio_scsi.c struct csio_lnode *ln = shost_priv(cmnd->device->host); cmnd 1918 drivers/scsi/csiostor/csio_scsi.c struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); cmnd 1920 drivers/scsi/csiostor/csio_scsi.c ret = fc_block_scsi_eh(cmnd); cmnd 1924 drivers/scsi/csiostor/csio_scsi.c ioreq = (struct csio_ioreq *)cmnd->host_scribble; cmnd 1934 drivers/scsi/csiostor/csio_scsi.c ioreq, cmnd, *((uint64_t *)cmnd->cmnd), rn->flowid, cmnd 1935 drivers/scsi/csiostor/csio_scsi.c cmnd->device->lun, csio_q_physiqid(hw, ioreq->iq_idx)); cmnd 1937 drivers/scsi/csiostor/csio_scsi.c if (((struct scsi_cmnd *)csio_scsi_cmnd(ioreq)) != cmnd) { cmnd 1968 drivers/scsi/csiostor/csio_scsi.c if (((struct scsi_cmnd *)csio_scsi_cmnd(ioreq)) == cmnd) { cmnd 1975 drivers/scsi/csiostor/csio_scsi.c scsi_dma_unmap(cmnd); cmnd 1981 drivers/scsi/csiostor/csio_scsi.c cmnd->result = (DID_ERROR << 16); cmnd 1982 drivers/scsi/csiostor/csio_scsi.c cmnd->scsi_done(cmnd); cmnd 1988 drivers/scsi/csiostor/csio_scsi.c if (host_byte(cmnd->result) == DID_REQUEUE) { cmnd 1991 drivers/scsi/csiostor/csio_scsi.c cmnd->device->id, cmnd->device->lun, cmnd 1992 drivers/scsi/csiostor/csio_scsi.c cmnd->request->tag); cmnd 1997 drivers/scsi/csiostor/csio_scsi.c cmnd->device->id, cmnd->device->lun, cmnd 1998 drivers/scsi/csiostor/csio_scsi.c cmnd->request->tag); cmnd 2015 drivers/scsi/csiostor/csio_scsi.c struct scsi_cmnd *cmnd = (struct scsi_cmnd *)csio_scsi_cmnd(req); cmnd 2025 drivers/scsi/csiostor/csio_scsi.c cmnd->SCp.Status = req->wr_status; cmnd 2048 drivers/scsi/csiostor/csio_scsi.c cmnd->SCp.Status = FW_SUCCESS; cmnd 2058 drivers/scsi/csiostor/csio_scsi.c csio_eh_lun_reset_handler(struct scsi_cmnd *cmnd) cmnd 2060 drivers/scsi/csiostor/csio_scsi.c struct csio_lnode *ln = shost_priv(cmnd->device->host); cmnd 2063 drivers/scsi/csiostor/csio_scsi.c struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); cmnd 2076 drivers/scsi/csiostor/csio_scsi.c cmnd->device->lun, rn->flowid, rn->scsi_id); cmnd 2082 drivers/scsi/csiostor/csio_scsi.c ln->vnp_flowid, cmnd->device->lun); cmnd 2087 drivers/scsi/csiostor/csio_scsi.c ret = fc_block_scsi_eh(cmnd); cmnd 2102 drivers/scsi/csiostor/csio_scsi.c rn->flowid, cmnd->device->lun); cmnd 2122 drivers/scsi/csiostor/csio_scsi.c csio_scsi_cmnd(ioreq) = cmnd; cmnd 2123 drivers/scsi/csiostor/csio_scsi.c cmnd->host_scribble = (unsigned char *)ioreq; cmnd 2124 drivers/scsi/csiostor/csio_scsi.c cmnd->SCp.Status = 0; cmnd 2126 drivers/scsi/csiostor/csio_scsi.c cmnd->SCp.Message = FCP_TMF_LUN_RESET; cmnd 2143 drivers/scsi/csiostor/csio_scsi.c sld.oslun = cmnd->device->lun; cmnd 2159 drivers/scsi/csiostor/csio_scsi.c while ((((struct scsi_cmnd *)csio_scsi_cmnd(ioreq)) == cmnd) cmnd 2164 drivers/scsi/csiostor/csio_scsi.c if (((struct scsi_cmnd *)csio_scsi_cmnd(ioreq)) == cmnd) { cmnd 2166 drivers/scsi/csiostor/csio_scsi.c cmnd->device->id, cmnd->device->lun); cmnd 2177 drivers/scsi/csiostor/csio_scsi.c if (cmnd->SCp.Status != FW_SUCCESS) { cmnd 2179 drivers/scsi/csiostor/csio_scsi.c cmnd->device->id, cmnd->device->lun, cmnd->SCp.Status); cmnd 2199 drivers/scsi/csiostor/csio_scsi.c " returned %d\n", cmnd->device->lun, retval); cmnd 2210 drivers/scsi/csiostor/csio_scsi.c cmnd->device->id, cmnd->device->lun); cmnd 582 drivers/scsi/cxlflash/main.c get_unaligned_be32(&((u32 *)scp->cmnd)[0]), cmnd 583 drivers/scsi/cxlflash/main.c get_unaligned_be32(&((u32 *)scp->cmnd)[1]), cmnd 584 drivers/scsi/cxlflash/main.c get_unaligned_be32(&((u32 *)scp->cmnd)[2]), cmnd 585 drivers/scsi/cxlflash/main.c get_unaligned_be32(&((u32 *)scp->cmnd)[3])); cmnd 636 drivers/scsi/cxlflash/main.c memcpy(cmd->rcb.cdb, scp->cmnd, sizeof(cmd->rcb.cdb)); cmnd 2442 drivers/scsi/cxlflash/main.c get_unaligned_be32(&((u32 *)scp->cmnd)[0]), cmnd 2443 drivers/scsi/cxlflash/main.c get_unaligned_be32(&((u32 *)scp->cmnd)[1]), cmnd 2444 drivers/scsi/cxlflash/main.c get_unaligned_be32(&((u32 *)scp->cmnd)[2]), cmnd 2445 drivers/scsi/cxlflash/main.c get_unaligned_be32(&((u32 *)scp->cmnd)[3])); cmnd 986 drivers/scsi/dc395x.c cmd, cmd->device->id, (u8)cmd->device->lun, cmd->cmnd[0]); cmnd 1106 drivers/scsi/dc395x.c srb->cmd->cmnd[0], srb->cmd->device->id, cmnd 1454 drivers/scsi/dc395x.c if (((srb->cmd->cmnd[0] == INQUIRY) cmnd 1455 drivers/scsi/dc395x.c || (srb->cmd->cmnd[0] == REQUEST_SENSE) cmnd 1524 drivers/scsi/dc395x.c srb->cmd->cmnd[0], srb->tag_number); cmnd 1533 drivers/scsi/dc395x.c ptr = (u8 *)srb->cmd->cmnd; cmnd 1803 drivers/scsi/dc395x.c ptr = (u8 *)srb->cmd->cmnd; cmnd 3237 drivers/scsi/dc395x.c cmd->cmnd[0], dcb->target_id, cmnd 3243 drivers/scsi/dc395x.c cmd->cmnd[0], dcb->target_id, cmnd 3249 drivers/scsi/dc395x.c cmd->cmnd[0], dcb->target_id, cmnd 3255 drivers/scsi/dc395x.c cmd->cmnd[0], dcb->target_id, cmnd 3261 drivers/scsi/dc395x.c cmd->cmnd[0], dcb->target_id, cmnd 3356 drivers/scsi/dc395x.c if (cmd->cmnd[0] == INQUIRY) { cmnd 3368 drivers/scsi/dc395x.c && cmd->cmnd[2] == 0 && scsi_bufflen(cmd) >= 8 cmnd 3396 drivers/scsi/dc395x.c cmd->cmnd[0], srb->total_xfer_length); cmnd 435 drivers/scsi/dpt_i2o.c if ((cmd->cmnd[0] == REQUEST_SENSE) && (cmd->sense_buffer[0] != 0)) { cmnd 2232 drivers/scsi/dpt_i2o.c pHba->name, cmd->cmnd[0]); cmnd 2258 drivers/scsi/dpt_i2o.c memcpy(mptr, cmd->cmnd, cmd->cmd_len); cmnd 2384 drivers/scsi/dpt_i2o.c pHba->name, (u32)cmd->device->channel, (u32)cmd->device->id, cmd->device->lun, hba_status, dev_status, cmd->cmnd[0]); cmnd 2425 drivers/scsi/dpt_i2o.c hba_status, dev_status, cmd->cmnd[0]); cmnd 2442 drivers/scsi/dpt_i2o.c hba_status, dev_status, cmd->cmnd[0]); cmnd 2454 drivers/scsi/dpt_i2o.c ((struct adpt_device*)(cmd->device->hostdata))->tid, cmd->cmnd[0]); cmnd 845 drivers/scsi/esas2r/esas2r_main.c memcpy(rq->vrq->scsi.cdb, cmd->cmnd, cmd->cmd_len); cmnd 828 drivers/scsi/esp_scsi.c esp->cmd_bytes_ptr = &cmd->cmnd[0]; cmnd 851 drivers/scsi/esp_scsi.c *p++ = cmd->cmnd[i]; cmnd 868 drivers/scsi/esp_scsi.c printk("%02x ", cmd->cmnd[i]); cmnd 2509 drivers/scsi/esp_scsi.c cmd, cmd->cmnd[0]); cmnd 2514 drivers/scsi/esp_scsi.c ent->cmd, ent->cmd->cmnd[0]); cmnd 2517 drivers/scsi/esp_scsi.c ent->cmd, ent->cmd->cmnd[0]); cmnd 2521 drivers/scsi/esp_scsi.c ent->cmd, ent->cmd->cmnd[0]); cmnd 311 drivers/scsi/fdomain.c outb(cmd->cmnd[cmd->SCp.sent_command++], cmnd 401 drivers/scsi/fnic/fnic_scsi.c sc->cmnd, sc->cmd_len, cmnd 513 drivers/scsi/fnic/fnic_scsi.c sc->request->tag, sc, 0, sc->cmnd[0], cmnd 599 drivers/scsi/fnic/fnic_scsi.c cmd_trace = ((u64)sc->cmnd[0] << 56 | (u64)sc->cmnd[7] << 40 | cmnd 600 drivers/scsi/fnic/fnic_scsi.c (u64)sc->cmnd[8] << 32 | (u64)sc->cmnd[2] << 24 | cmnd 601 drivers/scsi/fnic/fnic_scsi.c (u64)sc->cmnd[3] << 16 | (u64)sc->cmnd[4] << 8 | cmnd 602 drivers/scsi/fnic/fnic_scsi.c sc->cmnd[5]); cmnd 1002 drivers/scsi/fnic/fnic_scsi.c (u64)icmnd_cmpl->flags << 40 | (u64)sc->cmnd[0] << 32 | cmnd 1003 drivers/scsi/fnic/fnic_scsi.c (u64)sc->cmnd[2] << 24 | (u64)sc->cmnd[3] << 16 | cmnd 1004 drivers/scsi/fnic/fnic_scsi.c (u64)sc->cmnd[4] << 8 | sc->cmnd[5]; cmnd 1201 drivers/scsi/fnic/fnic_scsi.c (u64)sc->cmnd[0] << 32 | cmnd 1202 drivers/scsi/fnic/fnic_scsi.c (u64)sc->cmnd[2] << 24 | cmnd 1203 drivers/scsi/fnic/fnic_scsi.c (u64)sc->cmnd[3] << 16 | cmnd 1204 drivers/scsi/fnic/fnic_scsi.c (u64)sc->cmnd[4] << 8 | sc->cmnd[5]), cmnd 1440 drivers/scsi/fnic/fnic_scsi.c 0, ((u64)sc->cmnd[0] << 32 | cmnd 1441 drivers/scsi/fnic/fnic_scsi.c (u64)sc->cmnd[2] << 24 | cmnd 1442 drivers/scsi/fnic/fnic_scsi.c (u64)sc->cmnd[3] << 16 | cmnd 1443 drivers/scsi/fnic/fnic_scsi.c (u64)sc->cmnd[4] << 8 | sc->cmnd[5]), cmnd 1503 drivers/scsi/fnic/fnic_scsi.c 0, ((u64)sc->cmnd[0] << 32 | cmnd 1504 drivers/scsi/fnic/fnic_scsi.c (u64)sc->cmnd[2] << 24 | (u64)sc->cmnd[3] << 16 | cmnd 1505 drivers/scsi/fnic/fnic_scsi.c (u64)sc->cmnd[4] << 8 | sc->cmnd[5]), cmnd 1922 drivers/scsi/fnic/fnic_scsi.c "CBD Opcode: %02x Abort issued time: %lu msec\n", sc->cmnd[0], abt_issued_time); cmnd 2054 drivers/scsi/fnic/fnic_scsi.c 0, ((u64)sc->cmnd[0] << 32 | cmnd 2055 drivers/scsi/fnic/fnic_scsi.c (u64)sc->cmnd[2] << 24 | (u64)sc->cmnd[3] << 16 | cmnd 2056 drivers/scsi/fnic/fnic_scsi.c (u64)sc->cmnd[4] << 8 | sc->cmnd[5]), cmnd 2551 drivers/scsi/fnic/fnic_scsi.c 0, ((u64)sc->cmnd[0] << 32 | cmnd 2552 drivers/scsi/fnic/fnic_scsi.c (u64)sc->cmnd[2] << 24 | (u64)sc->cmnd[3] << 16 | cmnd 2553 drivers/scsi/fnic/fnic_scsi.c (u64)sc->cmnd[4] << 8 | sc->cmnd[5]), cmnd 332 drivers/scsi/gdth.c int __gdth_execute(struct scsi_device *sdev, gdth_cmd_str *gdtcmd, char *cmnd, cmnd 357 drivers/scsi/gdth.c scp->cmnd = cmnd; cmnd 362 drivers/scsi/gdth.c TRACE(("__gdth_execute() cmd 0x%x\n", scp->cmnd[0])); cmnd 375 drivers/scsi/gdth.c int gdth_execute(struct Scsi_Host *shost, gdth_cmd_str *gdtcmd, char *cmnd, cmnd 379 drivers/scsi/gdth.c int rval = __gdth_execute(sdev, gdtcmd, cmnd, timeout, info); cmnd 954 drivers/scsi/gdth.c if (ha->cmd_tab[i].cmnd == UNUSED_CMND) { cmnd 955 drivers/scsi/gdth.c ha->cmd_tab[i].cmnd = ha->pccb->RequestBuffer; cmnd 1036 drivers/scsi/gdth.c if (ha->cmd_tab[j].cmnd != UNUSED_CMND) cmnd 1626 drivers/scsi/gdth.c if (nscp->cmnd[0] == TEST_UNIT_READY) { cmnd 1658 drivers/scsi/gdth.c if (b == ha->virt_bus && nscp->cmnd[0] != INQUIRY && cmnd 1659 drivers/scsi/gdth.c nscp->cmnd[0] != READ_CAPACITY && nscp->cmnd[0] != MODE_SENSE && cmnd 1698 drivers/scsi/gdth.c nscp->cmnd[0], b, t, l)); cmnd 1705 drivers/scsi/gdth.c switch (nscp->cmnd[0]) { cmnd 1714 drivers/scsi/gdth.c TRACE(("cache cmd %x/%x/%x/%x/%x/%x\n",nscp->cmnd[0], cmnd 1715 drivers/scsi/gdth.c nscp->cmnd[1],nscp->cmnd[2],nscp->cmnd[3], cmnd 1716 drivers/scsi/gdth.c nscp->cmnd[4],nscp->cmnd[5])); cmnd 1717 drivers/scsi/gdth.c if (ha->hdr[t].media_changed && nscp->cmnd[0] != INQUIRY) { cmnd 1720 drivers/scsi/gdth.c nscp->cmnd[0], t)); cmnd 1735 drivers/scsi/gdth.c TRACE(("cache cmd %x/%x/%x/%x/%x/%x\n",nscp->cmnd[0], cmnd 1736 drivers/scsi/gdth.c nscp->cmnd[1],nscp->cmnd[2],nscp->cmnd[3], cmnd 1737 drivers/scsi/gdth.c nscp->cmnd[4],nscp->cmnd[5])); cmnd 1738 drivers/scsi/gdth.c if ( (nscp->cmnd[4]&1) && !(ha->hdr[t].devtype&1) ) { cmnd 1747 drivers/scsi/gdth.c nscp->cmnd[3] = (ha->hdr[t].devtype&1) ? 1:0; cmnd 1749 drivers/scsi/gdth.c nscp->cmnd[4],nscp->cmnd[3])); cmnd 1757 drivers/scsi/gdth.c TRACE2(("cache cmd %s\n",nscp->cmnd[0] == RESERVE ? cmnd 1772 drivers/scsi/gdth.c nscp->cmnd[0], t)); cmnd 1787 drivers/scsi/gdth.c TRACE2(("cache cmd %x/%x/%x/%x/%x/%x unknown\n",nscp->cmnd[0], cmnd 1788 drivers/scsi/gdth.c nscp->cmnd[1],nscp->cmnd[2],nscp->cmnd[3], cmnd 1789 drivers/scsi/gdth.c nscp->cmnd[4],nscp->cmnd[5])); cmnd 1791 drivers/scsi/gdth.c ha->hanum, nscp->cmnd[0]); cmnd 1882 drivers/scsi/gdth.c scp->cmnd[0],t)); cmnd 1887 drivers/scsi/gdth.c switch (scp->cmnd[0]) { cmnd 1946 drivers/scsi/gdth.c if ((scp->cmnd[1] & 0x1f) == SAI_READ_CAPACITY_16 && cmnd 1961 drivers/scsi/gdth.c TRACE2(("Internal cache cmd 0x%x unknown\n",scp->cmnd[0])); cmnd 1984 drivers/scsi/gdth.c scp->cmnd[0],scp->cmd_len,hdrive)); cmnd 2006 drivers/scsi/gdth.c else if (scp->cmnd[0] == RESERVE) cmnd 2008 drivers/scsi/gdth.c else if (scp->cmnd[0] == RELEASE) cmnd 2010 drivers/scsi/gdth.c else if (scp->cmnd[0] == ALLOW_MEDIUM_REMOVAL) { cmnd 2011 drivers/scsi/gdth.c if (scp->cmnd[4] & 1) /* prevent ? */ cmnd 2013 drivers/scsi/gdth.c else if (scp->cmnd[3] & 1) /* removable drive ? */ cmnd 2017 drivers/scsi/gdth.c } else if (scp->cmnd[0] == WRITE_6 || scp->cmnd[0] == WRITE_10 || cmnd 2018 drivers/scsi/gdth.c scp->cmnd[0] == WRITE_12 || scp->cmnd[0] == WRITE_16 cmnd 2044 drivers/scsi/gdth.c memcpy(&no, &scp->cmnd[2], sizeof(u64)); cmnd 2046 drivers/scsi/gdth.c memcpy(&cnt, &scp->cmnd[10], sizeof(u32)); cmnd 2049 drivers/scsi/gdth.c memcpy(&no, &scp->cmnd[2], sizeof(u32)); cmnd 2051 drivers/scsi/gdth.c memcpy(&cnt, &scp->cmnd[7], sizeof(u16)); cmnd 2054 drivers/scsi/gdth.c memcpy(&no, &scp->cmnd[0], sizeof(u32)); cmnd 2056 drivers/scsi/gdth.c blockcnt= scp->cmnd[4]==0 ? 0x100 : scp->cmnd[4]; cmnd 2127 drivers/scsi/gdth.c ha->cmd_tab[cmd_index-2].cmnd = UNUSED_CMND; cmnd 2150 drivers/scsi/gdth.c scp->cmnd[0],b,t,l)); cmnd 2204 drivers/scsi/gdth.c gdth_direction_tab[scp->cmnd[0]]==DOU ? GDTH_DATA_OUT:GDTH_DATA_IN; cmnd 2205 drivers/scsi/gdth.c memcpy(cmdp->u.raw64.cmd,scp->cmnd,16); cmnd 2221 drivers/scsi/gdth.c gdth_direction_tab[scp->cmnd[0]]==DOU ? GDTH_DATA_OUT:GDTH_DATA_IN; cmnd 2222 drivers/scsi/gdth.c memcpy(cmdp->u.raw.cmd,scp->cmnd,12); cmnd 2284 drivers/scsi/gdth.c ha->cmd_tab[cmd_index-2].cmnd = UNUSED_CMND; cmnd 2346 drivers/scsi/gdth.c ha->cmd_tab[cmd_index-2].cmnd = UNUSED_CMND; cmnd 2601 drivers/scsi/gdth.c scp = ha->cmd_tab[IStatus-2].cmnd; cmnd 2603 drivers/scsi/gdth.c ha->cmd_tab[IStatus-2].cmnd = UNUSED_CMND; cmnd 2780 drivers/scsi/gdth.c if (scp->cmnd[0] == RESERVE) { cmnd 2782 drivers/scsi/gdth.c } else if (scp->cmnd[0] == RELEASE) { cmnd 3142 drivers/scsi/gdth.c if (ha->cmd_tab[i].cmnd != UNUSED_CMND) cmnd 3282 drivers/scsi/gdth.c TRACE(("%s() cmd 0x%x\n", scp->cmnd[0], __func__)); cmnd 3312 drivers/scsi/gdth.c struct scsi_cmnd *cmnd; cmnd 3322 drivers/scsi/gdth.c cmnd = ha->cmd_tab[i].cmnd; cmnd 3323 drivers/scsi/gdth.c if (!SPECIAL_SCP(cmnd) && cmnd->device->channel == b) cmnd 3324 drivers/scsi/gdth.c ha->cmd_tab[i].cmnd = UNUSED_CMND; cmnd 3394 drivers/scsi/gdth.c TRACE(("gdth_queuecommand() cmd 0x%x\n", scp->cmnd[0])); cmnd 3516 drivers/scsi/gdth.c static int ioc_resetdrv(void __user *arg, char *cmnd) cmnd 3540 drivers/scsi/gdth.c rval = __gdth_execute(ha->sdev, &cmd, cmnd, 30, NULL); cmnd 3629 drivers/scsi/gdth.c static int ioc_general(void __user *arg, char *cmnd) cmnd 3672 drivers/scsi/gdth.c rval = __gdth_execute(ha->sdev, &gen.command, cmnd, gen.timeout, cmnd 3694 drivers/scsi/gdth.c static int ioc_hdrlist(void __user *arg, char *cmnd) cmnd 3731 drivers/scsi/gdth.c if (__gdth_execute(ha->sdev, cmd, cmnd, 30, &cluster_type) == S_OK) cmnd 3747 drivers/scsi/gdth.c static int ioc_rescan(void __user *arg, char *cmnd) cmnd 3781 drivers/scsi/gdth.c status = __gdth_execute(ha->sdev, cmd, cmnd, 30, &info); cmnd 3797 drivers/scsi/gdth.c status = __gdth_execute(ha->sdev, cmd, cmnd, 30, &info); cmnd 3831 drivers/scsi/gdth.c status = __gdth_execute(ha->sdev, cmd, cmnd, 30, &info); cmnd 3844 drivers/scsi/gdth.c status = __gdth_execute(ha->sdev, cmd, cmnd, 30, &info); cmnd 3859 drivers/scsi/gdth.c status = __gdth_execute(ha->sdev, cmd, cmnd, 30, &info); cmnd 3882 drivers/scsi/gdth.c char cmnd[MAX_COMMAND_SIZE]; cmnd 3885 drivers/scsi/gdth.c memset(cmnd, 0xff, 12); cmnd 3945 drivers/scsi/gdth.c return ioc_general(argp, cmnd); cmnd 3982 drivers/scsi/gdth.c return ioc_rescan(argp, cmnd); cmnd 3985 drivers/scsi/gdth.c return ioc_hdrlist(argp, cmnd); cmnd 4012 drivers/scsi/gdth.c return ioc_resetdrv(argp, cmnd); cmnd 4037 drivers/scsi/gdth.c char cmnd[MAX_COMMAND_SIZE]; cmnd 4038 drivers/scsi/gdth.c memset(cmnd, 0xff, MAX_COMMAND_SIZE); cmnd 4058 drivers/scsi/gdth.c gdth_execute(ha->shost, &gdtcmd, cmnd, 30, NULL); cmnd 4152 drivers/scsi/gdth.c ha->cmd_tab[i].cmnd = UNUSED_CMND; cmnd 869 drivers/scsi/gdth.h struct scsi_cmnd *cmnd; /* pending request */ cmnd 35 drivers/scsi/gdth_proc.c char cmnd[MAX_COMMAND_SIZE]; cmnd 36 drivers/scsi/gdth_proc.c memset(cmnd, 0xff, 12); cmnd 74 drivers/scsi/gdth_proc.c gdth_execute(host, &gdtcmd, cmnd, 30, NULL); cmnd 137 drivers/scsi/gdth_proc.c gdth_execute(host, &gdtcmd, cmnd, 30, NULL); cmnd 172 drivers/scsi/gdth_proc.c char cmnd[MAX_COMMAND_SIZE]; cmnd 179 drivers/scsi/gdth_proc.c memset(cmnd, 0xff, 12); cmnd 260 drivers/scsi/gdth_proc.c if (gdth_execute(host, gdtcmd, cmnd, 30, NULL) != S_OK) cmnd 277 drivers/scsi/gdth_proc.c if (gdth_execute(host, gdtcmd, cmnd, 30, NULL) == S_OK) { cmnd 324 drivers/scsi/gdth_proc.c if (gdth_execute(host, gdtcmd, cmnd, 30, NULL) == S_OK) { cmnd 356 drivers/scsi/gdth_proc.c if (gdth_execute(host, gdtcmd, cmnd, 30, NULL) != S_OK) cmnd 433 drivers/scsi/gdth_proc.c if (gdth_execute(host, gdtcmd, cmnd, 30, NULL) == S_OK) { cmnd 492 drivers/scsi/gdth_proc.c if (gdth_execute(host, gdtcmd, cmnd, 30, NULL) == S_OK) { cmnd 571 drivers/scsi/gdth_proc.c scp = ha->cmd_tab[i].cmnd; cmnd 9 drivers/scsi/gdth_proc.h int gdth_execute(struct Scsi_Host *shost, gdth_cmd_str *gdtcmd, char *cmnd, cmnd 1639 drivers/scsi/hisi_sas/hisi_sas_main.c struct scsi_cmnd *cmnd = task->uldd_task; cmnd 1644 drivers/scsi/hisi_sas/hisi_sas_main.c int_to_scsilun(cmnd->device->lun, &lun); cmnd 1905 drivers/scsi/hisi_sas/hisi_sas_main.c struct scsi_cmnd *cmnd = task->uldd_task; cmnd 1910 drivers/scsi/hisi_sas/hisi_sas_main.c int_to_scsilun(cmnd->device->lun, &lun); cmnd 1029 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c memcpy(buf_cmd + 12, task->ssp_task.cmd->cmnd, cmnd 1798 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c memcpy(buf_cmd + 12, task->ssp_task.cmd->cmnd, cmnd 1239 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c memcpy(buf_cmd + 12, scsi_cmnd->cmnd, scsi_cmnd->cmd_len); cmnd 4813 drivers/scsi/hpsa.c cmd->cmnd, cmd->cmd_len, dev->scsi3addr, dev); cmnd 4840 drivers/scsi/hpsa.c switch (cmd->cmnd[0]) { cmnd 4844 drivers/scsi/hpsa.c first_block = (((cmd->cmnd[1] & 0x1F) << 16) | cmnd 4845 drivers/scsi/hpsa.c (cmd->cmnd[2] << 8) | cmnd 4846 drivers/scsi/hpsa.c cmd->cmnd[3]); cmnd 4853 drivers/scsi/hpsa.c first_block = get_unaligned_be32(&cmd->cmnd[2]); cmnd 4857 drivers/scsi/hpsa.c first_block = get_unaligned_be64(&cmd->cmnd[2]); cmnd 4862 drivers/scsi/hpsa.c __func__, cmd->cmnd[0]); cmnd 5114 drivers/scsi/hpsa.c switch (cmd->cmnd[0]) { cmnd 5119 drivers/scsi/hpsa.c first_block = (((cmd->cmnd[1] & 0x1F) << 16) | cmnd 5120 drivers/scsi/hpsa.c (cmd->cmnd[2] << 8) | cmnd 5121 drivers/scsi/hpsa.c cmd->cmnd[3]); cmnd 5122 drivers/scsi/hpsa.c block_cnt = cmd->cmnd[4]; cmnd 5131 drivers/scsi/hpsa.c (((u64) cmd->cmnd[2]) << 24) | cmnd 5132 drivers/scsi/hpsa.c (((u64) cmd->cmnd[3]) << 16) | cmnd 5133 drivers/scsi/hpsa.c (((u64) cmd->cmnd[4]) << 8) | cmnd 5134 drivers/scsi/hpsa.c cmd->cmnd[5]; cmnd 5136 drivers/scsi/hpsa.c (((u32) cmd->cmnd[7]) << 8) | cmnd 5137 drivers/scsi/hpsa.c cmd->cmnd[8]; cmnd 5144 drivers/scsi/hpsa.c (((u64) cmd->cmnd[2]) << 24) | cmnd 5145 drivers/scsi/hpsa.c (((u64) cmd->cmnd[3]) << 16) | cmnd 5146 drivers/scsi/hpsa.c (((u64) cmd->cmnd[4]) << 8) | cmnd 5147 drivers/scsi/hpsa.c cmd->cmnd[5]; cmnd 5149 drivers/scsi/hpsa.c (((u32) cmd->cmnd[6]) << 24) | cmnd 5150 drivers/scsi/hpsa.c (((u32) cmd->cmnd[7]) << 16) | cmnd 5151 drivers/scsi/hpsa.c (((u32) cmd->cmnd[8]) << 8) | cmnd 5152 drivers/scsi/hpsa.c cmd->cmnd[9]; cmnd 5159 drivers/scsi/hpsa.c (((u64) cmd->cmnd[2]) << 56) | cmnd 5160 drivers/scsi/hpsa.c (((u64) cmd->cmnd[3]) << 48) | cmnd 5161 drivers/scsi/hpsa.c (((u64) cmd->cmnd[4]) << 40) | cmnd 5162 drivers/scsi/hpsa.c (((u64) cmd->cmnd[5]) << 32) | cmnd 5163 drivers/scsi/hpsa.c (((u64) cmd->cmnd[6]) << 24) | cmnd 5164 drivers/scsi/hpsa.c (((u64) cmd->cmnd[7]) << 16) | cmnd 5165 drivers/scsi/hpsa.c (((u64) cmd->cmnd[8]) << 8) | cmnd 5166 drivers/scsi/hpsa.c cmd->cmnd[9]; cmnd 5168 drivers/scsi/hpsa.c (((u32) cmd->cmnd[10]) << 24) | cmnd 5169 drivers/scsi/hpsa.c (((u32) cmd->cmnd[11]) << 16) | cmnd 5170 drivers/scsi/hpsa.c (((u32) cmd->cmnd[12]) << 8) | cmnd 5171 drivers/scsi/hpsa.c cmd->cmnd[13]; cmnd 5431 drivers/scsi/hpsa.c memcpy(c->Request.CDB, cmd->cmnd, cmd->cmd_len); cmnd 1022 drivers/scsi/hptiop.c cpu_to_be32(((u32 *)scp->cmnd)[0]), cmnd 1023 drivers/scsi/hptiop.c cpu_to_be32(((u32 *)scp->cmnd)[1]), cmnd 1024 drivers/scsi/hptiop.c cpu_to_be32(((u32 *)scp->cmnd)[2]), cmnd 1025 drivers/scsi/hptiop.c cpu_to_be32(((u32 *)scp->cmnd)[3]), cmnd 1057 drivers/scsi/hptiop.c memcpy(req->cdb, scp->cmnd, sizeof(req->cdb)); cmnd 774 drivers/scsi/ibmvscsi/ibmvfc.c struct scsi_cmnd *cmnd = evt->cmnd; cmnd 776 drivers/scsi/ibmvscsi/ibmvfc.c if (cmnd) { cmnd 777 drivers/scsi/ibmvscsi/ibmvfc.c scsi_dma_unmap(cmnd); cmnd 778 drivers/scsi/ibmvscsi/ibmvfc.c cmnd->scsi_done(cmnd); cmnd 797 drivers/scsi/ibmvscsi/ibmvfc.c if (evt->cmnd) { cmnd 798 drivers/scsi/ibmvscsi/ibmvfc.c evt->cmnd->result = (error_code << 16); cmnd 1284 drivers/scsi/ibmvscsi/ibmvfc.c evt->cmnd = NULL; cmnd 1437 drivers/scsi/ibmvscsi/ibmvfc.c if (evt->cmnd) cmnd 1438 drivers/scsi/ibmvscsi/ibmvfc.c scsi_dma_unmap(evt->cmnd); cmnd 1444 drivers/scsi/ibmvscsi/ibmvfc.c if (evt->cmnd) { cmnd 1445 drivers/scsi/ibmvscsi/ibmvfc.c evt->cmnd->result = DID_ERROR << 16; cmnd 1467 drivers/scsi/ibmvscsi/ibmvfc.c struct scsi_cmnd *cmnd = evt->cmnd; cmnd 1484 drivers/scsi/ibmvscsi/ibmvfc.c scmd_printk(KERN_ERR, cmnd, "Command (%02X) : %s (%x:%x) " cmnd 1486 drivers/scsi/ibmvscsi/ibmvfc.c cmnd->cmnd[0], err, be16_to_cpu(vfc_cmd->status), be16_to_cpu(vfc_cmd->error), cmnd 1487 drivers/scsi/ibmvscsi/ibmvfc.c rsp->flags, rsp_code, scsi_get_resid(cmnd), rsp->scsi_status); cmnd 1521 drivers/scsi/ibmvscsi/ibmvfc.c struct scsi_cmnd *cmnd = evt->cmnd; cmnd 1525 drivers/scsi/ibmvscsi/ibmvfc.c if (cmnd) { cmnd 1527 drivers/scsi/ibmvscsi/ibmvfc.c scsi_set_resid(cmnd, be32_to_cpu(vfc_cmd->adapter_resid)); cmnd 1529 drivers/scsi/ibmvscsi/ibmvfc.c scsi_set_resid(cmnd, be32_to_cpu(rsp->fcp_resid)); cmnd 1531 drivers/scsi/ibmvscsi/ibmvfc.c scsi_set_resid(cmnd, 0); cmnd 1534 drivers/scsi/ibmvscsi/ibmvfc.c cmnd->result = ibmvfc_get_err_result(vfc_cmd); cmnd 1541 drivers/scsi/ibmvscsi/ibmvfc.c memcpy(cmnd->sense_buffer, rsp->data.sense + rsp_len, sense_len); cmnd 1544 drivers/scsi/ibmvscsi/ibmvfc.c ibmvfc_relogin(cmnd->device); cmnd 1546 drivers/scsi/ibmvscsi/ibmvfc.c if (!cmnd->result && (!scsi_get_resid(cmnd) || (rsp->flags & FCP_RESID_OVER))) cmnd 1547 drivers/scsi/ibmvscsi/ibmvfc.c cmnd->result = (DID_ERROR << 16); cmnd 1552 drivers/scsi/ibmvscsi/ibmvfc.c if (!cmnd->result && cmnd 1553 drivers/scsi/ibmvscsi/ibmvfc.c (scsi_bufflen(cmnd) - scsi_get_resid(cmnd) < cmnd->underflow)) cmnd 1554 drivers/scsi/ibmvscsi/ibmvfc.c cmnd->result = (DID_ERROR << 16); cmnd 1556 drivers/scsi/ibmvscsi/ibmvfc.c scsi_dma_unmap(cmnd); cmnd 1557 drivers/scsi/ibmvscsi/ibmvfc.c cmnd->scsi_done(cmnd); cmnd 1604 drivers/scsi/ibmvscsi/ibmvfc.c static int ibmvfc_queuecommand_lck(struct scsi_cmnd *cmnd, cmnd 1607 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(cmnd->device->host); cmnd 1608 drivers/scsi/ibmvscsi/ibmvfc.c struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); cmnd 1615 drivers/scsi/ibmvscsi/ibmvfc.c cmnd->result = rc; cmnd 1616 drivers/scsi/ibmvscsi/ibmvfc.c done(cmnd); cmnd 1620 drivers/scsi/ibmvscsi/ibmvfc.c cmnd->result = (DID_OK << 16); cmnd 1623 drivers/scsi/ibmvscsi/ibmvfc.c evt->cmnd = cmnd; cmnd 1624 drivers/scsi/ibmvscsi/ibmvfc.c cmnd->scsi_done = done; cmnd 1632 drivers/scsi/ibmvscsi/ibmvfc.c vfc_cmd->cancel_key = cpu_to_be32((unsigned long)cmnd->device->hostdata); cmnd 1634 drivers/scsi/ibmvscsi/ibmvfc.c vfc_cmd->iu.xfer_len = cpu_to_be32(scsi_bufflen(cmnd)); cmnd 1635 drivers/scsi/ibmvscsi/ibmvfc.c int_to_scsilun(cmnd->device->lun, &vfc_cmd->iu.lun); cmnd 1636 drivers/scsi/ibmvscsi/ibmvfc.c memcpy(vfc_cmd->iu.cdb, cmnd->cmnd, cmnd->cmd_len); cmnd 1638 drivers/scsi/ibmvscsi/ibmvfc.c if (cmnd->flags & SCMD_TAGGED) { cmnd 1639 drivers/scsi/ibmvscsi/ibmvfc.c vfc_cmd->task_tag = cpu_to_be64(cmnd->tag); cmnd 1643 drivers/scsi/ibmvscsi/ibmvfc.c if (likely(!(rc = ibmvfc_map_sg_data(cmnd, evt, vfc_cmd, vhost->dev)))) cmnd 1651 drivers/scsi/ibmvscsi/ibmvfc.c scmd_printk(KERN_ERR, cmnd, cmnd 1654 drivers/scsi/ibmvscsi/ibmvfc.c cmnd->result = DID_ERROR << 16; cmnd 1655 drivers/scsi/ibmvscsi/ibmvfc.c done(cmnd); cmnd 2038 drivers/scsi/ibmvscsi/ibmvfc.c if (evt->cmnd) { cmnd 2039 drivers/scsi/ibmvscsi/ibmvfc.c cmd_rport = starget_to_rport(scsi_target(evt->cmnd->device)); cmnd 2056 drivers/scsi/ibmvscsi/ibmvfc.c if (evt->cmnd && scsi_target(evt->cmnd->device) == device) cmnd 2071 drivers/scsi/ibmvscsi/ibmvfc.c if (evt->cmnd && evt->cmnd->device == device) cmnd 2158 drivers/scsi/ibmvscsi/ibmvfc.c if (evt->cmnd && evt->cmnd->device == sdev) { cmnd 2289 drivers/scsi/ibmvscsi/ibmvfc.c if (evt->cmnd && evt->cmnd->device == sdev) { cmnd 629 drivers/scsi/ibmvscsi/ibmvfc.h struct scsi_cmnd *cmnd; cmnd 586 drivers/scsi/ibmvscsi/ibmvscsi.c evt_struct->cmnd = NULL; cmnd 648 drivers/scsi/ibmvscsi/ibmvscsi.c if (evt_struct->cmnd) cmnd 649 drivers/scsi/ibmvscsi/ibmvscsi.c scsi_dma_unmap(evt_struct->cmnd); cmnd 792 drivers/scsi/ibmvscsi/ibmvscsi.c if (evt->cmnd) { cmnd 793 drivers/scsi/ibmvscsi/ibmvscsi.c evt->cmnd->result = (error_code << 16); cmnd 797 drivers/scsi/ibmvscsi/ibmvscsi.c evt->cmnd_done(evt->cmnd); cmnd 959 drivers/scsi/ibmvscsi/ibmvscsi.c if (evt_struct->cmnd != NULL) { cmnd 960 drivers/scsi/ibmvscsi/ibmvscsi.c evt_struct->cmnd->result = DID_ERROR << 16; cmnd 961 drivers/scsi/ibmvscsi/ibmvscsi.c evt_struct->cmnd_done(evt_struct->cmnd); cmnd 979 drivers/scsi/ibmvscsi/ibmvscsi.c struct scsi_cmnd *cmnd = evt_struct->cmnd; cmnd 987 drivers/scsi/ibmvscsi/ibmvscsi.c if (cmnd) { cmnd 988 drivers/scsi/ibmvscsi/ibmvscsi.c cmnd->result |= rsp->status; cmnd 989 drivers/scsi/ibmvscsi/ibmvscsi.c if (((cmnd->result >> 1) & 0x1f) == CHECK_CONDITION) cmnd 990 drivers/scsi/ibmvscsi/ibmvscsi.c memcpy(cmnd->sense_buffer, cmnd 998 drivers/scsi/ibmvscsi/ibmvscsi.c scsi_set_resid(cmnd, cmnd 1001 drivers/scsi/ibmvscsi/ibmvscsi.c scsi_set_resid(cmnd, be32_to_cpu(rsp->data_in_res_cnt)); cmnd 1005 drivers/scsi/ibmvscsi/ibmvscsi.c evt_struct->cmnd_done(cmnd); cmnd 1023 drivers/scsi/ibmvscsi/ibmvscsi.c static int ibmvscsi_queuecommand_lck(struct scsi_cmnd *cmnd, cmnd 1029 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(cmnd->device->host); cmnd 1030 drivers/scsi/ibmvscsi/ibmvscsi.c u16 lun = lun_from_dev(cmnd->device); cmnd 1033 drivers/scsi/ibmvscsi/ibmvscsi.c cmnd->result = (DID_OK << 16); cmnd 1042 drivers/scsi/ibmvscsi/ibmvscsi.c memcpy(srp_cmd->cdb, cmnd->cmnd, sizeof(srp_cmd->cdb)); cmnd 1045 drivers/scsi/ibmvscsi/ibmvscsi.c if (!map_data_for_srp_cmd(cmnd, evt_struct, srp_cmd, hostdata->dev)) { cmnd 1047 drivers/scsi/ibmvscsi/ibmvscsi.c sdev_printk(KERN_ERR, cmnd->device, cmnd 1056 drivers/scsi/ibmvscsi/ibmvscsi.c cmnd->request->timeout/HZ); cmnd 1058 drivers/scsi/ibmvscsi/ibmvscsi.c evt_struct->cmnd = cmnd; cmnd 1489 drivers/scsi/ibmvscsi/ibmvscsi.c if (tmp_evt->cmnd == cmd) { cmnd 1577 drivers/scsi/ibmvscsi/ibmvscsi.c if (tmp_evt->cmnd == cmd) { cmnd 1696 drivers/scsi/ibmvscsi/ibmvscsi.c if ((tmp_evt->cmnd) && (tmp_evt->cmnd->device == cmd->device)) { cmnd 1697 drivers/scsi/ibmvscsi/ibmvscsi.c if (tmp_evt->cmnd) cmnd 1698 drivers/scsi/ibmvscsi/ibmvscsi.c tmp_evt->cmnd->result = (DID_RESET << 16); cmnd 1706 drivers/scsi/ibmvscsi/ibmvscsi.c tmp_evt->cmnd_done(tmp_evt->cmnd); cmnd 1826 drivers/scsi/ibmvscsi/ibmvscsi.c if ((crq->status != VIOSRP_OK && crq->status != VIOSRP_OK2) && evt_struct->cmnd) cmnd 1827 drivers/scsi/ibmvscsi/ibmvscsi.c evt_struct->cmnd->result = DID_ERROR << 16; cmnd 53 drivers/scsi/ibmvscsi/ibmvscsi.h struct scsi_cmnd *cmnd; cmnd 608 drivers/scsi/imm.c if (!imm_out(dev, &cmd->cmnd[k], 2)) cmnd 635 drivers/scsi/imm.c v = cmd->cmnd[0]; cmnd 683 drivers/scsi/initio.c static void initio_release_scb(struct initio_host * host, struct scsi_ctrl_blk * cmnd) cmnd 688 drivers/scsi/initio.c printk("Release SCB %p; ", cmnd); cmnd 691 drivers/scsi/initio.c cmnd->srb = NULL; cmnd 692 drivers/scsi/initio.c cmnd->status = 0; cmnd 693 drivers/scsi/initio.c cmnd->next = NULL; cmnd 695 drivers/scsi/initio.c host->last_avail->next = cmnd; cmnd 696 drivers/scsi/initio.c host->last_avail = cmnd; cmnd 698 drivers/scsi/initio.c host->first_avail = cmnd; cmnd 699 drivers/scsi/initio.c host->last_avail = cmnd; cmnd 2532 drivers/scsi/initio.c static void initio_build_scb(struct initio_host * host, struct scsi_ctrl_blk * cblk, struct scsi_cmnd * cmnd) cmnd 2542 drivers/scsi/initio.c cblk->srb = cmnd; cmnd 2545 drivers/scsi/initio.c cblk->target = cmnd->device->id; cmnd 2546 drivers/scsi/initio.c cblk->lun = cmnd->device->lun; cmnd 2547 drivers/scsi/initio.c cblk->ident = cmnd->device->lun | DISC_ALLOW; cmnd 2552 drivers/scsi/initio.c dma_addr = dma_map_single(&host->pci_dev->dev, cmnd->sense_buffer, cmnd 2556 drivers/scsi/initio.c cmnd->SCp.ptr = (char *)(unsigned long)dma_addr; cmnd 2557 drivers/scsi/initio.c cblk->cdblen = cmnd->cmd_len; cmnd 2563 drivers/scsi/initio.c memcpy(cblk->cdb, cmnd->cmnd, cmnd->cmd_len); cmnd 2566 drivers/scsi/initio.c if (cmnd->device->tagged_supported) { /* Tag Support */ cmnd 2573 drivers/scsi/initio.c nseg = scsi_dma_map(cmnd); cmnd 2580 drivers/scsi/initio.c cmnd->SCp.dma_handle = dma_addr; cmnd 2587 drivers/scsi/initio.c scsi_for_each_sg(cmnd, sglist, cblk->sglen, i) { cmnd 2594 drivers/scsi/initio.c cblk->buflen = (scsi_bufflen(cmnd) > total_len) ? cmnd 2595 drivers/scsi/initio.c total_len : scsi_bufflen(cmnd); cmnd 2616 drivers/scsi/initio.c struct scsi_ctrl_blk *cmnd; cmnd 2620 drivers/scsi/initio.c cmnd = initio_alloc_scb(host); cmnd 2621 drivers/scsi/initio.c if (!cmnd) cmnd 2624 drivers/scsi/initio.c initio_build_scb(host, cmnd, cmd); cmnd 2625 drivers/scsi/initio.c initio_exec_scb(host, cmnd); cmnd 2638 drivers/scsi/initio.c static int i91u_bus_reset(struct scsi_cmnd * cmnd) cmnd 2642 drivers/scsi/initio.c host = (struct initio_host *) cmnd->device->host->hostdata; cmnd 2644 drivers/scsi/initio.c spin_lock_irq(cmnd->device->host->host_lock); cmnd 2646 drivers/scsi/initio.c spin_unlock_irq(cmnd->device->host->host_lock); cmnd 2709 drivers/scsi/initio.c static void i91u_unmap_scb(struct pci_dev *pci_dev, struct scsi_cmnd *cmnd) cmnd 2712 drivers/scsi/initio.c if (cmnd->SCp.ptr) { cmnd 2714 drivers/scsi/initio.c (dma_addr_t)((unsigned long)cmnd->SCp.ptr), cmnd 2716 drivers/scsi/initio.c cmnd->SCp.ptr = NULL; cmnd 2720 drivers/scsi/initio.c if (scsi_sg_count(cmnd)) { cmnd 2721 drivers/scsi/initio.c dma_unmap_single(&pci_dev->dev, cmnd->SCp.dma_handle, cmnd 2725 drivers/scsi/initio.c scsi_dma_unmap(cmnd); cmnd 2740 drivers/scsi/initio.c struct scsi_cmnd *cmnd; /* Pointer to SCSI request block */ cmnd 2746 drivers/scsi/initio.c if ((cmnd = cblk->srb) == NULL) { cmnd 2791 drivers/scsi/initio.c cmnd->result = cblk->tastat | (cblk->hastat << 16); cmnd 2792 drivers/scsi/initio.c i91u_unmap_scb(host->pci_dev, cmnd); cmnd 2793 drivers/scsi/initio.c cmnd->scsi_done(cmnd); /* Notify system DONE */ cmnd 5549 drivers/scsi/ipr.c scsi_cmd->cmnd[0]); cmnd 6603 drivers/scsi/ipr.c memcpy(ioarcb->cmd_pkt.cdb, scsi_cmd->cmnd, scsi_cmd->cmd_len); cmnd 6627 drivers/scsi/ipr.c if (scsi_cmd->cmnd[0] >= 0xC0 && cmnd 6628 drivers/scsi/ipr.c (!ipr_is_gscsi(res) || scsi_cmd->cmnd[0] == IPR_QUERY_RSRC_STATE)) { cmnd 1072 drivers/scsi/ips.c SC->cmnd[0], cmnd 1491 drivers/scsi/ips.c if ((SC->cmnd[0] == IPS_IOCTL_COMMAND) && cmnd 1614 drivers/scsi/ips.c if (SC->cmnd[0] == IPS_IOCTL_COMMAND) { cmnd 2658 drivers/scsi/ips.c memcpy(scb->cdb, SC->cmnd, SC->cmd_len); cmnd 2683 drivers/scsi/ips.c ips_command_direction[scb->scsi_cmd->cmnd[0]]; cmnd 2687 drivers/scsi/ips.c if ((scb->scsi_cmd->cmnd[0] == WRITE_BUFFER) && cmnd 3188 drivers/scsi/ips.c ips_command_direction[scb->scsi_cmd->cmnd[0]]; cmnd 3309 drivers/scsi/ips.c if (scb->scsi_cmd->cmnd[0] == INQUIRY) { cmnd 3476 drivers/scsi/ips.c switch (scb->scsi_cmd->cmnd[0]) { cmnd 3496 drivers/scsi/ips.c if (scb->scsi_cmd->cmnd[0] == TEST_UNIT_READY) cmnd 3499 drivers/scsi/ips.c if (scb->scsi_cmd->cmnd[0] == INQUIRY) { cmnd 3554 drivers/scsi/ips.c (scb->scsi_cmd->cmnd[0] == cmnd 3561 drivers/scsi/ips.c (scb->scsi_cmd->cmnd[0] == cmnd 3582 drivers/scsi/ips.c cmnd[1] & 0x1f) << 16) | (scb->scsi_cmd-> cmnd 3583 drivers/scsi/ips.c cmnd[2] << 8) | cmnd 3584 drivers/scsi/ips.c (scb->scsi_cmd->cmnd[3])); cmnd 3600 drivers/scsi/ips.c (scb->scsi_cmd->cmnd[0] == cmnd 3607 drivers/scsi/ips.c (scb->scsi_cmd->cmnd[0] == cmnd 3627 drivers/scsi/ips.c ((scb->scsi_cmd->cmnd[2] << 24) | (scb-> cmnd 3629 drivers/scsi/ips.c cmnd[3] cmnd 3631 drivers/scsi/ips.c (scb->scsi_cmd->cmnd[4] << 8) | scb-> cmnd 3632 drivers/scsi/ips.c scsi_cmd->cmnd[5]); cmnd 3771 drivers/scsi/ips.c memcpy(tapeDCDB->scsi_cdb, scb->scsi_cmd->cmnd, cmnd 3808 drivers/scsi/ips.c memcpy(scb->dcdb.scsi_cdb, scb->scsi_cmd->cmnd, cmnd 3883 drivers/scsi/ips.c switch (scb->scsi_cmd->cmnd[0]) { cmnd 3958 drivers/scsi/ips.c if (scb->scsi_cmd->cmnd[0] == INQUIRY) { cmnd 4114 drivers/scsi/ips.c switch (scb->scsi_cmd->cmnd[2] & 0x3f) { cmnd 187 drivers/scsi/isci/request.c sci_swab32_cpy(&cmd_iu->cdb, task->ssp_task.cmd->cmnd, cmnd 1144 drivers/scsi/libfc/fc_fcp.c memcpy(fsp->cdb_cmd.fc_cdb, fsp->cmd->cmnd, fsp->cmd->cmd_len); cmnd 208 drivers/scsi/libiscsi.c memcpy(ecdb_ahdr->ecdb, cmd->cmnd + ISCSI_CDB_SIZE, rlen); cmnd 353 drivers/scsi/libiscsi.c memcpy(hdr->cdb, sc->cmnd, cmd_len); cmnd 432 drivers/scsi/libiscsi.c "write" : "read", conn->id, sc, sc->cmnd[0], cmnd 1759 drivers/scsi/libiscsi.c sc->cmnd[0], reason); cmnd 1769 drivers/scsi/libiscsi.c sc->cmnd[0], reason); cmnd 631 drivers/scsi/lpfc/lpfc.h struct scsi_cmnd *cmnd); cmnd 592 drivers/scsi/lpfc/lpfc_scsi.c struct scsi_cmnd *cmnd) cmnd 631 drivers/scsi/lpfc/lpfc_scsi.c struct scsi_cmnd *cmnd) cmnd 644 drivers/scsi/lpfc/lpfc_scsi.c if (cmnd && phba->cfg_fcp_io_sched == LPFC_FCP_SCHED_BY_HDWQ) { cmnd 645 drivers/scsi/lpfc/lpfc_scsi.c tag = blk_mq_unique_tag(cmnd->request); cmnd 743 drivers/scsi/lpfc/lpfc_scsi.c struct scsi_cmnd *cmnd) cmnd 745 drivers/scsi/lpfc/lpfc_scsi.c return phba->lpfc_get_scsi_buf(phba, ndlp, cmnd); cmnd 2911 drivers/scsi/lpfc/lpfc_scsi.c "bgstat=x%x bghm=x%x\n", cmd->cmnd[0], cmnd 2923 drivers/scsi/lpfc/lpfc_scsi.c "bgstat=x%x bghm=x%x\n", cmd->cmnd[0], cmnd 2941 drivers/scsi/lpfc/lpfc_scsi.c "bgstat=x%x bghm=x%x\n", cmd->cmnd[0], cmnd 2958 drivers/scsi/lpfc/lpfc_scsi.c "bgstat=x%x bghm=x%x\n", cmd->cmnd[0], cmnd 2975 drivers/scsi/lpfc/lpfc_scsi.c "bgstat=x%x bghm=x%x\n", cmd->cmnd[0], cmnd 3019 drivers/scsi/lpfc/lpfc_scsi.c "bgstat=x%x bghm=x%x\n", cmd->cmnd[0], cmnd 3487 drivers/scsi/lpfc/lpfc_scsi.c struct scsi_cmnd *cmnd = lpfc_cmd->pCmd; cmnd 3500 drivers/scsi/lpfc/lpfc_scsi.c if ((cmnd->result == SAM_STAT_TASK_SET_FULL) || cmnd 3501 drivers/scsi/lpfc/lpfc_scsi.c (cmnd->result == SAM_STAT_BUSY)) { cmnd 3508 drivers/scsi/lpfc/lpfc_scsi.c (cmnd->result == SAM_STAT_TASK_SET_FULL) ? cmnd 3510 drivers/scsi/lpfc/lpfc_scsi.c fast_path_evt->un.scsi_evt.lun = cmnd->device->lun; cmnd 3516 drivers/scsi/lpfc/lpfc_scsi.c ((cmnd->cmnd[0] == READ_10) || (cmnd->cmnd[0] == WRITE_10))) { cmnd 3525 drivers/scsi/lpfc/lpfc_scsi.c cmnd->device->lun; cmnd 3531 drivers/scsi/lpfc/lpfc_scsi.c cmnd->sense_buffer[2] & 0xf; cmnd 3532 drivers/scsi/lpfc/lpfc_scsi.c fast_path_evt->un.check_cond_evt.asc = cmnd->sense_buffer[12]; cmnd 3533 drivers/scsi/lpfc/lpfc_scsi.c fast_path_evt->un.check_cond_evt.ascq = cmnd->sense_buffer[13]; cmnd 3534 drivers/scsi/lpfc/lpfc_scsi.c } else if ((cmnd->sc_data_direction == DMA_FROM_DEVICE) && cmnd 3554 drivers/scsi/lpfc/lpfc_scsi.c fast_path_evt->un.read_check_error.lun = cmnd->device->lun; cmnd 3555 drivers/scsi/lpfc/lpfc_scsi.c fast_path_evt->un.read_check_error.opcode = cmnd->cmnd[0]; cmnd 3609 drivers/scsi/lpfc/lpfc_scsi.c struct scsi_cmnd *cmnd = lpfc_cmd->pCmd; cmnd 3638 drivers/scsi/lpfc/lpfc_scsi.c cmnd->device->id, cmnd 3639 drivers/scsi/lpfc/lpfc_scsi.c cmnd->device->lun, cmnd->cmnd[0], cmnd 3649 drivers/scsi/lpfc/lpfc_scsi.c cmnd->device->id, cmnd 3650 drivers/scsi/lpfc/lpfc_scsi.c cmnd->device->lun, cmnd->cmnd[0], cmnd 3664 drivers/scsi/lpfc/lpfc_scsi.c memcpy(cmnd->sense_buffer, &fcprsp->rspInfo0 + rsplen, snslen); cmnd 3666 drivers/scsi/lpfc/lpfc_scsi.c lp = (uint32_t *)cmnd->sense_buffer; cmnd 3681 drivers/scsi/lpfc/lpfc_scsi.c cmnd->cmnd[0], scsi_status, cmnd 3688 drivers/scsi/lpfc/lpfc_scsi.c scsi_set_resid(cmnd, 0); cmnd 3691 drivers/scsi/lpfc/lpfc_scsi.c scsi_set_resid(cmnd, be32_to_cpu(fcprsp->rspResId)); cmnd 3697 drivers/scsi/lpfc/lpfc_scsi.c scsi_get_resid(cmnd), fcpi_parm, cmnd->cmnd[0], cmnd 3698 drivers/scsi/lpfc/lpfc_scsi.c cmnd->underflow); cmnd 3705 drivers/scsi/lpfc/lpfc_scsi.c if (fcpi_parm && (scsi_get_resid(cmnd) != fcpi_parm)) { cmnd 3711 drivers/scsi/lpfc/lpfc_scsi.c scsi_get_resid(cmnd), fcpi_parm, cmnd 3712 drivers/scsi/lpfc/lpfc_scsi.c cmnd->cmnd[0]); cmnd 3713 drivers/scsi/lpfc/lpfc_scsi.c scsi_set_resid(cmnd, scsi_bufflen(cmnd)); cmnd 3724 drivers/scsi/lpfc/lpfc_scsi.c (scsi_bufflen(cmnd) - scsi_get_resid(cmnd) cmnd 3725 drivers/scsi/lpfc/lpfc_scsi.c < cmnd->underflow)) { cmnd 3730 drivers/scsi/lpfc/lpfc_scsi.c cmnd->cmnd[0], scsi_bufflen(cmnd), cmnd 3731 drivers/scsi/lpfc/lpfc_scsi.c scsi_get_resid(cmnd), cmnd->underflow); cmnd 3737 drivers/scsi/lpfc/lpfc_scsi.c "Data: x%x x%x\n", cmnd->cmnd[0], cmnd 3738 drivers/scsi/lpfc/lpfc_scsi.c scsi_bufflen(cmnd), scsi_get_resid(cmnd)); cmnd 3749 drivers/scsi/lpfc/lpfc_scsi.c ((cmnd->sc_data_direction == DMA_FROM_DEVICE) ? cmnd 3755 drivers/scsi/lpfc/lpfc_scsi.c fcpi_parm, cmnd->cmnd[0], scsi_status); cmnd 3775 drivers/scsi/lpfc/lpfc_scsi.c scsi_set_resid(cmnd, scsi_bufflen(cmnd)); cmnd 3779 drivers/scsi/lpfc/lpfc_scsi.c cmnd->result = host_status << 16 | scsi_status; cmnd 3895 drivers/scsi/lpfc/lpfc_scsi.c cmd->cmnd[0], cmnd 4020 drivers/scsi/lpfc/lpfc_scsi.c ((cmd->cmnd[0] == READ_10) || cmnd 4021 drivers/scsi/lpfc/lpfc_scsi.c (cmd->cmnd[0] == WRITE_10))) cmnd 4104 drivers/scsi/lpfc/lpfc_scsi.c memcpy(ptr, scsi_cmnd->cmnd, scsi_cmnd->cmd_len); cmnd 4497 drivers/scsi/lpfc/lpfc_scsi.c lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd) cmnd 4504 drivers/scsi/lpfc/lpfc_scsi.c struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); cmnd 4510 drivers/scsi/lpfc/lpfc_scsi.c rdata = lpfc_rport_data_from_scsi_device(cmnd->device); cmnd 4518 drivers/scsi/lpfc/lpfc_scsi.c cmnd->result = err; cmnd 4523 drivers/scsi/lpfc/lpfc_scsi.c if ((scsi_get_prot_op(cmnd) != SCSI_PROT_NORMAL) && cmnd 4530 drivers/scsi/lpfc/lpfc_scsi.c cmnd->cmnd[0], scsi_get_prot_op(cmnd), cmnd 4531 drivers/scsi/lpfc/lpfc_scsi.c dif_op_str[scsi_get_prot_op(cmnd)]); cmnd 4572 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd = lpfc_get_scsi_buf(phba, ndlp, cmnd); cmnd 4586 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->pCmd = cmnd; cmnd 4589 drivers/scsi/lpfc/lpfc_scsi.c cmnd->host_scribble = (unsigned char *)lpfc_cmd; cmnd 4591 drivers/scsi/lpfc/lpfc_scsi.c if (scsi_get_prot_op(cmnd) != SCSI_PROT_NORMAL) { cmnd 4597 drivers/scsi/lpfc/lpfc_scsi.c dif_op_str[scsi_get_prot_op(cmnd)], cmnd 4598 drivers/scsi/lpfc/lpfc_scsi.c cmnd->cmnd[0], cmnd 4599 drivers/scsi/lpfc/lpfc_scsi.c (unsigned long long)scsi_get_lba(cmnd), cmnd 4600 drivers/scsi/lpfc/lpfc_scsi.c blk_rq_sectors(cmnd->request), cmnd 4601 drivers/scsi/lpfc/lpfc_scsi.c (cmnd->cmnd[1]>>5)); cmnd 4610 drivers/scsi/lpfc/lpfc_scsi.c cmnd->cmnd[0], cmnd 4611 drivers/scsi/lpfc/lpfc_scsi.c (unsigned long long)scsi_get_lba(cmnd), cmnd 4612 drivers/scsi/lpfc/lpfc_scsi.c blk_rq_sectors(cmnd->request), cmnd 4613 drivers/scsi/lpfc/lpfc_scsi.c (cmnd->cmnd[1]>>5)); cmnd 4619 drivers/scsi/lpfc/lpfc_scsi.c cmnd->result = DID_ERROR << 16; cmnd 4645 drivers/scsi/lpfc/lpfc_scsi.c err, cmnd->cmnd[0], cmnd 4646 drivers/scsi/lpfc/lpfc_scsi.c cmnd->device ? cmnd->device->id : 0xffff, cmnd 4647 drivers/scsi/lpfc/lpfc_scsi.c cmnd->device ? cmnd->device->lun : (u64) -1, cmnd 4655 drivers/scsi/lpfc/lpfc_scsi.c (cmnd->request->timeout / 1000)); cmnd 4698 drivers/scsi/lpfc/lpfc_scsi.c cmnd->scsi_done(cmnd); cmnd 4714 drivers/scsi/lpfc/lpfc_scsi.c lpfc_abort_handler(struct scsi_cmnd *cmnd) cmnd 4716 drivers/scsi/lpfc/lpfc_scsi.c struct Scsi_Host *shost = cmnd->device->host; cmnd 4729 drivers/scsi/lpfc/lpfc_scsi.c status = fc_block_scsi_eh(cmnd); cmnd 4733 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd = (struct lpfc_io_buf *)cmnd->host_scribble; cmnd 4754 drivers/scsi/lpfc/lpfc_scsi.c SUCCESS, cmnd->device->id, cmnd->device->lun); cmnd 4781 drivers/scsi/lpfc/lpfc_scsi.c if (lpfc_cmd->pCmd != cmnd) { cmnd 4874 drivers/scsi/lpfc/lpfc_scsi.c (lpfc_cmd->pCmd != cmnd), cmnd 4879 drivers/scsi/lpfc/lpfc_scsi.c if (lpfc_cmd->pCmd == cmnd) { cmnd 4886 drivers/scsi/lpfc/lpfc_scsi.c cmnd->device->id, cmnd->device->lun); cmnd 4904 drivers/scsi/lpfc/lpfc_scsi.c "LUN %llu\n", ret, cmnd->device->id, cmnd 4905 drivers/scsi/lpfc/lpfc_scsi.c cmnd->device->lun); cmnd 5020 drivers/scsi/lpfc/lpfc_scsi.c lpfc_send_taskmgmt(struct lpfc_vport *vport, struct scsi_cmnd *cmnd, cmnd 5033 drivers/scsi/lpfc/lpfc_scsi.c rdata = lpfc_rport_data_from_scsi_device(cmnd->device); cmnd 5043 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->pCmd = cmnd; cmnd 5119 drivers/scsi/lpfc/lpfc_scsi.c lpfc_chk_tgt_mapped(struct lpfc_vport *vport, struct scsi_cmnd *cmnd) cmnd 5125 drivers/scsi/lpfc/lpfc_scsi.c rdata = lpfc_rport_data_from_scsi_device(cmnd->device); cmnd 5143 drivers/scsi/lpfc/lpfc_scsi.c rdata = lpfc_rport_data_from_scsi_device(cmnd->device); cmnd 5212 drivers/scsi/lpfc/lpfc_scsi.c lpfc_device_reset_handler(struct scsi_cmnd *cmnd) cmnd 5214 drivers/scsi/lpfc/lpfc_scsi.c struct Scsi_Host *shost = cmnd->device->host; cmnd 5218 drivers/scsi/lpfc/lpfc_scsi.c unsigned tgt_id = cmnd->device->id; cmnd 5219 drivers/scsi/lpfc/lpfc_scsi.c uint64_t lun_id = cmnd->device->lun; cmnd 5223 drivers/scsi/lpfc/lpfc_scsi.c rdata = lpfc_rport_data_from_scsi_device(cmnd->device); cmnd 5231 drivers/scsi/lpfc/lpfc_scsi.c status = fc_block_scsi_eh(cmnd); cmnd 5235 drivers/scsi/lpfc/lpfc_scsi.c status = lpfc_chk_tgt_mapped(vport, cmnd); cmnd 5251 drivers/scsi/lpfc/lpfc_scsi.c status = lpfc_send_taskmgmt(vport, cmnd, tgt_id, lun_id, cmnd 5283 drivers/scsi/lpfc/lpfc_scsi.c lpfc_target_reset_handler(struct scsi_cmnd *cmnd) cmnd 5285 drivers/scsi/lpfc/lpfc_scsi.c struct Scsi_Host *shost = cmnd->device->host; cmnd 5289 drivers/scsi/lpfc/lpfc_scsi.c unsigned tgt_id = cmnd->device->id; cmnd 5290 drivers/scsi/lpfc/lpfc_scsi.c uint64_t lun_id = cmnd->device->lun; cmnd 5294 drivers/scsi/lpfc/lpfc_scsi.c rdata = lpfc_rport_data_from_scsi_device(cmnd->device); cmnd 5302 drivers/scsi/lpfc/lpfc_scsi.c status = fc_block_scsi_eh(cmnd); cmnd 5306 drivers/scsi/lpfc/lpfc_scsi.c status = lpfc_chk_tgt_mapped(vport, cmnd); cmnd 5330 drivers/scsi/lpfc/lpfc_scsi.c status = lpfc_send_taskmgmt(vport, cmnd, tgt_id, lun_id, cmnd 5361 drivers/scsi/lpfc/lpfc_scsi.c lpfc_bus_reset_handler(struct scsi_cmnd *cmnd) cmnd 5363 drivers/scsi/lpfc/lpfc_scsi.c struct Scsi_Host *shost = cmnd->device->host; cmnd 5379 drivers/scsi/lpfc/lpfc_scsi.c status = fc_block_scsi_eh(cmnd); cmnd 5410 drivers/scsi/lpfc/lpfc_scsi.c status = lpfc_send_taskmgmt(vport, cmnd, cmnd 5453 drivers/scsi/lpfc/lpfc_scsi.c lpfc_host_reset_handler(struct scsi_cmnd *cmnd) cmnd 5455 drivers/scsi/lpfc/lpfc_scsi.c struct Scsi_Host *shost = cmnd->device->host; cmnd 5985 drivers/scsi/lpfc/lpfc_scsi.c lpfc_no_command(struct Scsi_Host *shost, struct scsi_cmnd *cmnd) cmnd 5991 drivers/scsi/lpfc/lpfc_scsi.c lpfc_no_handler(struct scsi_cmnd *cmnd) cmnd 9289 drivers/scsi/lpfc/lpfc_sli.c uint8_t cmnd; cmnd 9346 drivers/scsi/lpfc/lpfc_sli.c cmnd = iocbq->iocb.ulpCommand; cmnd 9423 drivers/scsi/lpfc/lpfc_sli.c cmnd = CMD_XMIT_SEQUENCE64_CR; cmnd 9765 drivers/scsi/lpfc/lpfc_sli.c cmnd = CMD_ABORT_XRI_CX; cmnd 9860 drivers/scsi/lpfc/lpfc_sli.c bf_set(wqe_cmnd, &wqe->generic.wqe_com, cmnd); cmnd 79 drivers/scsi/mac53c94.c printk(KERN_CONT " %.2x", cmd->cmnd[i]); cmnd 174 drivers/scsi/mac53c94.c writeb(cmd->cmnd[i], ®s->fifo); cmnd 493 drivers/scsi/megaraid.c switch (cmd->cmnd[0]) { cmnd 627 drivers/scsi/megaraid.c switch (cmd->cmnd[0]) { cmnd 665 drivers/scsi/megaraid.c memset(buf, 0, cmd->cmnd[4]); cmnd 704 drivers/scsi/megaraid.c memcpy(pthru->cdb, cmd->cmnd, cmd->cmd_len); cmnd 744 drivers/scsi/megaraid.c mbox->m_out.cmd = (*cmd->cmnd & 0x02) ? cmnd 749 drivers/scsi/megaraid.c mbox->m_out.cmd = (*cmd->cmnd & 0x02) ? cmnd 758 drivers/scsi/megaraid.c mbox->m_out.numsectors = (u32) cmd->cmnd[4]; cmnd 760 drivers/scsi/megaraid.c ((u32)cmd->cmnd[1] << 16) | cmnd 761 drivers/scsi/megaraid.c ((u32)cmd->cmnd[2] << 8) | cmnd 762 drivers/scsi/megaraid.c (u32)cmd->cmnd[3]; cmnd 772 drivers/scsi/megaraid.c if (*cmd->cmnd == READ_6) { cmnd 789 drivers/scsi/megaraid.c (u32)cmd->cmnd[8] | cmnd 790 drivers/scsi/megaraid.c ((u32)cmd->cmnd[7] << 8); cmnd 792 drivers/scsi/megaraid.c ((u32)cmd->cmnd[2] << 24) | cmnd 793 drivers/scsi/megaraid.c ((u32)cmd->cmnd[3] << 16) | cmnd 794 drivers/scsi/megaraid.c ((u32)cmd->cmnd[4] << 8) | cmnd 795 drivers/scsi/megaraid.c (u32)cmd->cmnd[5]; cmnd 798 drivers/scsi/megaraid.c if (*cmd->cmnd == READ_10) { cmnd 815 drivers/scsi/megaraid.c ((u32)cmd->cmnd[2] << 24) | cmnd 816 drivers/scsi/megaraid.c ((u32)cmd->cmnd[3] << 16) | cmnd 817 drivers/scsi/megaraid.c ((u32)cmd->cmnd[4] << 8) | cmnd 818 drivers/scsi/megaraid.c (u32)cmd->cmnd[5]; cmnd 821 drivers/scsi/megaraid.c ((u32)cmd->cmnd[6] << 24) | cmnd 822 drivers/scsi/megaraid.c ((u32)cmd->cmnd[7] << 16) | cmnd 823 drivers/scsi/megaraid.c ((u32)cmd->cmnd[8] << 8) | cmnd 824 drivers/scsi/megaraid.c (u32)cmd->cmnd[9]; cmnd 827 drivers/scsi/megaraid.c if (*cmd->cmnd == READ_12) { cmnd 842 drivers/scsi/megaraid.c if( (*cmd->cmnd & 0x0F) == 0x08 ) { cmnd 876 drivers/scsi/megaraid.c scb->raw_mbox[2] = ( *cmd->cmnd == RESERVE ) ? cmnd 972 drivers/scsi/megaraid.c memcpy(pthru->cdb, cmd->cmnd, cmd->cmd_len); cmnd 978 drivers/scsi/megaraid.c switch (cmd->cmnd[0]) { cmnd 1036 drivers/scsi/megaraid.c memcpy(epthru->cdb, cmd->cmnd, cmd->cmd_len); cmnd 1041 drivers/scsi/megaraid.c switch(cmd->cmnd[0]) { cmnd 1516 drivers/scsi/megaraid.c if( status && islogical && (cmd->cmnd[0] == READ_6 || cmnd 1517 drivers/scsi/megaraid.c cmd->cmnd[0] == READ_10 || cmnd 1518 drivers/scsi/megaraid.c cmd->cmnd[0] == READ_12)) { cmnd 1526 drivers/scsi/megaraid.c if( status && islogical && (cmd->cmnd[0] == WRITE_6 || cmnd 1527 drivers/scsi/megaraid.c cmd->cmnd[0] == WRITE_10 || cmnd 1528 drivers/scsi/megaraid.c cmd->cmnd[0] == WRITE_12)) { cmnd 1547 drivers/scsi/megaraid.c if( cmd->cmnd[0] == INQUIRY && !islogical ) { cmnd 1614 drivers/scsi/megaraid.c if( cmd->cmnd[0] == TEST_UNIT_READY ) { cmnd 1624 drivers/scsi/megaraid.c (cmd->cmnd[0] == RESERVE || cmnd 1625 drivers/scsi/megaraid.c cmd->cmnd[0] == RELEASE) ) { cmnd 1939 drivers/scsi/megaraid.c cmd->cmnd[0], cmd->device->channel, cmnd 1506 drivers/scsi/megaraid/megaraid_mbox.c switch (scp->cmnd[0]) { cmnd 1547 drivers/scsi/megaraid/megaraid_mbox.c memset(vaddr, 0, scp->cmnd[4]); cmnd 1576 drivers/scsi/megaraid/megaraid_mbox.c if (scp->cmnd[1] & MEGA_SCSI_INQ_EVPD) { cmnd 1621 drivers/scsi/megaraid/megaraid_mbox.c memcpy(pthru->cdb, scp->cmnd, scp->cmd_len); cmnd 1663 drivers/scsi/megaraid/megaraid_mbox.c mbox->cmd = (scp->cmnd[0] & 0x02) ? MBOXCMD_LWRITE64: cmnd 1670 drivers/scsi/megaraid/megaraid_mbox.c mbox->numsectors = (uint32_t)scp->cmnd[4]; cmnd 1672 drivers/scsi/megaraid/megaraid_mbox.c ((uint32_t)scp->cmnd[1] << 16) | cmnd 1673 drivers/scsi/megaraid/megaraid_mbox.c ((uint32_t)scp->cmnd[2] << 8) | cmnd 1674 drivers/scsi/megaraid/megaraid_mbox.c (uint32_t)scp->cmnd[3]; cmnd 1684 drivers/scsi/megaraid/megaraid_mbox.c (uint32_t)scp->cmnd[8] | cmnd 1685 drivers/scsi/megaraid/megaraid_mbox.c ((uint32_t)scp->cmnd[7] << 8); cmnd 1687 drivers/scsi/megaraid/megaraid_mbox.c ((uint32_t)scp->cmnd[2] << 24) | cmnd 1688 drivers/scsi/megaraid/megaraid_mbox.c ((uint32_t)scp->cmnd[3] << 16) | cmnd 1689 drivers/scsi/megaraid/megaraid_mbox.c ((uint32_t)scp->cmnd[4] << 8) | cmnd 1690 drivers/scsi/megaraid/megaraid_mbox.c (uint32_t)scp->cmnd[5]; cmnd 1698 drivers/scsi/megaraid/megaraid_mbox.c ((uint32_t)scp->cmnd[2] << 24) | cmnd 1699 drivers/scsi/megaraid/megaraid_mbox.c ((uint32_t)scp->cmnd[3] << 16) | cmnd 1700 drivers/scsi/megaraid/megaraid_mbox.c ((uint32_t)scp->cmnd[4] << 8) | cmnd 1701 drivers/scsi/megaraid/megaraid_mbox.c (uint32_t)scp->cmnd[5]; cmnd 1704 drivers/scsi/megaraid/megaraid_mbox.c ((uint32_t)scp->cmnd[6] << 24) | cmnd 1705 drivers/scsi/megaraid/megaraid_mbox.c ((uint32_t)scp->cmnd[7] << 16) | cmnd 1706 drivers/scsi/megaraid/megaraid_mbox.c ((uint32_t)scp->cmnd[8] << 8) | cmnd 1707 drivers/scsi/megaraid/megaraid_mbox.c (uint32_t)scp->cmnd[9]; cmnd 1753 drivers/scsi/megaraid/megaraid_mbox.c ccb->raw_mbox[2] = (scp->cmnd[0] == RESERVE) ? cmnd 1958 drivers/scsi/megaraid/megaraid_mbox.c memcpy(pthru->cdb, scp->cmnd, scp->cmd_len); cmnd 2007 drivers/scsi/megaraid/megaraid_mbox.c memcpy(epthru->cdb, scp->cmnd, scp->cmd_len); cmnd 2257 drivers/scsi/megaraid/megaraid_mbox.c if (scp->cmnd[0] == INQUIRY && status == 0 && islogical == 0 cmnd 2335 drivers/scsi/megaraid/megaraid_mbox.c if (scp->cmnd[0] == TEST_UNIT_READY) { cmnd 2344 drivers/scsi/megaraid/megaraid_mbox.c if (status == 1 && (scp->cmnd[0] == RESERVE || cmnd 2345 drivers/scsi/megaraid/megaraid_mbox.c scp->cmnd[0] == RELEASE)) { cmnd 2400 drivers/scsi/megaraid/megaraid_mbox.c scp->cmnd[0], SCP2CHANNEL(scp), cmnd 3341 drivers/scsi/megaraid/megaraid_mbox.c con_log(level, ("%#2.02x ", scp->cmnd[i])); cmnd 1419 drivers/scsi/megaraid/megaraid_sas_base.c memcpy(pthru->cdb, scp->cmnd, scp->cmd_len); cmnd 1485 drivers/scsi/megaraid/megaraid_sas_base.c u8 sc = scp->cmnd[0]; cmnd 1513 drivers/scsi/megaraid/megaraid_sas_base.c ldio->access_byte = (scp->cmd_len != 6) ? scp->cmnd[1] : 0; cmnd 1519 drivers/scsi/megaraid/megaraid_sas_base.c ldio->lba_count = cpu_to_le32((u32) scp->cmnd[4]); cmnd 1520 drivers/scsi/megaraid/megaraid_sas_base.c ldio->start_lba_lo = cpu_to_le32(((u32) scp->cmnd[1] << 16) | cmnd 1521 drivers/scsi/megaraid/megaraid_sas_base.c ((u32) scp->cmnd[2] << 8) | cmnd 1522 drivers/scsi/megaraid/megaraid_sas_base.c (u32) scp->cmnd[3]); cmnd 1531 drivers/scsi/megaraid/megaraid_sas_base.c ldio->lba_count = cpu_to_le32((u32) scp->cmnd[8] | cmnd 1532 drivers/scsi/megaraid/megaraid_sas_base.c ((u32) scp->cmnd[7] << 8)); cmnd 1533 drivers/scsi/megaraid/megaraid_sas_base.c ldio->start_lba_lo = cpu_to_le32(((u32) scp->cmnd[2] << 24) | cmnd 1534 drivers/scsi/megaraid/megaraid_sas_base.c ((u32) scp->cmnd[3] << 16) | cmnd 1535 drivers/scsi/megaraid/megaraid_sas_base.c ((u32) scp->cmnd[4] << 8) | cmnd 1536 drivers/scsi/megaraid/megaraid_sas_base.c (u32) scp->cmnd[5]); cmnd 1543 drivers/scsi/megaraid/megaraid_sas_base.c ldio->lba_count = cpu_to_le32(((u32) scp->cmnd[6] << 24) | cmnd 1544 drivers/scsi/megaraid/megaraid_sas_base.c ((u32) scp->cmnd[7] << 16) | cmnd 1545 drivers/scsi/megaraid/megaraid_sas_base.c ((u32) scp->cmnd[8] << 8) | cmnd 1546 drivers/scsi/megaraid/megaraid_sas_base.c (u32) scp->cmnd[9]); cmnd 1548 drivers/scsi/megaraid/megaraid_sas_base.c ldio->start_lba_lo = cpu_to_le32(((u32) scp->cmnd[2] << 24) | cmnd 1549 drivers/scsi/megaraid/megaraid_sas_base.c ((u32) scp->cmnd[3] << 16) | cmnd 1550 drivers/scsi/megaraid/megaraid_sas_base.c ((u32) scp->cmnd[4] << 8) | cmnd 1551 drivers/scsi/megaraid/megaraid_sas_base.c (u32) scp->cmnd[5]); cmnd 1558 drivers/scsi/megaraid/megaraid_sas_base.c ldio->lba_count = cpu_to_le32(((u32) scp->cmnd[10] << 24) | cmnd 1559 drivers/scsi/megaraid/megaraid_sas_base.c ((u32) scp->cmnd[11] << 16) | cmnd 1560 drivers/scsi/megaraid/megaraid_sas_base.c ((u32) scp->cmnd[12] << 8) | cmnd 1561 drivers/scsi/megaraid/megaraid_sas_base.c (u32) scp->cmnd[13]); cmnd 1563 drivers/scsi/megaraid/megaraid_sas_base.c ldio->start_lba_lo = cpu_to_le32(((u32) scp->cmnd[6] << 24) | cmnd 1564 drivers/scsi/megaraid/megaraid_sas_base.c ((u32) scp->cmnd[7] << 16) | cmnd 1565 drivers/scsi/megaraid/megaraid_sas_base.c ((u32) scp->cmnd[8] << 8) | cmnd 1566 drivers/scsi/megaraid/megaraid_sas_base.c (u32) scp->cmnd[9]); cmnd 1568 drivers/scsi/megaraid/megaraid_sas_base.c ldio->start_lba_hi = cpu_to_le32(((u32) scp->cmnd[2] << 24) | cmnd 1569 drivers/scsi/megaraid/megaraid_sas_base.c ((u32) scp->cmnd[3] << 16) | cmnd 1570 drivers/scsi/megaraid/megaraid_sas_base.c ((u32) scp->cmnd[4] << 8) | cmnd 1571 drivers/scsi/megaraid/megaraid_sas_base.c (u32) scp->cmnd[5]); cmnd 1621 drivers/scsi/megaraid/megaraid_sas_base.c switch (cmd->cmnd[0]) { cmnd 1817 drivers/scsi/megaraid/megaraid_sas_base.c if ((scmd->cmnd[0] == SYNCHRONIZE_CACHE) && cmnd 2720 drivers/scsi/megaraid/megaraid_sas_base.c reset_cmd->scmd->cmnd[0]); cmnd 2836 drivers/scsi/megaraid/megaraid_sas_base.c scmd->cmnd[0], scmd->retries); cmnd 3737 drivers/scsi/megaraid/megaraid_sas_base.c cmd, cmd->scmd->cmnd[0]); cmnd 2756 drivers/scsi/megaraid/megaraid_sas_fusion.c datalength = (u32) scp->cmnd[4]; cmnd 2757 drivers/scsi/megaraid/megaraid_sas_fusion.c start_lba_lo = ((u32) scp->cmnd[1] << 16) | cmnd 2758 drivers/scsi/megaraid/megaraid_sas_fusion.c ((u32) scp->cmnd[2] << 8) | (u32) scp->cmnd[3]; cmnd 2767 drivers/scsi/megaraid/megaraid_sas_fusion.c datalength = (u32) scp->cmnd[8] | cmnd 2768 drivers/scsi/megaraid/megaraid_sas_fusion.c ((u32) scp->cmnd[7] << 8); cmnd 2769 drivers/scsi/megaraid/megaraid_sas_fusion.c start_lba_lo = ((u32) scp->cmnd[2] << 24) | cmnd 2770 drivers/scsi/megaraid/megaraid_sas_fusion.c ((u32) scp->cmnd[3] << 16) | cmnd 2771 drivers/scsi/megaraid/megaraid_sas_fusion.c ((u32) scp->cmnd[4] << 8) | (u32) scp->cmnd[5]; cmnd 2778 drivers/scsi/megaraid/megaraid_sas_fusion.c datalength = ((u32) scp->cmnd[6] << 24) | cmnd 2779 drivers/scsi/megaraid/megaraid_sas_fusion.c ((u32) scp->cmnd[7] << 16) | cmnd 2780 drivers/scsi/megaraid/megaraid_sas_fusion.c ((u32) scp->cmnd[8] << 8) | (u32) scp->cmnd[9]; cmnd 2781 drivers/scsi/megaraid/megaraid_sas_fusion.c start_lba_lo = ((u32) scp->cmnd[2] << 24) | cmnd 2782 drivers/scsi/megaraid/megaraid_sas_fusion.c ((u32) scp->cmnd[3] << 16) | cmnd 2783 drivers/scsi/megaraid/megaraid_sas_fusion.c ((u32) scp->cmnd[4] << 8) | (u32) scp->cmnd[5]; cmnd 2790 drivers/scsi/megaraid/megaraid_sas_fusion.c datalength = ((u32) scp->cmnd[10] << 24) | cmnd 2791 drivers/scsi/megaraid/megaraid_sas_fusion.c ((u32) scp->cmnd[11] << 16) | cmnd 2792 drivers/scsi/megaraid/megaraid_sas_fusion.c ((u32) scp->cmnd[12] << 8) | (u32) scp->cmnd[13]; cmnd 2793 drivers/scsi/megaraid/megaraid_sas_fusion.c start_lba_lo = ((u32) scp->cmnd[6] << 24) | cmnd 2794 drivers/scsi/megaraid/megaraid_sas_fusion.c ((u32) scp->cmnd[7] << 16) | cmnd 2795 drivers/scsi/megaraid/megaraid_sas_fusion.c ((u32) scp->cmnd[8] << 8) | (u32) scp->cmnd[9]; cmnd 2797 drivers/scsi/megaraid/megaraid_sas_fusion.c start_lba_hi = ((u32) scp->cmnd[2] << 24) | cmnd 2798 drivers/scsi/megaraid/megaraid_sas_fusion.c ((u32) scp->cmnd[3] << 16) | cmnd 2799 drivers/scsi/megaraid/megaraid_sas_fusion.c ((u32) scp->cmnd[4] << 8) | (u32) scp->cmnd[5]; cmnd 3236 drivers/scsi/megaraid/megaraid_sas_fusion.c memcpy(io_request->CDB.CDB32, scp->cmnd, scp->cmd_len); cmnd 420 drivers/scsi/mesh.c printk(" %x", cmd->cmnd[i]); cmnd 606 drivers/scsi/mesh.c if ((cmd->cmnd[0] == 0 || cmd->cmnd[0] == 0x12 || cmd->cmnd[0] == 3) cmnd 775 drivers/scsi/mesh.c out_8(&mr->fifo, cmd->cmnd[i]); cmnd 3830 drivers/scsi/mpt3sas/mpt3sas_scsih.c switch (scmd->cmnd[0]) { cmnd 4494 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (scmd->cmnd[0] != ATA_12 && scmd->cmnd[0] != ATA_16) cmnd 4757 drivers/scsi/mpt3sas/mpt3sas_scsih.c memcpy(mpi_request->CDB.CDB32, scmd->cmnd, scmd->cmd_len); cmnd 5255 drivers/scsi/mpt3sas/mpt3sas_scsih.c memcpy(mpi_request->CDB.CDB32, scmd->cmnd, scmd->cmd_len); cmnd 5379 drivers/scsi/mpt3sas/mpt3sas_scsih.c else if (!xfer_cnt && scmd->cmnd[0] == REPORT_LUNS) { cmnd 261 drivers/scsi/mpt3sas/mpt3sas_warpdrive.c u8 num_pds, cmd = scmd->cmnd[0]; cmnd 673 drivers/scsi/mvsas/mv_sas.c memcpy(buf_cmd + 12, task->ssp_task.cmd->cmnd, cmnd 1435 drivers/scsi/mvsas/mv_sas.c struct scsi_cmnd * cmnd = (struct scsi_cmnd *)task->uldd_task; cmnd 1440 drivers/scsi/mvsas/mv_sas.c int_to_scsilun(cmnd->device->lun, &lun); cmnd 1492 drivers/scsi/mvsas/mv_sas.c struct scsi_cmnd * cmnd = (struct scsi_cmnd *)task->uldd_task; cmnd 1494 drivers/scsi/mvsas/mv_sas.c int_to_scsilun(cmnd->device->lun, &lun); cmnd 705 drivers/scsi/mvumi.c scmd->request->tag, scmd->cmnd[0], scmd->retries); cmnd 2050 drivers/scsi/mvumi.c "cmd[0x%x]\n", scmd->sc_data_direction, scmd->cmnd[0]); cmnd 2055 drivers/scsi/mvumi.c memcpy(pframe->cdb, scmd->cmnd, pframe->cdb_length); cmnd 1331 drivers/scsi/myrb.c memcpy(&dcdb->cdb, scmd->cmnd, scmd->cmd_len); cmnd 1370 drivers/scsi/myrb.c dbd = (scmd->cmnd[1] & 0x08) == 0x08; cmnd 1444 drivers/scsi/myrb.c switch (scmd->cmnd[0]) { cmnd 1450 drivers/scsi/myrb.c if (scmd->cmnd[1] & 1) { cmnd 1467 drivers/scsi/myrb.c if ((scmd->cmnd[2] & 0x3F) != 0x3F && cmnd 1468 drivers/scsi/myrb.c (scmd->cmnd[2] & 0x3F) != 0x08) { cmnd 1481 drivers/scsi/myrb.c if ((scmd->cmnd[1] & 1) || cmnd 1482 drivers/scsi/myrb.c (scmd->cmnd[8] & 1)) { cmnd 1491 drivers/scsi/myrb.c lba = get_unaligned_be32(&scmd->cmnd[2]); cmnd 1509 drivers/scsi/myrb.c if (scmd->cmnd[1] != 0x04) { cmnd 1533 drivers/scsi/myrb.c lba = (((scmd->cmnd[1] & 0x1F) << 16) | cmnd 1534 drivers/scsi/myrb.c (scmd->cmnd[2] << 8) | cmnd 1535 drivers/scsi/myrb.c scmd->cmnd[3]); cmnd 1536 drivers/scsi/myrb.c block_cnt = scmd->cmnd[4]; cmnd 1552 drivers/scsi/myrb.c lba = get_unaligned_be32(&scmd->cmnd[2]); cmnd 1553 drivers/scsi/myrb.c block_cnt = get_unaligned_be16(&scmd->cmnd[7]); cmnd 1569 drivers/scsi/myrb.c lba = get_unaligned_be32(&scmd->cmnd[2]); cmnd 1570 drivers/scsi/myrb.c block_cnt = get_unaligned_be32(&scmd->cmnd[6]); cmnd 1548 drivers/scsi/myrs.c dbd = (scmd->cmnd[1] & 0x08) == 0x08; cmnd 1603 drivers/scsi/myrs.c switch (scmd->cmnd[0]) { cmnd 1614 drivers/scsi/myrs.c if ((scmd->cmnd[2] & 0x3F) != 0x3F && cmnd 1615 drivers/scsi/myrs.c (scmd->cmnd[2] & 0x3F) != 0x08) { cmnd 1670 drivers/scsi/myrs.c memcpy(&mbox->SCSI_10.cdb, scmd->cmnd, scmd->cmd_len); cmnd 1717 drivers/scsi/myrs.c memcpy(cmd_blk->dcdb, scmd->cmnd, scmd->cmd_len); cmnd 4144 drivers/scsi/ncr53c8xx.c if ((cmd->cmnd[0] == 0 || cmd->cmnd[0] == 0x12) && cmnd 4151 drivers/scsi/ncr53c8xx.c PRINT_ADDR(cmd, "CMD=%x ", cmd->cmnd[0]); cmnd 4216 drivers/scsi/ncr53c8xx.c switch (cmd->cmnd[0]) { cmnd 4365 drivers/scsi/ncr53c8xx.c memcpy(cp->cdb_buf, cmd->cmnd, min_t(int, cmd->cmd_len, sizeof(cp->cdb_buf))); cmnd 4900 drivers/scsi/ncr53c8xx.c "scsi_status=%x\n", cmd->cmnd[0], cmnd 5024 drivers/scsi/ncr53c8xx.c p = (u_char*) &cmd->cmnd[0]; cmnd 506 drivers/scsi/nsp32.c param->cdb[4 * i] = SCpnt->cmnd[i]; cmnd 618 drivers/scsi/nsp32.c nsp32_write1(base, COMMAND_DATA, SCpnt->cmnd[i]); cmnd 620 drivers/scsi/nsp32.c nsp32_dbg(NSP32_DEBUG_CDB_CONTENTS, "CDB[0]=[0x%x]", SCpnt->cmnd[0]); cmnd 907 drivers/scsi/nsp32.c SCpnt->device->id, SCpnt->device->lun, SCpnt->cmnd[0], SCpnt->cmd_len, cmnd 142 drivers/scsi/nsp32_debug.c print_commandk(SCpnt->cmnd); cmnd 1178 drivers/scsi/pcmcia/nsp_cs.c nsp_index_write(base, COMMANDDATA, tmpSC->cmnd[i]); cmnd 143 drivers/scsi/pcmcia/nsp_debug.c print_commandk(SCpnt->cmnd); cmnd 551 drivers/scsi/pcmcia/sym53c500_cs.c SCpnt->cmnd[0], SCpnt->cmd_len, SCpnt->device->id, cmnd 555 drivers/scsi/pcmcia/sym53c500_cs.c printk("cmd[%d]=%02x ", i, SCpnt->cmnd[i])); cmnd 570 drivers/scsi/pcmcia/sym53c500_cs.c outb(SCpnt->cmnd[i], port_base + SCSI_FIFO); cmnd 4331 drivers/scsi/pm8001/pm8001_hwi.c memcpy(ssp_cmd.ssp_iu.cdb, task->ssp_task.cmd->cmnd, cmnd 1148 drivers/scsi/pm8001/pm8001_sas.c struct scsi_cmnd *cmnd = task->uldd_task; cmnd 1153 drivers/scsi/pm8001/pm8001_sas.c int_to_scsilun(cmnd->device->lun, &lun); cmnd 1161 drivers/scsi/pm8001/pm8001_sas.c printk(KERN_INFO "%02x ", cmnd->cmnd[i]); cmnd 1222 drivers/scsi/pm8001/pm8001_sas.c struct scsi_cmnd *cmnd = task->uldd_task; cmnd 1223 drivers/scsi/pm8001/pm8001_sas.c int_to_scsilun(cmnd->device->lun, &lun); cmnd 4013 drivers/scsi/pm8001/pm80xx_hwi.c u8 cmd = task->ssp_task.cmd->cmnd[0]; cmnd 4078 drivers/scsi/pm8001/pm80xx_hwi.c memcpy(ssp_cmd.ssp_iu.cdb, task->ssp_task.cmd->cmnd, cmnd 4088 drivers/scsi/pm8001/pm80xx_hwi.c task->ssp_task.cmd->cmnd[0])); cmnd 4146 drivers/scsi/pm8001/pm80xx_hwi.c ssp_cmd.twk_val0 = cpu_to_le32((task->ssp_task.cmd->cmnd[2] << 24) | cmnd 4147 drivers/scsi/pm8001/pm80xx_hwi.c (task->ssp_task.cmd->cmnd[3] << 16) | cmnd 4148 drivers/scsi/pm8001/pm80xx_hwi.c (task->ssp_task.cmd->cmnd[4] << 8) | cmnd 4149 drivers/scsi/pm8001/pm80xx_hwi.c (task->ssp_task.cmd->cmnd[5])); cmnd 4153 drivers/scsi/pm8001/pm80xx_hwi.c task->ssp_task.cmd->cmnd[0], q_index)); cmnd 2599 drivers/scsi/pmcraid.c if (SCSI_CMD_TYPE(scsi_cmd->cmnd[0]) == SCSI_READ_CMD) cmnd 2601 drivers/scsi/pmcraid.c else if (SCSI_CMD_TYPE(scsi_cmd->cmnd[0]) == SCSI_WRITE_CMD) cmnd 3361 drivers/scsi/pmcraid.c if (scsi_cmd->cmnd[0] == SYNCHRONIZE_CACHE) { cmnd 3377 drivers/scsi/pmcraid.c memcpy(ioarcb->cdb, scsi_cmd->cmnd, scsi_cmd->cmd_len); cmnd 3412 drivers/scsi/pmcraid.c scsi_cmd->cmnd[0], pinstance->host->unique_id, cmnd 501 drivers/scsi/ppa.c if (!ppa_out(dev, &cmd->cmnd[k], 1)) cmnd 528 drivers/scsi/ppa.c v = cmd->cmnd[0]; cmnd 88 drivers/scsi/ps3rom.c unsigned char opcode = cmd->cmnd[0]; cmnd 96 drivers/scsi/ps3rom.c memcpy(&atapi_cmnd.pkt, cmd->cmnd, 12); cmnd 150 drivers/scsi/ps3rom.c return cmd->cmnd[2] << 24 | cmd->cmnd[3] << 16 | cmd->cmnd[4] << 8 | cmnd 151 drivers/scsi/ps3rom.c cmd->cmnd[5]; cmnd 156 drivers/scsi/ps3rom.c return cmd->cmnd[7] << 8 | cmd->cmnd[8]; cmnd 214 drivers/scsi/ps3rom.c opcode = cmd->cmnd[0]; cmnd 309 drivers/scsi/ps3rom.c if (cmd->cmnd[0] == REQUEST_SENSE) { cmnd 588 drivers/scsi/qedf/qedf_io.c memcpy(fcp_cmnd->fc_cdb, sc_cmd->cmnd, sc_cmd->cmd_len); cmnd 824 drivers/scsi/qedf/qedf_io.c io_log->op = op = sc_cmd->cmnd[0]; cmnd 825 drivers/scsi/qedf/qedf_io.c io_log->lba[0] = sc_cmd->cmnd[2]; cmnd 826 drivers/scsi/qedf/qedf_io.c io_log->lba[1] = sc_cmd->cmnd[3]; cmnd 827 drivers/scsi/qedf/qedf_io.c io_log->lba[2] = sc_cmd->cmnd[4]; cmnd 828 drivers/scsi/qedf/qedf_io.c io_log->lba[3] = sc_cmd->cmnd[5]; cmnd 1222 drivers/scsi/qedf/qedf_io.c cqe->cqe_info.rsp_info.fw_residual, sc_cmd->cmnd[2], cmnd 1223 drivers/scsi/qedf/qedf_io.c sc_cmd->cmnd[3], sc_cmd->cmnd[4], sc_cmd->cmnd[5]); cmnd 1251 drivers/scsi/qedf/qedf_io.c sc_cmd->cmnd[0], sc_cmd->cmnd[2], sc_cmd->cmnd[3], cmnd 1252 drivers/scsi/qedf/qedf_io.c sc_cmd->cmnd[4], sc_cmd->cmnd[5], cmnd 1399 drivers/scsi/qedf/qedf_io.c sc_cmd->device->lun, sc_cmd, sc_cmd->result, sc_cmd->cmnd[0], cmnd 1400 drivers/scsi/qedf/qedf_io.c sc_cmd->cmnd[2], sc_cmd->cmnd[3], sc_cmd->cmnd[4], cmnd 1401 drivers/scsi/qedf/qedf_io.c sc_cmd->cmnd[5], sc_cmd->allowed, sc_cmd->retries, cmnd 2406 drivers/scsi/qedf/qedf_io.c tm_flags, sc_cmd, sc_cmd->cmd_len ? sc_cmd->cmnd[0] : 0xff, cmnd 680 drivers/scsi/qedf/qedf_main.c sc_cmd, sc_cmd->cmnd[0], cmnd 703 drivers/scsi/qedf/qedf_main.c io_req, io_req->xid, sc_cmd, sc_cmd->cmnd[0], cmnd 1960 drivers/scsi/qedi/qedi_fw.c srcp = (u8 *)sc->cmnd; cmnd 1989 drivers/scsi/qedi/qedi_fw.c io_log->op = sc_cmd->cmnd[0]; cmnd 1990 drivers/scsi/qedi/qedi_fw.c io_log->lba[0] = sc_cmd->cmnd[2]; cmnd 1991 drivers/scsi/qedi/qedi_fw.c io_log->lba[1] = sc_cmd->cmnd[3]; cmnd 1992 drivers/scsi/qedi/qedi_fw.c io_log->lba[2] = sc_cmd->cmnd[4]; cmnd 1993 drivers/scsi/qedi/qedi_fw.c io_log->lba[3] = sc_cmd->cmnd[5]; cmnd 441 drivers/scsi/qla1280.c qla1280_data_direction(struct scsi_cmnd *cmnd) cmnd 443 drivers/scsi/qla1280.c switch(cmnd->sc_data_direction) { cmnd 488 drivers/scsi/qla1280.c #define CMD_CDBP(Cmnd) Cmnd->cmnd cmnd 2805 drivers/scsi/qla1280.c cmd->cmnd[0], (long)CMD_HANDLE(sp->cmd)); cmnd 2808 drivers/scsi/qla1280.c qla1280_dump_buffer(2, cmd->cmnd, MAX_COMMAND_SIZE); cmnd 3007 drivers/scsi/qla1280.c cmd->cmnd[0]); cmnd 3972 drivers/scsi/qla1280.c printk("0x%02x ", cmd->cmnd[i]); cmnd 410 drivers/scsi/qla2xxx/qla_iocb.c memcpy(cmd_pkt->scsi_cdb, cmd->cmnd, cmd->cmd_len); cmnd 1483 drivers/scsi/qla2xxx/qla_iocb.c memcpy(fcp_cmnd->cdb, cmd->cmnd, cmd->cmd_len); cmnd 1679 drivers/scsi/qla2xxx/qla_iocb.c memcpy(cmd_pkt->fcp_cdb, cmd->cmnd, cmd->cmd_len); cmnd 1999 drivers/scsi/qla2xxx/qla_iocb.c memcpy(cmd_pkt->fcp_cdb, cmd->cmnd, cmd->cmd_len); cmnd 3269 drivers/scsi/qla2xxx/qla_iocb.c memcpy(ctx->fcp_cmnd->cdb, cmd->cmnd, cmd->cmd_len); cmnd 3328 drivers/scsi/qla2xxx/qla_iocb.c memcpy(cmd_pkt->fcp_cdb, cmd->cmnd, cmd->cmd_len); cmnd 2160 drivers/scsi/qla2xxx/qla_isr.c cmd->cmnd[0], (u64)scsi_get_lba(cmd), a_ref_tag, e_ref_tag, cmnd 2771 drivers/scsi/qla2xxx/qla_isr.c ox_id, cp->cmnd, scsi_bufflen(cp), rsp_info_len, cmnd 2791 drivers/scsi/qla2xxx/qla_isr.c cp->cmnd, scsi_bufflen(cp), rsp_info_len, cmnd 2536 drivers/scsi/qla2xxx/qla_mr.c lscsi_status, cp->cmnd, scsi_bufflen(cp), cmnd 3151 drivers/scsi/qla2xxx/qla_mr.c host_to_adap(cmd->cmnd, lcmd_pkt.fcp_cdb, sizeof(lcmd_pkt.fcp_cdb)); cmnd 3164 drivers/scsi/qla2xxx/qla_mr.c cmd->cmnd, cmd->cmd_len); cmnd 330 drivers/scsi/qla4xxx/ql4_iocb.c memcpy(cmd_entry->cdb, cmd->cmnd, cmd->cmd_len); cmnd 9197 drivers/scsi/qla4xxx/ql4_os.c ha->host_no, id, lun, cmd, cmd->cmnd[0]); cmnd 249 drivers/scsi/qlogicfas408.c outb(cmd->cmnd[i], qbase + 2); cmnd 887 drivers/scsi/qlogicpti.c if ((Cmnd->cmnd[0] == WRITE_6) || cmnd 888 drivers/scsi/qlogicpti.c (Cmnd->cmnd[0] == WRITE_10) || cmnd 889 drivers/scsi/qlogicpti.c (Cmnd->cmnd[0] == WRITE_12)) cmnd 894 drivers/scsi/qlogicpti.c memcpy(cmd->cdb, Cmnd->cmnd, Cmnd->cmd_len); cmnd 1393 drivers/scsi/scsi_debug.c unsigned char *cmd = scp->cmnd; cmnd 1547 drivers/scsi/scsi_debug.c unsigned char *cmd = scp->cmnd; cmnd 1607 drivers/scsi/scsi_debug.c unsigned char *cmd = scp->cmnd; cmnd 1659 drivers/scsi/scsi_debug.c unsigned char *cmd = scp->cmnd; cmnd 1698 drivers/scsi/scsi_debug.c unsigned char *cmd = scp->cmnd; cmnd 1782 drivers/scsi/scsi_debug.c u8 *cmd = scp->cmnd; cmnd 1928 drivers/scsi/scsi_debug.c u8 *cmd = scp->cmnd; cmnd 2120 drivers/scsi/scsi_debug.c unsigned char *cmd = scp->cmnd; cmnd 2279 drivers/scsi/scsi_debug.c unsigned char *cmd = scp->cmnd; cmnd 2385 drivers/scsi/scsi_debug.c unsigned char *cmd = scp->cmnd; cmnd 2663 drivers/scsi/scsi_debug.c u8 *cmd = scp->cmnd; cmnd 2968 drivers/scsi/scsi_debug.c u8 *cmd = scp->cmnd; cmnd 3084 drivers/scsi/scsi_debug.c u8 *cmd = scp->cmnd; cmnd 3299 drivers/scsi/scsi_debug.c u8 *cmd = scp->cmnd; cmnd 3324 drivers/scsi/scsi_debug.c u8 *cmd = scp->cmnd; cmnd 3355 drivers/scsi/scsi_debug.c u8 *cmd = scp->cmnd; cmnd 3401 drivers/scsi/scsi_debug.c u8 *cmd = scp->cmnd; cmnd 3482 drivers/scsi/scsi_debug.c payload_len = get_unaligned_be16(scp->cmnd + 7); cmnd 3532 drivers/scsi/scsi_debug.c u8 *cmd = scp->cmnd; cmnd 3575 drivers/scsi/scsi_debug.c u8 *cmd = scp->cmnd; cmnd 3608 drivers/scsi/scsi_debug.c unsigned char *cmd = scp->cmnd; cmnd 3696 drivers/scsi/scsi_debug.c static struct sdebug_queue *get_queue(struct scsi_cmnd *cmnd) cmnd 3698 drivers/scsi/scsi_debug.c u32 tag = blk_mq_unique_tag(cmnd->request); cmnd 3922 drivers/scsi/scsi_debug.c static bool stop_queued_cmnd(struct scsi_cmnd *cmnd) cmnd 3941 drivers/scsi/scsi_debug.c if (cmnd != sqcp->a_cmnd) cmnd 3945 drivers/scsi/scsi_debug.c cmnd->device->hostdata; cmnd 4254 drivers/scsi/scsi_debug.c static int schedule_resp(struct scsi_cmnd *cmnd, struct sdebug_dev_info *devip, cmnd 4272 drivers/scsi/scsi_debug.c sdp = cmnd->device; cmnd 4278 drivers/scsi/scsi_debug.c sqp = get_queue(cmnd); cmnd 4285 drivers/scsi/scsi_debug.c qdepth = cmnd->device->queue_depth; cmnd 4326 drivers/scsi/scsi_debug.c sqcp->a_cmnd = cmnd; cmnd 4327 drivers/scsi/scsi_debug.c cmnd->host_scribble = (unsigned char *)sqcp; cmnd 4338 drivers/scsi/scsi_debug.c cmnd->result = pfp != NULL ? pfp(cmnd, devip) : 0; cmnd 4339 drivers/scsi/scsi_debug.c if (cmnd->result & SDEG_RES_IMMED_MASK) { cmnd 4343 drivers/scsi/scsi_debug.c cmnd->result &= ~SDEG_RES_IMMED_MASK; cmnd 4346 drivers/scsi/scsi_debug.c if (cmnd->result == 0 && scsi_result != 0) cmnd 4347 drivers/scsi/scsi_debug.c cmnd->result = scsi_result; cmnd 4349 drivers/scsi/scsi_debug.c if (unlikely(sdebug_verbose && cmnd->result)) cmnd 4351 drivers/scsi/scsi_debug.c __func__, cmnd->result); cmnd 4389 drivers/scsi/scsi_debug.c cmnd->request->tag); cmnd 4390 drivers/scsi/scsi_debug.c blk_abort_request(cmnd->request); cmnd 4402 drivers/scsi/scsi_debug.c cmnd->result = pfp != NULL ? pfp(cmnd, devip) : 0; cmnd 4403 drivers/scsi/scsi_debug.c cmnd->result &= ~SDEG_RES_IMMED_MASK; cmnd 4404 drivers/scsi/scsi_debug.c if (cmnd->result == 0 && scsi_result != 0) cmnd 4405 drivers/scsi/scsi_debug.c cmnd->result = scsi_result; cmnd 4406 drivers/scsi/scsi_debug.c cmnd->scsi_done(cmnd); cmnd 5597 drivers/scsi/scsi_debug.c u8 *cmd = scp->cmnd; cmnd 39 drivers/scsi/scsi_debugfs.c const u8 *const cdb = READ_ONCE(cmd->cmnd); cmnd 503 drivers/scsi/scsi_error.c if (scmd->cmnd[0] == TEST_UNIT_READY && scmd->scsi_done != scsi_eh_done) cmnd 750 drivers/scsi/scsi_error.c if (scmd->cmnd[0] == TEST_UNIT_READY) cmnd 954 drivers/scsi/scsi_error.c unsigned char *cmnd, int cmnd_size, unsigned sense_bytes) cmnd 966 drivers/scsi/scsi_error.c ses->cmnd = scmd->cmnd; cmnd 977 drivers/scsi/scsi_error.c scmd->cmnd = ses->eh_cmnd; cmnd 978 drivers/scsi/scsi_error.c memset(scmd->cmnd, 0, BLK_MAX_CDB); cmnd 991 drivers/scsi/scsi_error.c scmd->cmnd[0] = REQUEST_SENSE; cmnd 992 drivers/scsi/scsi_error.c scmd->cmnd[4] = scmd->sdb.length; cmnd 993 drivers/scsi/scsi_error.c scmd->cmd_len = COMMAND_SIZE(scmd->cmnd[0]); cmnd 996 drivers/scsi/scsi_error.c if (cmnd) { cmnd 998 drivers/scsi/scsi_error.c memcpy(scmd->cmnd, cmnd, cmnd_size); cmnd 999 drivers/scsi/scsi_error.c scmd->cmd_len = COMMAND_SIZE(scmd->cmnd[0]); cmnd 1006 drivers/scsi/scsi_error.c scmd->cmnd[1] = (scmd->cmnd[1] & 0x1f) | cmnd 1030 drivers/scsi/scsi_error.c scmd->cmnd = ses->cmnd; cmnd 1055 drivers/scsi/scsi_error.c static int scsi_send_eh_cmnd(struct scsi_cmnd *scmd, unsigned char *cmnd, cmnd 1067 drivers/scsi/scsi_error.c scsi_eh_prep_cmnd(scmd, &ses, cmnd, cmnd_size, sense_bytes); cmnd 1865 drivers/scsi/scsi_error.c if ((scmd->cmnd[0] == TEST_UNIT_READY || cmnd 1866 drivers/scsi/scsi_error.c scmd->cmnd[0] == INQUIRY)) { cmnd 1903 drivers/scsi/scsi_error.c if (scmd->cmnd[0] == REPORT_LUNS) cmnd 2356 drivers/scsi/scsi_error.c scmd->cmnd = scsi_req(rq)->cmd; cmnd 320 drivers/scsi/scsi_lib.c cmd->cmd_len = scsi_command_size(cmd->cmnd); cmnd 727 drivers/scsi/scsi_lib.c (cmd->cmnd[0] == READ_10 || cmnd 728 drivers/scsi/scsi_lib.c cmd->cmnd[0] == WRITE_10)) { cmnd 1187 drivers/scsi/scsi_lib.c cmd->cmnd = scsi_req(req)->cmd; cmnd 1208 drivers/scsi/scsi_lib.c cmd->cmnd = scsi_req(req)->cmd = scsi_req(req)->__cmd; cmnd 1209 drivers/scsi/scsi_lib.c memset(cmd->cmnd, 0, BLK_MAX_CDB); cmnd 1530 drivers/scsi/scsi_lib.c cmd->cmnd[1] = (cmd->cmnd[1] & 0x1f) | cmnd 87 drivers/scsi/scsi_logging.c if (!scmd || !scmd->cmnd) cmnd 183 drivers/scsi/scsi_logging.c if (!cmd->cmnd) cmnd 199 drivers/scsi/scsi_logging.c cmd->cmnd); cmnd 221 drivers/scsi/scsi_logging.c hex_dump_to_buffer(&cmd->cmnd[k], linelen, cmnd 233 drivers/scsi/scsi_logging.c hex_dump_to_buffer(cmd->cmnd, cmd->cmd_len, 16, 1, cmnd 3307 drivers/scsi/scsi_transport_fc.c int fc_block_scsi_eh(struct scsi_cmnd *cmnd) cmnd 3309 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); cmnd 842 drivers/scsi/sd.c cmd->cmnd[0] = UNMAP; cmnd 843 drivers/scsi/sd.c cmd->cmnd[8] = 24; cmnd 876 drivers/scsi/sd.c cmd->cmnd[0] = WRITE_SAME_16; cmnd 878 drivers/scsi/sd.c cmd->cmnd[1] = 0x8; /* UNMAP */ cmnd 879 drivers/scsi/sd.c put_unaligned_be64(lba, &cmd->cmnd[2]); cmnd 880 drivers/scsi/sd.c put_unaligned_be32(nr_blocks, &cmd->cmnd[10]); cmnd 907 drivers/scsi/sd.c cmd->cmnd[0] = WRITE_SAME; cmnd 909 drivers/scsi/sd.c cmd->cmnd[1] = 0x8; /* UNMAP */ cmnd 910 drivers/scsi/sd.c put_unaligned_be32(lba, &cmd->cmnd[2]); cmnd 911 drivers/scsi/sd.c put_unaligned_be16(nr_blocks, &cmd->cmnd[7]); cmnd 1034 drivers/scsi/sd.c cmd->cmnd[0] = WRITE_SAME_16; cmnd 1035 drivers/scsi/sd.c put_unaligned_be64(lba, &cmd->cmnd[2]); cmnd 1036 drivers/scsi/sd.c put_unaligned_be32(nr_blocks, &cmd->cmnd[10]); cmnd 1039 drivers/scsi/sd.c cmd->cmnd[0] = WRITE_SAME; cmnd 1040 drivers/scsi/sd.c put_unaligned_be32(lba, &cmd->cmnd[2]); cmnd 1041 drivers/scsi/sd.c put_unaligned_be16(nr_blocks, &cmd->cmnd[7]); cmnd 1071 drivers/scsi/sd.c cmd->cmnd[0] = SYNCHRONIZE_CACHE; cmnd 1084 drivers/scsi/sd.c cmd->cmnd = mempool_alloc(sd_cdb_pool, GFP_ATOMIC); cmnd 1085 drivers/scsi/sd.c if (unlikely(cmd->cmnd == NULL)) cmnd 1089 drivers/scsi/sd.c memset(cmd->cmnd, 0, cmd->cmd_len); cmnd 1091 drivers/scsi/sd.c cmd->cmnd[0] = VARIABLE_LENGTH_CMD; cmnd 1092 drivers/scsi/sd.c cmd->cmnd[7] = 0x18; /* Additional CDB len */ cmnd 1093 drivers/scsi/sd.c cmd->cmnd[9] = write ? WRITE_32 : READ_32; cmnd 1094 drivers/scsi/sd.c cmd->cmnd[10] = flags; cmnd 1095 drivers/scsi/sd.c put_unaligned_be64(lba, &cmd->cmnd[12]); cmnd 1096 drivers/scsi/sd.c put_unaligned_be32(lba, &cmd->cmnd[20]); /* Expected Indirect LBA */ cmnd 1097 drivers/scsi/sd.c put_unaligned_be32(nr_blocks, &cmd->cmnd[28]); cmnd 1107 drivers/scsi/sd.c cmd->cmnd[0] = write ? WRITE_16 : READ_16; cmnd 1108 drivers/scsi/sd.c cmd->cmnd[1] = flags; cmnd 1109 drivers/scsi/sd.c cmd->cmnd[14] = 0; cmnd 1110 drivers/scsi/sd.c cmd->cmnd[15] = 0; cmnd 1111 drivers/scsi/sd.c put_unaligned_be64(lba, &cmd->cmnd[2]); cmnd 1112 drivers/scsi/sd.c put_unaligned_be32(nr_blocks, &cmd->cmnd[10]); cmnd 1122 drivers/scsi/sd.c cmd->cmnd[0] = write ? WRITE_10 : READ_10; cmnd 1123 drivers/scsi/sd.c cmd->cmnd[1] = flags; cmnd 1124 drivers/scsi/sd.c cmd->cmnd[6] = 0; cmnd 1125 drivers/scsi/sd.c cmd->cmnd[9] = 0; cmnd 1126 drivers/scsi/sd.c put_unaligned_be32(lba, &cmd->cmnd[2]); cmnd 1127 drivers/scsi/sd.c put_unaligned_be16(nr_blocks, &cmd->cmnd[7]); cmnd 1151 drivers/scsi/sd.c cmd->cmnd[0] = write ? WRITE_6 : READ_6; cmnd 1152 drivers/scsi/sd.c cmd->cmnd[1] = (lba >> 16) & 0x1f; cmnd 1153 drivers/scsi/sd.c cmd->cmnd[2] = (lba >> 8) & 0xff; cmnd 1154 drivers/scsi/sd.c cmd->cmnd[3] = lba & 0xff; cmnd 1155 drivers/scsi/sd.c cmd->cmnd[4] = nr_blocks; cmnd 1156 drivers/scsi/sd.c cmd->cmnd[5] = 0; cmnd 1306 drivers/scsi/sd.c u8 *cmnd; cmnd 1311 drivers/scsi/sd.c if (SCpnt->cmnd != scsi_req(rq)->cmd) { cmnd 1312 drivers/scsi/sd.c cmnd = SCpnt->cmnd; cmnd 1313 drivers/scsi/sd.c SCpnt->cmnd = NULL; cmnd 1315 drivers/scsi/sd.c mempool_free(cmnd, sd_cdb_pool); cmnd 2038 drivers/scsi/sd.c switch (SCpnt->cmnd[0]) { cmnd 2044 drivers/scsi/sd.c if (SCpnt->cmnd[1] & 8) { /* UNMAP */ cmnd 141 drivers/scsi/sd.h switch (scmd->cmnd[0]) { cmnd 159 drivers/scsi/sd.h switch (scmd->cmnd[9]) { cmnd 235 drivers/scsi/sd_zbc.c memset(cmd->cmnd, 0, cmd->cmd_len); cmnd 236 drivers/scsi/sd_zbc.c cmd->cmnd[0] = ZBC_OUT; cmnd 237 drivers/scsi/sd_zbc.c cmd->cmnd[1] = ZO_RESET_WRITE_POINTER; cmnd 239 drivers/scsi/sd_zbc.c cmd->cmnd[14] = 0x1; cmnd 241 drivers/scsi/sd_zbc.c put_unaligned_be64(block, &cmd->cmnd[2]); cmnd 185 drivers/scsi/sg.c unsigned char *cmnd, int timeout, int blocking); cmnd 613 drivers/scsi/sg.c unsigned char cmnd[SG_MAX_CDB_SIZE]; cmnd 692 drivers/scsi/sg.c if (__copy_from_user(cmnd, buf, cmd_size)) { cmnd 708 drivers/scsi/sg.c input_size, (unsigned int) cmnd[0], cmnd 711 drivers/scsi/sg.c k = sg_common_write(sfp, srp, cmnd, sfp->timeout, blocking); cmnd 723 drivers/scsi/sg.c unsigned char cmnd[SG_MAX_CDB_SIZE]; cmnd 764 drivers/scsi/sg.c if ((!hp->cmdp) || (hp->cmd_len < 6) || (hp->cmd_len > sizeof (cmnd))) { cmnd 772 drivers/scsi/sg.c if (__copy_from_user(cmnd, hp->cmdp, hp->cmd_len)) { cmnd 776 drivers/scsi/sg.c if (read_only && sg_allow_access(file, cmnd)) { cmnd 780 drivers/scsi/sg.c k = sg_common_write(sfp, srp, cmnd, timeout, blocking); cmnd 790 drivers/scsi/sg.c unsigned char *cmnd, int timeout, int blocking) cmnd 796 drivers/scsi/sg.c srp->data.cmd_opcode = cmnd[0]; /* hold opcode of command */ cmnd 806 drivers/scsi/sg.c (int) cmnd[0], (int) hp->cmd_len)); cmnd 813 drivers/scsi/sg.c k = sg_start_req(srp, cmnd); cmnd 2312 drivers/scsi/smartpqi/smartpqi_init.c switch (scmd->cmnd[0]) { cmnd 2317 drivers/scsi/smartpqi/smartpqi_init.c first_block = (u64)(((scmd->cmnd[1] & 0x1f) << 16) | cmnd 2318 drivers/scsi/smartpqi/smartpqi_init.c (scmd->cmnd[2] << 8) | scmd->cmnd[3]); cmnd 2319 drivers/scsi/smartpqi/smartpqi_init.c block_cnt = (u32)scmd->cmnd[4]; cmnd 2327 drivers/scsi/smartpqi/smartpqi_init.c first_block = (u64)get_unaligned_be32(&scmd->cmnd[2]); cmnd 2328 drivers/scsi/smartpqi/smartpqi_init.c block_cnt = (u32)get_unaligned_be16(&scmd->cmnd[7]); cmnd 2334 drivers/scsi/smartpqi/smartpqi_init.c first_block = (u64)get_unaligned_be32(&scmd->cmnd[2]); cmnd 2335 drivers/scsi/smartpqi/smartpqi_init.c block_cnt = get_unaligned_be32(&scmd->cmnd[6]); cmnd 2341 drivers/scsi/smartpqi/smartpqi_init.c first_block = get_unaligned_be64(&scmd->cmnd[2]); cmnd 2342 drivers/scsi/smartpqi/smartpqi_init.c block_cnt = get_unaligned_be32(&scmd->cmnd[10]); cmnd 4952 drivers/scsi/smartpqi/smartpqi_init.c memcpy(request->cdb, scmd->cmnd, cdb_length); cmnd 5209 drivers/scsi/smartpqi/smartpqi_init.c scmd->cmnd, scmd->cmd_len, queue_group, NULL, false); cmnd 215 drivers/scsi/snic/snic_scsi.c sc->cmnd, cmnd 257 drivers/scsi/snic/snic_scsi.c sc->cmnd[0], sg_cnt, CMD_STATE(sc)); cmnd 359 drivers/scsi/snic/snic_scsi.c sc, snic_cmd_tag(sc), sc->cmnd[0], sc->device->lun); cmnd 598 drivers/scsi/snic/snic_scsi.c sc->device->lun, sc, sc->cmnd[0], snic_cmd_tag(sc), cmnd 659 drivers/scsi/snic/snic_scsi.c sc, sc->cmnd[0], cmnd_id, cmnd 1643 drivers/scsi/snic/snic_scsi.c sc, sc->cmnd[0], sc->request, tag); cmnd 2159 drivers/scsi/snic/snic_scsi.c sc, sc->cmnd[0], sc->request, cmnd 2394 drivers/scsi/snic/snic_scsi.c sc, sc->cmnd[0], sc->request, cmnd 113 drivers/scsi/snic/snic_trc.h ((u64)sc->cmnd[0] << 56 | (u64)sc->cmnd[7] << 40 | \ cmnd 114 drivers/scsi/snic/snic_trc.h (u64)sc->cmnd[8] << 32 | (u64)sc->cmnd[2] << 24 | \ cmnd 115 drivers/scsi/snic/snic_trc.h (u64)sc->cmnd[3] << 16 | (u64)sc->cmnd[4] << 8 | \ cmnd 116 drivers/scsi/snic/snic_trc.h (u64)sc->cmnd[5]) cmnd 445 drivers/scsi/sr.c SCpnt->cmnd[0] = WRITE_10; cmnd 449 drivers/scsi/sr.c SCpnt->cmnd[0] = READ_10; cmnd 490 drivers/scsi/sr.c SCpnt->cmnd[1] = 0; cmnd 498 drivers/scsi/sr.c SCpnt->cmnd[2] = (unsigned char) (block >> 24) & 0xff; cmnd 499 drivers/scsi/sr.c SCpnt->cmnd[3] = (unsigned char) (block >> 16) & 0xff; cmnd 500 drivers/scsi/sr.c SCpnt->cmnd[4] = (unsigned char) (block >> 8) & 0xff; cmnd 501 drivers/scsi/sr.c SCpnt->cmnd[5] = (unsigned char) block & 0xff; cmnd 502 drivers/scsi/sr.c SCpnt->cmnd[6] = SCpnt->cmnd[9] = 0; cmnd 503 drivers/scsi/sr.c SCpnt->cmnd[7] = (unsigned char) (this_count >> 8) & 0xff; cmnd 504 drivers/scsi/sr.c SCpnt->cmnd[8] = (unsigned char) this_count & 0xff; cmnd 617 drivers/scsi/stex.c switch (cmd->cmnd[0]) { cmnd 624 drivers/scsi/stex.c page = cmd->cmnd[2] & 0x3f; cmnd 661 drivers/scsi/stex.c (cmd->cmnd[1] & INQUIRY_EVPD) == 0) { cmnd 670 drivers/scsi/stex.c if (cmd->cmnd[1] == PASSTHRU_GET_DRVVER) { cmnd 705 drivers/scsi/stex.c memcpy(req->cdb, cmd->cmnd, STEX_CDB_LENGTH); cmnd 789 drivers/scsi/stex.c if (ccb->cmd->cmnd[0] == MGT_CMD && cmnd 867 drivers/scsi/stex.c if (unlikely(ccb->cmd->cmnd[0] == PASSTHRU_CMD && cmnd 868 drivers/scsi/stex.c ccb->cmd->cmnd[1] == PASSTHRU_GET_ADAPTER)) cmnd 947 drivers/scsi/storvsc_drv.c switch (scmnd->cmnd[0]) { cmnd 1539 drivers/scsi/storvsc_drv.c u8 scsi_op = scmnd->cmnd[0]; cmnd 1636 drivers/scsi/storvsc_drv.c memcpy(vm_srb->cdb, scmnd->cmnd, vm_srb->cdb_length); cmnd 321 drivers/scsi/sym53c8xx_2/sym_glue.c memcpy(cp->cdb_buf, cmd->cmnd, cmd->cmd_len); cmnd 5220 drivers/scsi/sym53c8xx_2/sym_hipd.c cmd->cmnd[0] == INQUIRY || cmd->cmnd[0] == REQUEST_SENSE) && cmnd 347 drivers/scsi/ufs/ufshcd.c opcode = (u8)(*lrbp->cmd->cmnd); cmnd 2262 drivers/scsi/ufs/ufshcd.c memcpy(ucd_req_ptr->sc.cdb, lrbp->cmd->cmnd, cdb_len); cmnd 558 drivers/scsi/virtio_scsi.c "cmd %p CDB: %#02x\n", sc, sc->cmnd[0]); cmnd 567 drivers/scsi/virtio_scsi.c memcpy(cmd->req.cmd_pi.cdb, sc->cmnd, sc->cmd_len); cmnd 573 drivers/scsi/virtio_scsi.c memcpy(cmd->req.cmd.cdb, sc->cmnd, sc->cmd_len); cmnd 633 drivers/scsi/vmw_pvscsi.c cmd, cmd->cmnd[0], ctx, cmd->result, btstat, sdstat); cmnd 728 drivers/scsi/vmw_pvscsi.c memcpy(e->cdb, cmd->cmnd, e->cdbLen); cmnd 779 drivers/scsi/vmw_pvscsi.c op = cmd->cmnd[0]; cmnd 214 drivers/scsi/wd33c93.c write_wd33c93_cdb(const wd33c93_regs regs, uint len, uchar cmnd[]) cmnd 220 drivers/scsi/wd33c93.c outb(cmnd[i], regs.SCMD); cmnd 282 drivers/scsi/wd33c93.c write_wd33c93_cdb(const wd33c93_regs regs, uint len, uchar cmnd[]) cmnd 288 drivers/scsi/wd33c93.c *regs.SCMD = cmnd[i]; cmnd 375 drivers/scsi/wd33c93.c printk("Q-%d-%02x( ", cmd->device->id, cmd->cmnd[0])) cmnd 440 drivers/scsi/wd33c93.c if (!(hostdata->input_Q) || (cmd->cmnd[0] == REQUEST_SENSE)) { cmnd 640 drivers/scsi/wd33c93.c write_wd33c93_cdb(regs, cmd->cmd_len, cmd->cmnd); cmnd 958 drivers/scsi/wd33c93.c DB(DB_INTR, printk("CMND-%02x", cmd->cmnd[0])) cmnd 959 drivers/scsi/wd33c93.c transfer_pio(regs, cmd->cmnd, cmd->cmd_len, DATA_OUT_DIR, cmnd 1178 drivers/scsi/wd33c93.c if (cmd->cmnd[0] == REQUEST_SENSE cmnd 1265 drivers/scsi/wd33c93.c if (cmd->cmnd[0] == REQUEST_SENSE && cmd->SCp.Status != GOOD) cmnd 1298 drivers/scsi/wd33c93.c if (cmd->cmnd[0] == REQUEST_SENSE cmnd 2168 drivers/scsi/wd33c93.c cmd->device->id, cmd->device->lun, cmd->cmnd[0]); cmnd 2176 drivers/scsi/wd33c93.c cmd->device->id, cmd->device->lun, cmd->cmnd[0]); cmnd 2185 drivers/scsi/wd33c93.c cmd->device->id, cmd->device->lun, cmd->cmnd[0]); cmnd 221 drivers/scsi/wd719x.c memcpy(scb->CDB, cmd->cmnd, cmd->cmd_len); cmnd 212 drivers/scsi/xen-scsifront.c memcpy(ring_req->cmnd, sc->cmnd, sc->cmd_len); cmnd 29 drivers/staging/rts5208/rtsx_scsi.c switch (srb->cmnd[0]) { cmnd 303 drivers/staging/rts5208/rtsx_scsi.c if (srb->cmnd[0] != TEST_UNIT_READY) cmnd 309 drivers/staging/rts5208/rtsx_scsi.c dev_dbg(rtsx_dev(chip), "%*ph\n", len, srb->cmnd); cmnd 554 drivers/staging/rts5208/rtsx_scsi.c if (srb->cmnd[1] == 1) cmnd 557 drivers/staging/rts5208/rtsx_scsi.c switch (srb->cmnd[0x4]) { cmnd 585 drivers/staging/rts5208/rtsx_scsi.c prevent = srb->cmnd[4] & 0x1; cmnd 776 drivers/staging/rts5208/rtsx_scsi.c page_code = srb->cmnd[2] & 0x3f; cmnd 781 drivers/staging/rts5208/rtsx_scsi.c if (srb->cmnd[0] == MODE_SENSE) { cmnd 783 drivers/staging/rts5208/rtsx_scsi.c ms_mode_sense(chip, srb->cmnd[0], cmnd 798 drivers/staging/rts5208/rtsx_scsi.c ms_mode_sense(chip, srb->cmnd[0], cmnd 882 drivers/staging/rts5208/rtsx_scsi.c if ((srb->cmnd[0] == READ_10) || (srb->cmnd[0] == WRITE_10)) { cmnd 883 drivers/staging/rts5208/rtsx_scsi.c start_sec = ((u32)srb->cmnd[2] << 24) | cmnd 884 drivers/staging/rts5208/rtsx_scsi.c ((u32)srb->cmnd[3] << 16) | cmnd 885 drivers/staging/rts5208/rtsx_scsi.c ((u32)srb->cmnd[4] << 8) | ((u32)srb->cmnd[5]); cmnd 886 drivers/staging/rts5208/rtsx_scsi.c sec_cnt = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; cmnd 887 drivers/staging/rts5208/rtsx_scsi.c } else if ((srb->cmnd[0] == READ_6) || (srb->cmnd[0] == WRITE_6)) { cmnd 888 drivers/staging/rts5208/rtsx_scsi.c start_sec = ((u32)(srb->cmnd[1] & 0x1F) << 16) | cmnd 889 drivers/staging/rts5208/rtsx_scsi.c ((u32)srb->cmnd[2] << 8) | ((u32)srb->cmnd[3]); cmnd 890 drivers/staging/rts5208/rtsx_scsi.c sec_cnt = srb->cmnd[4]; cmnd 893 drivers/staging/rts5208/rtsx_scsi.c } else if ((srb->cmnd[0] == VENDOR_CMND) && cmnd 894 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[1] == SCSI_APP_CMD) && cmnd 895 drivers/staging/rts5208/rtsx_scsi.c ((srb->cmnd[2] == PP_READ10) || (srb->cmnd[2] == PP_WRITE10))) { cmnd 896 drivers/staging/rts5208/rtsx_scsi.c start_sec = ((u32)srb->cmnd[4] << 24) | cmnd 897 drivers/staging/rts5208/rtsx_scsi.c ((u32)srb->cmnd[5] << 16) | cmnd 898 drivers/staging/rts5208/rtsx_scsi.c ((u32)srb->cmnd[6] << 8) | ((u32)srb->cmnd[7]); cmnd 899 drivers/staging/rts5208/rtsx_scsi.c sec_cnt = ((u16)(srb->cmnd[9]) << 8) | srb->cmnd[10]; cmnd 1100 drivers/staging/rts5208/rtsx_scsi.c len = ((u16)srb->cmnd[4] << 8) | srb->cmnd[5]; cmnd 1147 drivers/staging/rts5208/rtsx_scsi.c len = ((u16)srb->cmnd[4] << 8) | srb->cmnd[5]; cmnd 1202 drivers/staging/rts5208/rtsx_scsi.c addr = ((u16)srb->cmnd[2] << 8) | srb->cmnd[3]; cmnd 1203 drivers/staging/rts5208/rtsx_scsi.c len = ((u16)srb->cmnd[4] << 8) | srb->cmnd[5]; cmnd 1255 drivers/staging/rts5208/rtsx_scsi.c addr = ((u16)srb->cmnd[2] << 8) | srb->cmnd[3]; cmnd 1256 drivers/staging/rts5208/rtsx_scsi.c len = ((u16)srb->cmnd[4] << 8) | srb->cmnd[5]; cmnd 1317 drivers/staging/rts5208/rtsx_scsi.c u8 gpio = srb->cmnd[2]; cmnd 1348 drivers/staging/rts5208/rtsx_scsi.c addr = srb->cmnd[4]; cmnd 1379 drivers/staging/rts5208/rtsx_scsi.c addr = srb->cmnd[4]; cmnd 1397 drivers/staging/rts5208/rtsx_scsi.c if (srb->cmnd[3] == 1) { cmnd 1403 drivers/staging/rts5208/rtsx_scsi.c switch (srb->cmnd[4]) { cmnd 1405 drivers/staging/rts5208/rtsx_scsi.c xd_card->xd_clock = srb->cmnd[5]; cmnd 1409 drivers/staging/rts5208/rtsx_scsi.c sd_card->sd_clock = srb->cmnd[5]; cmnd 1413 drivers/staging/rts5208/rtsx_scsi.c ms_card->ms_clock = srb->cmnd[5]; cmnd 1421 drivers/staging/rts5208/rtsx_scsi.c } else if (srb->cmnd[3] == 2) { cmnd 1422 drivers/staging/rts5208/rtsx_scsi.c if (srb->cmnd[4]) { cmnd 1459 drivers/staging/rts5208/rtsx_scsi.c if (srb->cmnd[3] == 1) { cmnd 1465 drivers/staging/rts5208/rtsx_scsi.c switch (srb->cmnd[4]) { cmnd 1485 drivers/staging/rts5208/rtsx_scsi.c } else if (srb->cmnd[3] == 2) { cmnd 1511 drivers/staging/rts5208/rtsx_scsi.c len = ((u16)(srb->cmnd[4]) << 8) | srb->cmnd[5]; cmnd 1680 drivers/staging/rts5208/rtsx_scsi.c phy_debug_mode = (int)(srb->cmnd[3]); cmnd 1734 drivers/staging/rts5208/rtsx_scsi.c switch (srb->cmnd[3]) { cmnd 1740 drivers/staging/rts5208/rtsx_scsi.c cmd_type = srb->cmnd[4]; cmnd 1746 drivers/staging/rts5208/rtsx_scsi.c addr = (srb->cmnd[5] << 8) | srb->cmnd[6]; cmnd 1747 drivers/staging/rts5208/rtsx_scsi.c mask = srb->cmnd[7]; cmnd 1748 drivers/staging/rts5208/rtsx_scsi.c value = srb->cmnd[8]; cmnd 1757 drivers/staging/rts5208/rtsx_scsi.c idx = srb->cmnd[4]; cmnd 1783 drivers/staging/rts5208/rtsx_scsi.c switch (srb->cmnd[3]) { cmnd 1809 drivers/staging/rts5208/rtsx_scsi.c addr = ((u16)srb->cmnd[4] << 8) | srb->cmnd[5]; cmnd 1810 drivers/staging/rts5208/rtsx_scsi.c len = ((u16)srb->cmnd[6] << 8) | srb->cmnd[7]; cmnd 1868 drivers/staging/rts5208/rtsx_scsi.c addr = ((u16)srb->cmnd[4] << 8) | srb->cmnd[5]; cmnd 1869 drivers/staging/rts5208/rtsx_scsi.c len = ((u16)srb->cmnd[6] << 8) | srb->cmnd[7]; cmnd 1930 drivers/staging/rts5208/rtsx_scsi.c mode = srb->cmnd[3]; cmnd 1931 drivers/staging/rts5208/rtsx_scsi.c addr = ((u16)srb->cmnd[4] << 8) | srb->cmnd[5]; cmnd 1970 drivers/staging/rts5208/rtsx_scsi.c addr = ((u16)srb->cmnd[4] << 8) | srb->cmnd[5]; cmnd 1971 drivers/staging/rts5208/rtsx_scsi.c len = ((u16)srb->cmnd[6] << 8) | srb->cmnd[7]; cmnd 2018 drivers/staging/rts5208/rtsx_scsi.c addr = ((u16)srb->cmnd[4] << 8) | srb->cmnd[5]; cmnd 2019 drivers/staging/rts5208/rtsx_scsi.c len = ((u16)srb->cmnd[6] << 8) | srb->cmnd[7]; cmnd 2065 drivers/staging/rts5208/rtsx_scsi.c addr = srb->cmnd[4]; cmnd 2066 drivers/staging/rts5208/rtsx_scsi.c len = srb->cmnd[5]; cmnd 2114 drivers/staging/rts5208/rtsx_scsi.c addr = srb->cmnd[4]; cmnd 2115 drivers/staging/rts5208/rtsx_scsi.c len = srb->cmnd[5]; cmnd 2226 drivers/staging/rts5208/rtsx_scsi.c func = srb->cmnd[3]; cmnd 2227 drivers/staging/rts5208/rtsx_scsi.c addr = ((u16)(srb->cmnd[4]) << 8) | srb->cmnd[5]; cmnd 2228 drivers/staging/rts5208/rtsx_scsi.c len = ((u16)(srb->cmnd[6]) << 8) | srb->cmnd[7]; cmnd 2281 drivers/staging/rts5208/rtsx_scsi.c func = srb->cmnd[3]; cmnd 2282 drivers/staging/rts5208/rtsx_scsi.c addr = ((u16)(srb->cmnd[4]) << 8) | srb->cmnd[5]; cmnd 2283 drivers/staging/rts5208/rtsx_scsi.c len = ((u16)(srb->cmnd[6]) << 8) | srb->cmnd[7]; cmnd 2323 drivers/staging/rts5208/rtsx_scsi.c switch (srb->cmnd[2]) { cmnd 2584 drivers/staging/rts5208/rtsx_scsi.c switch (srb->cmnd[2]) { cmnd 2632 drivers/staging/rts5208/rtsx_scsi.c switch (srb->cmnd[1]) { cmnd 2688 drivers/staging/rts5208/rtsx_scsi.c if ((srb->cmnd[0] == READ_10) || (srb->cmnd[0] == WRITE_10)) { cmnd 2689 drivers/staging/rts5208/rtsx_scsi.c sec_cnt = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; cmnd 2690 drivers/staging/rts5208/rtsx_scsi.c } else if ((srb->cmnd[0] == READ_6) || (srb->cmnd[0] == WRITE_6)) { cmnd 2691 drivers/staging/rts5208/rtsx_scsi.c sec_cnt = srb->cmnd[4]; cmnd 2719 drivers/staging/rts5208/rtsx_scsi.c if ((srb->cmnd[3] != 0x4D) || (srb->cmnd[4] != 0x47) || cmnd 2720 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[5] != 0x66) || (srb->cmnd[6] != 0x6D) || cmnd 2721 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[7] != 0x74)) { cmnd 2740 drivers/staging/rts5208/rtsx_scsi.c if (srb->cmnd[8] & 0x01) cmnd 2789 drivers/staging/rts5208/rtsx_scsi.c if ((srb->cmnd[2] != 0xB0) || (srb->cmnd[4] != 0x4D) || cmnd 2790 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[5] != 0x53) || (srb->cmnd[6] != 0x49) || cmnd 2791 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[7] != 0x44)) { cmnd 2796 drivers/staging/rts5208/rtsx_scsi.c dev_info_id = srb->cmnd[3]; cmnd 2873 drivers/staging/rts5208/rtsx_scsi.c if (srb->cmnd[2] == MS_FORMAT) cmnd 2876 drivers/staging/rts5208/rtsx_scsi.c else if (srb->cmnd[2] == GET_MS_INFORMATION) cmnd 2908 drivers/staging/rts5208/rtsx_scsi.c switch (srb->cmnd[0]) { cmnd 2969 drivers/staging/rts5208/rtsx_scsi.c if (srb->cmnd[7] != KC_MG_R_PRO) { cmnd 2979 drivers/staging/rts5208/rtsx_scsi.c key_format = srb->cmnd[10] & 0x3F; cmnd 2985 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[8] == 0x04) && cmnd 2986 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[9] == 0x1C)) { cmnd 3000 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[8] == 0x00) && cmnd 3001 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[9] == 0x24)) { cmnd 3014 drivers/staging/rts5208/rtsx_scsi.c ms_card->mg_entry_num = srb->cmnd[5]; cmnd 3016 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[8] == 0x04) && cmnd 3017 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[9] == 0x04) && cmnd 3018 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[2] == 0x00) && cmnd 3019 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[3] == 0x00) && cmnd 3020 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[4] == 0x00) && cmnd 3021 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[5] < 32)) { cmnd 3072 drivers/staging/rts5208/rtsx_scsi.c if (srb->cmnd[7] != KC_MG_R_PRO) { cmnd 3082 drivers/staging/rts5208/rtsx_scsi.c key_format = srb->cmnd[10] & 0x3F; cmnd 3088 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[8] == 0x00) && cmnd 3089 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[9] == 0x0C)) { cmnd 3103 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[8] == 0x00) && cmnd 3104 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[9] == 0x0C)) { cmnd 3118 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[8] == 0x00) && cmnd 3119 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[9] == 0x0C)) { cmnd 3132 drivers/staging/rts5208/rtsx_scsi.c ms_card->mg_entry_num = srb->cmnd[5]; cmnd 3134 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[8] == 0x04) && cmnd 3135 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[9] == 0x04) && cmnd 3136 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[2] == 0x00) && cmnd 3137 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[3] == 0x00) && cmnd 3138 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[4] == 0x00) && cmnd 3139 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[5] < 32)) { cmnd 3175 drivers/staging/rts5208/rtsx_scsi.c if (!((srb->cmnd[0] == VENDOR_CMND) && cmnd 3176 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[1] == SCSI_APP_CMD) && cmnd 3177 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[2] == GET_DEV_STATUS)) && cmnd 3178 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[0] != REQUEST_SENSE)) { cmnd 3189 drivers/staging/rts5208/rtsx_scsi.c if ((srb->cmnd[0] != REQUEST_SENSE) && cmnd 3190 drivers/staging/rts5208/rtsx_scsi.c (srb->cmnd[0] != INQUIRY)) { cmnd 3198 drivers/staging/rts5208/rtsx_scsi.c switch (srb->cmnd[0]) { cmnd 3775 drivers/staging/rts5208/sd.c if ((srb->cmnd[2] != 0x53) || (srb->cmnd[3] != 0x44) || cmnd 3776 drivers/staging/rts5208/sd.c (srb->cmnd[4] != 0x20) || (srb->cmnd[5] != 0x43) || cmnd 3777 drivers/staging/rts5208/sd.c (srb->cmnd[6] != 0x61) || (srb->cmnd[7] != 0x72) || cmnd 3778 drivers/staging/rts5208/sd.c (srb->cmnd[8] != 0x64)) { cmnd 3783 drivers/staging/rts5208/sd.c switch (srb->cmnd[1] & 0x0F) { cmnd 3818 drivers/staging/rts5208/sd.c switch (srb->cmnd[10]) { cmnd 3875 drivers/staging/rts5208/sd.c cmd_idx = srb->cmnd[2] & 0x3F; cmnd 3876 drivers/staging/rts5208/sd.c if (srb->cmnd[1] & 0x02) cmnd 3879 drivers/staging/rts5208/sd.c if (srb->cmnd[1] & 0x01) cmnd 3882 drivers/staging/rts5208/sd.c arg = ((u32)srb->cmnd[3] << 24) | ((u32)srb->cmnd[4] << 16) | cmnd 3883 drivers/staging/rts5208/sd.c ((u32)srb->cmnd[5] << 8) | srb->cmnd[6]; cmnd 3988 drivers/staging/rts5208/sd.c cmd_idx = srb->cmnd[2] & 0x3F; cmnd 3989 drivers/staging/rts5208/sd.c if (srb->cmnd[1] & 0x04) cmnd 3992 drivers/staging/rts5208/sd.c if (srb->cmnd[1] & 0x02) cmnd 3995 drivers/staging/rts5208/sd.c if (srb->cmnd[1] & 0x01) cmnd 3998 drivers/staging/rts5208/sd.c data_len = ((u32)srb->cmnd[7] << 16) | ((u32)srb->cmnd[8] cmnd 3999 drivers/staging/rts5208/sd.c << 8) | srb->cmnd[9]; cmnd 4057 drivers/staging/rts5208/sd.c byte_cnt = ((u16)(srb->cmnd[8] & 0x03) << 8) | srb->cmnd[9]; cmnd 4061 drivers/staging/rts5208/sd.c cmd[1] = srb->cmnd[3]; cmnd 4062 drivers/staging/rts5208/sd.c cmd[2] = srb->cmnd[4]; cmnd 4063 drivers/staging/rts5208/sd.c cmd[3] = srb->cmnd[5]; cmnd 4064 drivers/staging/rts5208/sd.c cmd[4] = srb->cmnd[6]; cmnd 4093 drivers/staging/rts5208/sd.c 0xFF, (srb->cmnd[7] & 0xFE) >> 1); cmnd 4100 drivers/staging/rts5208/sd.c srb->cmnd[3]); cmnd 4102 drivers/staging/rts5208/sd.c srb->cmnd[4]); cmnd 4104 drivers/staging/rts5208/sd.c srb->cmnd[5]); cmnd 4106 drivers/staging/rts5208/sd.c srb->cmnd[6]); cmnd 4166 drivers/staging/rts5208/sd.c if ((srb->cmnd[1] & 0x02) || (srb->cmnd[1] & 0x04)) cmnd 4227 drivers/staging/rts5208/sd.c cmd_idx = srb->cmnd[2] & 0x3F; cmnd 4228 drivers/staging/rts5208/sd.c if (srb->cmnd[1] & 0x04) cmnd 4231 drivers/staging/rts5208/sd.c if (srb->cmnd[1] & 0x02) cmnd 4234 drivers/staging/rts5208/sd.c if (srb->cmnd[1] & 0x01) cmnd 4237 drivers/staging/rts5208/sd.c data_len = ((u32)srb->cmnd[7] << 16) | ((u32)srb->cmnd[8] cmnd 4238 drivers/staging/rts5208/sd.c << 8) | srb->cmnd[9]; cmnd 4239 drivers/staging/rts5208/sd.c arg = ((u32)srb->cmnd[3] << 24) | ((u32)srb->cmnd[4] << 16) | cmnd 4240 drivers/staging/rts5208/sd.c ((u32)srb->cmnd[5] << 8) | srb->cmnd[6]; cmnd 4364 drivers/staging/rts5208/sd.c srb->cmnd[8] & 0x03); cmnd 4366 drivers/staging/rts5208/sd.c srb->cmnd[9]); cmnd 4390 drivers/staging/rts5208/sd.c 0xFF, (srb->cmnd[7] & 0xFE) >> 1); cmnd 4472 drivers/staging/rts5208/sd.c if ((srb->cmnd[1] & 0x02) || (srb->cmnd[1] & 0x04)) cmnd 4561 drivers/staging/rts5208/sd.c data_len = ((u16)srb->cmnd[7] << 8) | srb->cmnd[8]; cmnd 4599 drivers/staging/rts5208/sd.c if ((srb->cmnd[2] != 0x53) || (srb->cmnd[3] != 0x44) || cmnd 4600 drivers/staging/rts5208/sd.c (srb->cmnd[4] != 0x20) || (srb->cmnd[5] != 0x43) || cmnd 4601 drivers/staging/rts5208/sd.c (srb->cmnd[6] != 0x61) || (srb->cmnd[7] != 0x72) || cmnd 4602 drivers/staging/rts5208/sd.c (srb->cmnd[8] != 0x64)) { cmnd 4607 drivers/staging/rts5208/sd.c switch (srb->cmnd[1] & 0x0F) { cmnd 4610 drivers/staging/rts5208/sd.c if (srb->cmnd[9] == 0x64) cmnd 456 drivers/staging/rts5208/spi.c spi->spi_clock = ((u16)(srb->cmnd[8]) << 8) | srb->cmnd[9]; cmnd 458 drivers/staging/rts5208/spi.c spi->spi_clock = srb->cmnd[3]; cmnd 460 drivers/staging/rts5208/spi.c spi->clk_div = ((u16)(srb->cmnd[4]) << 8) | srb->cmnd[5]; cmnd 461 drivers/staging/rts5208/spi.c spi->write_en = srb->cmnd[6]; cmnd 479 drivers/staging/rts5208/spi.c len = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; cmnd 496 drivers/staging/rts5208/spi.c rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_COMMAND, 0xFF, srb->cmnd[3]); cmnd 497 drivers/staging/rts5208/spi.c rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_ADDR2, 0xFF, srb->cmnd[4]); cmnd 498 drivers/staging/rts5208/spi.c rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_ADDR1, 0xFF, srb->cmnd[5]); cmnd 499 drivers/staging/rts5208/spi.c rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_ADDR0, 0xFF, srb->cmnd[6]); cmnd 502 drivers/staging/rts5208/spi.c rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_LENGTH1, 0xFF, srb->cmnd[7]); cmnd 503 drivers/staging/rts5208/spi.c rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_LENGTH0, 0xFF, srb->cmnd[8]); cmnd 506 drivers/staging/rts5208/spi.c if (srb->cmnd[9]) { cmnd 514 drivers/staging/rts5208/spi.c if (srb->cmnd[9]) { cmnd 565 drivers/staging/rts5208/spi.c ins = srb->cmnd[3]; cmnd 566 drivers/staging/rts5208/spi.c addr = ((u32)(srb->cmnd[4]) << 16) | ((u32)(srb->cmnd[5]) cmnd 567 drivers/staging/rts5208/spi.c << 8) | srb->cmnd[6]; cmnd 568 drivers/staging/rts5208/spi.c len = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; cmnd 569 drivers/staging/rts5208/spi.c slow_read = srb->cmnd[9]; cmnd 658 drivers/staging/rts5208/spi.c ins = srb->cmnd[3]; cmnd 659 drivers/staging/rts5208/spi.c addr = ((u32)(srb->cmnd[4]) << 16) | ((u32)(srb->cmnd[5]) cmnd 660 drivers/staging/rts5208/spi.c << 8) | srb->cmnd[6]; cmnd 661 drivers/staging/rts5208/spi.c len = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; cmnd 662 drivers/staging/rts5208/spi.c program_mode = srb->cmnd[9]; cmnd 830 drivers/staging/rts5208/spi.c ins = srb->cmnd[3]; cmnd 831 drivers/staging/rts5208/spi.c addr = ((u32)(srb->cmnd[4]) << 16) | ((u32)(srb->cmnd[5]) cmnd 832 drivers/staging/rts5208/spi.c << 8) | srb->cmnd[6]; cmnd 833 drivers/staging/rts5208/spi.c erase_mode = srb->cmnd[9]; cmnd 870 drivers/staging/rts5208/spi.c ins = srb->cmnd[3]; cmnd 871 drivers/staging/rts5208/spi.c status = srb->cmnd[4]; cmnd 872 drivers/staging/rts5208/spi.c ewsr = srb->cmnd[5]; cmnd 213 drivers/staging/unisys/include/iochannel.h u8 cmnd[MAX_CMND_SIZE]; cmnd 510 drivers/staging/unisys/visorhba/visorhba_main.c unsigned char *cdb = scsicmd->cmnd; cmnd 542 drivers/staging/unisys/visorhba/visorhba_main.c memcpy(cmdrsp->scsi.cmnd, cdb, MAX_CMND_SIZE); cmnd 800 drivers/staging/unisys/visorhba/visorhba_main.c if (cmdrsp->scsi.cmnd[0] == INQUIRY && cmnd 850 drivers/staging/unisys/visorhba/visorhba_main.c if (cmdrsp->scsi.cmnd[0] == INQUIRY && cmnd 145 drivers/target/loopback/tcm_loop.c rc = target_submit_cmd_map_sgls(se_cmd, tl_nexus->se_sess, sc->cmnd, cmnd 173 drivers/target/loopback/tcm_loop.c sc->device->channel, sc->device->lun, sc->cmnd[0], cmnd 555 drivers/target/loopback/tcm_loop.c __func__, sc, sc->cmnd[0]); cmnd 573 drivers/target/loopback/tcm_loop.c __func__, sc, sc->cmnd[0]); cmnd 284 drivers/usb/gadget/function/f_mass_storage.c u8 cmnd[MAX_COMMAND_SIZE]; cmnd 634 drivers/usb/gadget/function/f_mass_storage.c if (common->cmnd[0] == READ_6) cmnd 635 drivers/usb/gadget/function/f_mass_storage.c lba = get_unaligned_be24(&common->cmnd[1]); cmnd 637 drivers/usb/gadget/function/f_mass_storage.c lba = get_unaligned_be32(&common->cmnd[2]); cmnd 644 drivers/usb/gadget/function/f_mass_storage.c if ((common->cmnd[1] & ~0x18) != 0) { cmnd 771 drivers/usb/gadget/function/f_mass_storage.c if (common->cmnd[0] == WRITE_6) cmnd 772 drivers/usb/gadget/function/f_mass_storage.c lba = get_unaligned_be24(&common->cmnd[1]); cmnd 774 drivers/usb/gadget/function/f_mass_storage.c lba = get_unaligned_be32(&common->cmnd[2]); cmnd 782 drivers/usb/gadget/function/f_mass_storage.c if (common->cmnd[1] & ~0x18) { cmnd 786 drivers/usb/gadget/function/f_mass_storage.c if (!curlun->nofua && (common->cmnd[1] & 0x08)) { /* FUA */ cmnd 974 drivers/usb/gadget/function/f_mass_storage.c lba = get_unaligned_be32(&common->cmnd[2]); cmnd 984 drivers/usb/gadget/function/f_mass_storage.c if (common->cmnd[1] & ~0x10) { cmnd 989 drivers/usb/gadget/function/f_mass_storage.c verification_length = get_unaligned_be16(&common->cmnd[7]); cmnd 1146 drivers/usb/gadget/function/f_mass_storage.c u32 lba = get_unaligned_be32(&common->cmnd[2]); cmnd 1147 drivers/usb/gadget/function/f_mass_storage.c int pmi = common->cmnd[8]; cmnd 1165 drivers/usb/gadget/function/f_mass_storage.c int msf = common->cmnd[1] & 0x02; cmnd 1166 drivers/usb/gadget/function/f_mass_storage.c u32 lba = get_unaligned_be32(&common->cmnd[2]); cmnd 1169 drivers/usb/gadget/function/f_mass_storage.c if (common->cmnd[1] & ~0x02) { /* Mask away MSF */ cmnd 1187 drivers/usb/gadget/function/f_mass_storage.c int msf = common->cmnd[1] & 0x02; cmnd 1188 drivers/usb/gadget/function/f_mass_storage.c int start_track = common->cmnd[6]; cmnd 1191 drivers/usb/gadget/function/f_mass_storage.c if ((common->cmnd[1] & ~0x02) != 0 || /* Mask away MSF */ cmnd 1214 drivers/usb/gadget/function/f_mass_storage.c int mscmnd = common->cmnd[0]; cmnd 1222 drivers/usb/gadget/function/f_mass_storage.c if ((common->cmnd[1] & ~0x08) != 0) { /* Mask away DBD */ cmnd 1226 drivers/usb/gadget/function/f_mass_storage.c pc = common->cmnd[2] >> 6; cmnd 1227 drivers/usb/gadget/function/f_mass_storage.c page_code = common->cmnd[2] & 0x3f; cmnd 1307 drivers/usb/gadget/function/f_mass_storage.c } else if ((common->cmnd[1] & ~0x01) != 0 || /* Mask away Immed */ cmnd 1308 drivers/usb/gadget/function/f_mass_storage.c (common->cmnd[4] & ~0x03) != 0) { /* Mask LoEj, Start */ cmnd 1313 drivers/usb/gadget/function/f_mass_storage.c loej = common->cmnd[4] & 0x02; cmnd 1314 drivers/usb/gadget/function/f_mass_storage.c start = common->cmnd[4] & 0x01; cmnd 1359 drivers/usb/gadget/function/f_mass_storage.c prevent = common->cmnd[4] & 0x01; cmnd 1360 drivers/usb/gadget/function/f_mass_storage.c if ((common->cmnd[4] & ~0x01) != 0) { /* Mask away Prevent */ cmnd 1662 drivers/usb/gadget/function/f_mass_storage.c unsigned int lun = common->cmnd[1] >> 5; cmnd 1734 drivers/usb/gadget/function/f_mass_storage.c if (common->cmnd[0] != REQUEST_SENSE) { cmnd 1746 drivers/usb/gadget/function/f_mass_storage.c if (common->cmnd[0] != INQUIRY && cmnd 1747 drivers/usb/gadget/function/f_mass_storage.c common->cmnd[0] != REQUEST_SENSE) { cmnd 1758 drivers/usb/gadget/function/f_mass_storage.c common->cmnd[0] != INQUIRY && cmnd 1759 drivers/usb/gadget/function/f_mass_storage.c common->cmnd[0] != REQUEST_SENSE) { cmnd 1766 drivers/usb/gadget/function/f_mass_storage.c common->cmnd[1] &= 0x1f; /* Mask away the LUN */ cmnd 1768 drivers/usb/gadget/function/f_mass_storage.c if (common->cmnd[i] && !(mask & (1 << i))) { cmnd 1817 drivers/usb/gadget/function/f_mass_storage.c switch (common->cmnd[0]) { cmnd 1820 drivers/usb/gadget/function/f_mass_storage.c common->data_size_from_cmnd = common->cmnd[4]; cmnd 1829 drivers/usb/gadget/function/f_mass_storage.c common->data_size_from_cmnd = common->cmnd[4]; cmnd 1839 drivers/usb/gadget/function/f_mass_storage.c get_unaligned_be16(&common->cmnd[7]); cmnd 1848 drivers/usb/gadget/function/f_mass_storage.c common->data_size_from_cmnd = common->cmnd[4]; cmnd 1858 drivers/usb/gadget/function/f_mass_storage.c get_unaligned_be16(&common->cmnd[7]); cmnd 1876 drivers/usb/gadget/function/f_mass_storage.c i = common->cmnd[4]; cmnd 1888 drivers/usb/gadget/function/f_mass_storage.c get_unaligned_be16(&common->cmnd[7]); cmnd 1899 drivers/usb/gadget/function/f_mass_storage.c get_unaligned_be32(&common->cmnd[6]); cmnd 1921 drivers/usb/gadget/function/f_mass_storage.c get_unaligned_be16(&common->cmnd[7]); cmnd 1933 drivers/usb/gadget/function/f_mass_storage.c get_unaligned_be16(&common->cmnd[7]); cmnd 1943 drivers/usb/gadget/function/f_mass_storage.c get_unaligned_be16(&common->cmnd[7]); cmnd 1952 drivers/usb/gadget/function/f_mass_storage.c common->data_size_from_cmnd = common->cmnd[4]; cmnd 1999 drivers/usb/gadget/function/f_mass_storage.c i = common->cmnd[4]; cmnd 2011 drivers/usb/gadget/function/f_mass_storage.c get_unaligned_be16(&common->cmnd[7]); cmnd 2022 drivers/usb/gadget/function/f_mass_storage.c get_unaligned_be32(&common->cmnd[6]); cmnd 2046 drivers/usb/gadget/function/f_mass_storage.c sprintf(unknown, "Unknown x%02x", common->cmnd[0]); cmnd 2131 drivers/usb/gadget/function/f_mass_storage.c memcpy(common->cmnd, cbw->CDB, common->cmnd_size); cmnd 59 drivers/usb/gadget/function/storage_common.h 16, 1, (fsg)->cmnd, (fsg)->cmnd_size, 0) \ cmnd 226 drivers/usb/image/microtek.c switch (srb->cmnd[0]) { cmnd 299 drivers/usb/image/microtek.c MTS_DEBUG( " %10ph\n", srb->cmnd); cmnd 470 drivers/usb/image/microtek.c if (context->srb->cmnd[0] == REQUEST_SENSE) { cmnd 548 drivers/usb/image/microtek.c if ( !memcmp( srb->cmnd, mts_read_image_sig, mts_read_image_sig_len ) cmnd 552 drivers/usb/image/microtek.c } else if ( MTS_DIRECTION_IS_IN(srb->cmnd[0]) ) { cmnd 594 drivers/usb/image/microtek.c srb->cmnd, cmnd 1129 drivers/usb/storage/alauda.c if (srb->cmnd[0] == INQUIRY) { cmnd 1136 drivers/usb/storage/alauda.c if (srb->cmnd[0] == TEST_UNIT_READY) { cmnd 1141 drivers/usb/storage/alauda.c if (srb->cmnd[0] == READ_CAPACITY) { cmnd 1163 drivers/usb/storage/alauda.c if (srb->cmnd[0] == READ_10) { cmnd 1170 drivers/usb/storage/alauda.c page = short_pack(srb->cmnd[3], srb->cmnd[2]); cmnd 1172 drivers/usb/storage/alauda.c page |= short_pack(srb->cmnd[5], srb->cmnd[4]); cmnd 1173 drivers/usb/storage/alauda.c pages = short_pack(srb->cmnd[8], srb->cmnd[7]); cmnd 1180 drivers/usb/storage/alauda.c if (srb->cmnd[0] == WRITE_10) { cmnd 1187 drivers/usb/storage/alauda.c page = short_pack(srb->cmnd[3], srb->cmnd[2]); cmnd 1189 drivers/usb/storage/alauda.c page |= short_pack(srb->cmnd[5], srb->cmnd[4]); cmnd 1190 drivers/usb/storage/alauda.c pages = short_pack(srb->cmnd[8], srb->cmnd[7]); cmnd 1197 drivers/usb/storage/alauda.c if (srb->cmnd[0] == REQUEST_SENSE) { cmnd 1211 drivers/usb/storage/alauda.c if (srb->cmnd[0] == ALLOW_MEDIUM_REMOVAL) { cmnd 1220 drivers/usb/storage/alauda.c srb->cmnd[0], srb->cmnd[0]); cmnd 77 drivers/usb/storage/cypress_atacb.c if (likely(srb->cmnd[0] != ATA_16 && srb->cmnd[0] != ATA_12)) { cmnd 82 drivers/usb/storage/cypress_atacb.c memcpy(save_cmnd, srb->cmnd, sizeof(save_cmnd)); cmnd 83 drivers/usb/storage/cypress_atacb.c memset(srb->cmnd, 0, MAX_COMMAND_SIZE); cmnd 101 drivers/usb/storage/cypress_atacb.c srb->cmnd[0] = 0x24; /* cmnd 106 drivers/usb/storage/cypress_atacb.c srb->cmnd[1] = 0x24; /* bVSCBSubCommand : 0x24 for ATACB */ cmnd 108 drivers/usb/storage/cypress_atacb.c srb->cmnd[3] = 0xff - 1; /* cmnd 112 drivers/usb/storage/cypress_atacb.c srb->cmnd[4] = 1; /* TransferBlockCount : 512 */ cmnd 115 drivers/usb/storage/cypress_atacb.c srb->cmnd[ 6] = save_cmnd[ 4]; /* features */ cmnd 116 drivers/usb/storage/cypress_atacb.c srb->cmnd[ 7] = save_cmnd[ 6]; /* sector count */ cmnd 117 drivers/usb/storage/cypress_atacb.c srb->cmnd[ 8] = save_cmnd[ 8]; /* lba low */ cmnd 118 drivers/usb/storage/cypress_atacb.c srb->cmnd[ 9] = save_cmnd[10]; /* lba med */ cmnd 119 drivers/usb/storage/cypress_atacb.c srb->cmnd[10] = save_cmnd[12]; /* lba high */ cmnd 120 drivers/usb/storage/cypress_atacb.c srb->cmnd[11] = save_cmnd[13]; /* device */ cmnd 121 drivers/usb/storage/cypress_atacb.c srb->cmnd[12] = save_cmnd[14]; /* command */ cmnd 130 drivers/usb/storage/cypress_atacb.c srb->cmnd[ 6] = save_cmnd[3]; /* features */ cmnd 131 drivers/usb/storage/cypress_atacb.c srb->cmnd[ 7] = save_cmnd[4]; /* sector count */ cmnd 132 drivers/usb/storage/cypress_atacb.c srb->cmnd[ 8] = save_cmnd[5]; /* lba low */ cmnd 133 drivers/usb/storage/cypress_atacb.c srb->cmnd[ 9] = save_cmnd[6]; /* lba med */ cmnd 134 drivers/usb/storage/cypress_atacb.c srb->cmnd[10] = save_cmnd[7]; /* lba high */ cmnd 135 drivers/usb/storage/cypress_atacb.c srb->cmnd[11] = save_cmnd[8]; /* device */ cmnd 136 drivers/usb/storage/cypress_atacb.c srb->cmnd[12] = save_cmnd[9]; /* command */ cmnd 140 drivers/usb/storage/cypress_atacb.c if ((srb->cmnd[12] == ATA_CMD_SET_FEATURES) cmnd 141 drivers/usb/storage/cypress_atacb.c && (srb->cmnd[6] == SETFEATURES_XFER)) cmnd 144 drivers/usb/storage/cypress_atacb.c if (srb->cmnd[12] == ATA_CMD_ID_ATA || srb->cmnd[12] == ATA_CMD_ID_ATAPI) cmnd 145 drivers/usb/storage/cypress_atacb.c srb->cmnd[2] |= (1<<7); /* set IdentifyPacketDevice for these cmds */ cmnd 180 drivers/usb/storage/cypress_atacb.c srb->cmnd = ses.cmnd; cmnd 181 drivers/usb/storage/cypress_atacb.c srb->cmnd[2] = 1; cmnd 234 drivers/usb/storage/cypress_atacb.c memcpy(srb->cmnd, save_cmnd, sizeof(save_cmnd)); cmnd 235 drivers/usb/storage/cypress_atacb.c if (srb->cmnd[0] == ATA_12) cmnd 463 drivers/usb/storage/datafab.c pc = srb->cmnd[2] >> 6; cmnd 464 drivers/usb/storage/datafab.c page_code = srb->cmnd[2] & 0x3F; cmnd 569 drivers/usb/storage/datafab.c if (srb->cmnd[0] == INQUIRY) { cmnd 576 drivers/usb/storage/datafab.c if (srb->cmnd[0] == READ_CAPACITY) { cmnd 594 drivers/usb/storage/datafab.c if (srb->cmnd[0] == MODE_SELECT_10) { cmnd 601 drivers/usb/storage/datafab.c if (srb->cmnd[0] == READ_10) { cmnd 602 drivers/usb/storage/datafab.c block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | cmnd 603 drivers/usb/storage/datafab.c ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); cmnd 605 drivers/usb/storage/datafab.c blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); cmnd 612 drivers/usb/storage/datafab.c if (srb->cmnd[0] == READ_12) { cmnd 615 drivers/usb/storage/datafab.c block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | cmnd 616 drivers/usb/storage/datafab.c ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); cmnd 618 drivers/usb/storage/datafab.c blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | cmnd 619 drivers/usb/storage/datafab.c ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); cmnd 626 drivers/usb/storage/datafab.c if (srb->cmnd[0] == WRITE_10) { cmnd 627 drivers/usb/storage/datafab.c block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | cmnd 628 drivers/usb/storage/datafab.c ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); cmnd 630 drivers/usb/storage/datafab.c blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); cmnd 637 drivers/usb/storage/datafab.c if (srb->cmnd[0] == WRITE_12) { cmnd 640 drivers/usb/storage/datafab.c block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | cmnd 641 drivers/usb/storage/datafab.c ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); cmnd 643 drivers/usb/storage/datafab.c blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | cmnd 644 drivers/usb/storage/datafab.c ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); cmnd 651 drivers/usb/storage/datafab.c if (srb->cmnd[0] == TEST_UNIT_READY) { cmnd 656 drivers/usb/storage/datafab.c if (srb->cmnd[0] == REQUEST_SENSE) { cmnd 674 drivers/usb/storage/datafab.c if (srb->cmnd[0] == MODE_SENSE) { cmnd 679 drivers/usb/storage/datafab.c if (srb->cmnd[0] == MODE_SENSE_10) { cmnd 684 drivers/usb/storage/datafab.c if (srb->cmnd[0] == ALLOW_MEDIUM_REMOVAL) { cmnd 692 drivers/usb/storage/datafab.c if (srb->cmnd[0] == START_STOP) { cmnd 714 drivers/usb/storage/datafab.c srb->cmnd[0], srb->cmnd[0]); cmnd 46 drivers/usb/storage/debug.c switch (srb->cmnd[0]) { cmnd 141 drivers/usb/storage/debug.c (const unsigned char *)srb->cmnd); cmnd 677 drivers/usb/storage/ene_ub6250.c unsigned char *cdb = srb->cmnd; cmnd 717 drivers/usb/storage/ene_ub6250.c unsigned char *cdb = srb->cmnd; cmnd 1640 drivers/usb/storage/ene_ub6250.c unsigned char *cdb = srb->cmnd; cmnd 1740 drivers/usb/storage/ene_ub6250.c unsigned char *cdb = srb->cmnd; cmnd 2225 drivers/usb/storage/ene_ub6250.c switch (srb->cmnd[0]) { cmnd 2270 drivers/usb/storage/ene_ub6250.c switch (srb->cmnd[0]) { cmnd 242 drivers/usb/storage/freecom.c memcpy (fcb->Atapi, srb->cmnd, 12); cmnd 245 drivers/usb/storage/freecom.c US_DEBUG(pdump(us, srb->cmnd, 12)); cmnd 334 drivers/usb/storage/freecom.c switch (srb->cmnd[0]) { cmnd 329 drivers/usb/storage/isd200.c unsigned char cmnd[BLK_MAX_CDB]; cmnd 488 drivers/usb/storage/isd200.c srb->cmnd = info->cmnd; cmnd 555 drivers/usb/storage/isd200.c memcpy(srb->cmnd, &ata, sizeof(ata.generic)); cmnd 616 drivers/usb/storage/isd200.c memcpy(srb->cmnd, ataCdb, sizeof(ataCdb->generic)); cmnd 660 drivers/usb/storage/isd200.c !((srb->cmnd[0] == REQUEST_SENSE) || cmnd 661 drivers/usb/storage/isd200.c (srb->cmnd[0] == INQUIRY) || cmnd 662 drivers/usb/storage/isd200.c (srb->cmnd[0] == MODE_SENSE) || cmnd 663 drivers/usb/storage/isd200.c (srb->cmnd[0] == LOG_SENSE) || cmnd 664 drivers/usb/storage/isd200.c (srb->cmnd[0] == MODE_SENSE_10))) { cmnd 1234 drivers/usb/storage/isd200.c switch (srb->cmnd[0]) { cmnd 1310 drivers/usb/storage/isd200.c lba = be32_to_cpu(*(__be32 *)&srb->cmnd[2]); cmnd 1311 drivers/usb/storage/isd200.c blockCount = (unsigned long)srb->cmnd[7]<<8 | (unsigned long)srb->cmnd[8]; cmnd 1342 drivers/usb/storage/isd200.c lba = be32_to_cpu(*(__be32 *)&srb->cmnd[2]); cmnd 1343 drivers/usb/storage/isd200.c blockCount = (unsigned long)srb->cmnd[7]<<8 | (unsigned long)srb->cmnd[8]; cmnd 1376 drivers/usb/storage/isd200.c srb->cmnd[4]); cmnd 1382 drivers/usb/storage/isd200.c ataCdb->write.CommandByte = (srb->cmnd[4] & 0x1) ? cmnd 1394 drivers/usb/storage/isd200.c usb_stor_dbg(us, " srb->cmnd[4] = 0x%X\n", srb->cmnd[4]); cmnd 1396 drivers/usb/storage/isd200.c if ((srb->cmnd[4] & 0x3) == 0x2) { cmnd 1403 drivers/usb/storage/isd200.c } else if ((srb->cmnd[4] & 0x3) == 0x1) { cmnd 1420 drivers/usb/storage/isd200.c srb->cmnd[0]); cmnd 387 drivers/usb/storage/jumpshot.c pc = srb->cmnd[2] >> 6; cmnd 388 drivers/usb/storage/jumpshot.c page_code = srb->cmnd[2] & 0x3F; cmnd 494 drivers/usb/storage/jumpshot.c if (srb->cmnd[0] == INQUIRY) { cmnd 501 drivers/usb/storage/jumpshot.c if (srb->cmnd[0] == READ_CAPACITY) { cmnd 524 drivers/usb/storage/jumpshot.c if (srb->cmnd[0] == MODE_SELECT_10) { cmnd 529 drivers/usb/storage/jumpshot.c if (srb->cmnd[0] == READ_10) { cmnd 530 drivers/usb/storage/jumpshot.c block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | cmnd 531 drivers/usb/storage/jumpshot.c ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); cmnd 533 drivers/usb/storage/jumpshot.c blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); cmnd 540 drivers/usb/storage/jumpshot.c if (srb->cmnd[0] == READ_12) { cmnd 543 drivers/usb/storage/jumpshot.c block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | cmnd 544 drivers/usb/storage/jumpshot.c ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); cmnd 546 drivers/usb/storage/jumpshot.c blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | cmnd 547 drivers/usb/storage/jumpshot.c ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); cmnd 554 drivers/usb/storage/jumpshot.c if (srb->cmnd[0] == WRITE_10) { cmnd 555 drivers/usb/storage/jumpshot.c block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | cmnd 556 drivers/usb/storage/jumpshot.c ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); cmnd 558 drivers/usb/storage/jumpshot.c blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); cmnd 565 drivers/usb/storage/jumpshot.c if (srb->cmnd[0] == WRITE_12) { cmnd 568 drivers/usb/storage/jumpshot.c block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | cmnd 569 drivers/usb/storage/jumpshot.c ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); cmnd 571 drivers/usb/storage/jumpshot.c blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | cmnd 572 drivers/usb/storage/jumpshot.c ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); cmnd 580 drivers/usb/storage/jumpshot.c if (srb->cmnd[0] == TEST_UNIT_READY) { cmnd 585 drivers/usb/storage/jumpshot.c if (srb->cmnd[0] == REQUEST_SENSE) { cmnd 599 drivers/usb/storage/jumpshot.c if (srb->cmnd[0] == MODE_SENSE) { cmnd 604 drivers/usb/storage/jumpshot.c if (srb->cmnd[0] == MODE_SENSE_10) { cmnd 609 drivers/usb/storage/jumpshot.c if (srb->cmnd[0] == ALLOW_MEDIUM_REMOVAL) { cmnd 617 drivers/usb/storage/jumpshot.c if (srb->cmnd[0] == START_STOP) { cmnd 639 drivers/usb/storage/jumpshot.c srb->cmnd[0], srb->cmnd[0]); cmnd 150 drivers/usb/storage/karma.c if (srb->cmnd[0] == READ_10 && !data->in_storage) { cmnd 157 drivers/usb/storage/karma.c } else if (srb->cmnd[0] == START_STOP) { cmnd 55 drivers/usb/storage/protocol.c srb->cmnd[srb->cmd_len] = 0; cmnd 73 drivers/usb/storage/protocol.c srb->cmnd[srb->cmd_len] = 0; cmnd 81 drivers/usb/storage/protocol.c switch (srb->cmnd[0]) { cmnd 85 drivers/usb/storage/protocol.c srb->cmnd[4] = 36; cmnd 90 drivers/usb/storage/protocol.c srb->cmnd[7] = 0; cmnd 91 drivers/usb/storage/protocol.c srb->cmnd[8] = 8; cmnd 96 drivers/usb/storage/protocol.c srb->cmnd[4] = 18; cmnd 363 drivers/usb/storage/realtek_cr.c u8 cmnd[12] = { 0 }; cmnd 372 drivers/usb/storage/realtek_cr.c cmnd[0] = 0xF0; cmnd 373 drivers/usb/storage/realtek_cr.c cmnd[1] = 0x0D; cmnd 374 drivers/usb/storage/realtek_cr.c cmnd[2] = (u8) (addr >> 8); cmnd 375 drivers/usb/storage/realtek_cr.c cmnd[3] = (u8) addr; cmnd 376 drivers/usb/storage/realtek_cr.c cmnd[4] = (u8) (len >> 8); cmnd 377 drivers/usb/storage/realtek_cr.c cmnd[5] = (u8) len; cmnd 379 drivers/usb/storage/realtek_cr.c retval = rts51x_bulk_transport(us, 0, cmnd, 12, cmnd 394 drivers/usb/storage/realtek_cr.c u8 cmnd[12] = { 0 }; cmnd 403 drivers/usb/storage/realtek_cr.c cmnd[0] = 0xF0; cmnd 404 drivers/usb/storage/realtek_cr.c cmnd[1] = 0x0E; cmnd 405 drivers/usb/storage/realtek_cr.c cmnd[2] = (u8) (addr >> 8); cmnd 406 drivers/usb/storage/realtek_cr.c cmnd[3] = (u8) addr; cmnd 407 drivers/usb/storage/realtek_cr.c cmnd[4] = (u8) (len >> 8); cmnd 408 drivers/usb/storage/realtek_cr.c cmnd[5] = (u8) len; cmnd 410 drivers/usb/storage/realtek_cr.c retval = rts51x_bulk_transport(us, 0, cmnd, 12, cmnd 423 drivers/usb/storage/realtek_cr.c u8 cmnd[12] = { 0 }; cmnd 432 drivers/usb/storage/realtek_cr.c cmnd[0] = 0xF0; cmnd 433 drivers/usb/storage/realtek_cr.c cmnd[1] = 0x09; cmnd 435 drivers/usb/storage/realtek_cr.c retval = rts51x_bulk_transport(us, lun, cmnd, 12, cmnd 505 drivers/usb/storage/realtek_cr.c u8 cmnd[12] = {0}; cmnd 514 drivers/usb/storage/realtek_cr.c cmnd[0] = 0xF0; cmnd 515 drivers/usb/storage/realtek_cr.c cmnd[1] = 0x0E; cmnd 516 drivers/usb/storage/realtek_cr.c cmnd[2] = 0xfe; cmnd 517 drivers/usb/storage/realtek_cr.c cmnd[3] = 0x47; cmnd 518 drivers/usb/storage/realtek_cr.c cmnd[4] = (u8)(len >> 8); cmnd 519 drivers/usb/storage/realtek_cr.c cmnd[5] = (u8)len; cmnd 521 drivers/usb/storage/realtek_cr.c retval = rts51x_bulk_transport_special(us, 0, cmnd, 12, buf, len, DMA_TO_DEVICE, NULL); cmnd 788 drivers/usb/storage/realtek_cr.c if ((srb->cmnd[0] == TEST_UNIT_READY) || cmnd 789 drivers/usb/storage/realtek_cr.c (srb->cmnd[0] == ALLOW_MEDIUM_REMOVAL)) { cmnd 822 drivers/usb/storage/realtek_cr.c if ((srb->cmnd[0] == TEST_UNIT_READY) && cmnd 835 drivers/usb/storage/realtek_cr.c if (srb->cmnd[0] == ALLOW_MEDIUM_REMOVAL) { cmnd 836 drivers/usb/storage/realtek_cr.c int prevent = srb->cmnd[4] & 0x1; cmnd 852 drivers/usb/storage/realtek_cr.c if (srb->cmnd[0] == TEST_UNIT_READY) { cmnd 387 drivers/usb/storage/scsiglue.c (srb->cmnd[0] == ATA_12 || srb->cmnd[0] == ATA_16)) { cmnd 1561 drivers/usb/storage/sddr09.c if (srb->cmnd[0] == REQUEST_SENSE && havefakesense) { cmnd 1580 drivers/usb/storage/sddr09.c if (srb->cmnd[0] == INQUIRY) { cmnd 1586 drivers/usb/storage/sddr09.c if (srb->cmnd[0] == READ_CAPACITY) { cmnd 1627 drivers/usb/storage/sddr09.c if (srb->cmnd[0] == MODE_SENSE_10) { cmnd 1628 drivers/usb/storage/sddr09.c int modepage = (srb->cmnd[2] & 0x3F); cmnd 1651 drivers/usb/storage/sddr09.c if (srb->cmnd[0] == ALLOW_MEDIUM_REMOVAL) cmnd 1656 drivers/usb/storage/sddr09.c if (srb->cmnd[0] == READ_10) { cmnd 1658 drivers/usb/storage/sddr09.c page = short_pack(srb->cmnd[3], srb->cmnd[2]); cmnd 1660 drivers/usb/storage/sddr09.c page |= short_pack(srb->cmnd[5], srb->cmnd[4]); cmnd 1661 drivers/usb/storage/sddr09.c pages = short_pack(srb->cmnd[8], srb->cmnd[7]); cmnd 1671 drivers/usb/storage/sddr09.c if (srb->cmnd[0] == WRITE_10) { cmnd 1673 drivers/usb/storage/sddr09.c page = short_pack(srb->cmnd[3], srb->cmnd[2]); cmnd 1675 drivers/usb/storage/sddr09.c page |= short_pack(srb->cmnd[5], srb->cmnd[4]); cmnd 1676 drivers/usb/storage/sddr09.c pages = short_pack(srb->cmnd[8], srb->cmnd[7]); cmnd 1690 drivers/usb/storage/sddr09.c if (srb->cmnd[0] != TEST_UNIT_READY && cmnd 1691 drivers/usb/storage/sddr09.c srb->cmnd[0] != REQUEST_SENSE) { cmnd 1699 drivers/usb/storage/sddr09.c srb->cmnd[srb->cmd_len] = 0; cmnd 1701 drivers/usb/storage/sddr09.c srb->cmnd[1] = LUNBITS; cmnd 1705 drivers/usb/storage/sddr09.c sprintf(ptr+strlen(ptr), "%02X ", srb->cmnd[i]); cmnd 1709 drivers/usb/storage/sddr09.c result = sddr09_send_scsi_command(us, srb->cmnd, 12); cmnd 805 drivers/usb/storage/sddr55.c if (srb->cmnd[0] == REQUEST_SENSE) { cmnd 827 drivers/usb/storage/sddr55.c if (srb->cmnd[0] == INQUIRY) { cmnd 860 drivers/usb/storage/sddr55.c if (srb->cmnd[0] == READ_CAPACITY) { cmnd 895 drivers/usb/storage/sddr55.c if (srb->cmnd[0] == MODE_SENSE_10) { cmnd 901 drivers/usb/storage/sddr55.c if ( (srb->cmnd[2] & 0x3F) == 0x01 ) { cmnd 905 drivers/usb/storage/sddr55.c } else if ( (srb->cmnd[2] & 0x3F) == 0x3F ) { cmnd 914 drivers/usb/storage/sddr55.c if (srb->cmnd[0] == ALLOW_MEDIUM_REMOVAL) { cmnd 917 drivers/usb/storage/sddr55.c (srb->cmnd[4]&0x03) ? "Prevent" : "Allow"); cmnd 923 drivers/usb/storage/sddr55.c if (srb->cmnd[0] == READ_10 || srb->cmnd[0] == WRITE_10) { cmnd 925 drivers/usb/storage/sddr55.c page = short_pack(srb->cmnd[3], srb->cmnd[2]); cmnd 927 drivers/usb/storage/sddr55.c page |= short_pack(srb->cmnd[5], srb->cmnd[4]); cmnd 928 drivers/usb/storage/sddr55.c pages = short_pack(srb->cmnd[8], srb->cmnd[7]); cmnd 951 drivers/usb/storage/sddr55.c if (srb->cmnd[0] == WRITE_10) { cmnd 965 drivers/usb/storage/sddr55.c if (srb->cmnd[0] == TEST_UNIT_READY) { cmnd 969 drivers/usb/storage/sddr55.c if (srb->cmnd[0] == START_STOP) { cmnd 1586 drivers/usb/storage/shuttle_usbat.c data[i] = (i-7 >= srb->cmd_len) ? 0 : srb->cmnd[i-7]; cmnd 1593 drivers/usb/storage/shuttle_usbat.c if (srb->cmnd[0] == TEST_UNIT_READY) cmnd 1613 drivers/usb/storage/shuttle_usbat.c } else if (srb->cmnd[0] == READ_10 || cmnd 1614 drivers/usb/storage/shuttle_usbat.c srb->cmnd[0] == GPCMD_READ_CD) { cmnd 1641 drivers/usb/storage/shuttle_usbat.c result = usbat_write_block(us, USBAT_ATA, srb->cmnd, 12, cmnd 1642 drivers/usb/storage/shuttle_usbat.c srb->cmnd[0] == GPCMD_BLANK ? 75 : 10, 0); cmnd 1690 drivers/usb/storage/shuttle_usbat.c if (srb->cmnd[0] == INQUIRY) { cmnd 1697 drivers/usb/storage/shuttle_usbat.c if (srb->cmnd[0] == READ_CAPACITY) { cmnd 1723 drivers/usb/storage/shuttle_usbat.c if (srb->cmnd[0] == MODE_SELECT_10) { cmnd 1728 drivers/usb/storage/shuttle_usbat.c if (srb->cmnd[0] == READ_10) { cmnd 1729 drivers/usb/storage/shuttle_usbat.c block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | cmnd 1730 drivers/usb/storage/shuttle_usbat.c ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); cmnd 1732 drivers/usb/storage/shuttle_usbat.c blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); cmnd 1739 drivers/usb/storage/shuttle_usbat.c if (srb->cmnd[0] == READ_12) { cmnd 1743 drivers/usb/storage/shuttle_usbat.c block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | cmnd 1744 drivers/usb/storage/shuttle_usbat.c ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); cmnd 1746 drivers/usb/storage/shuttle_usbat.c blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | cmnd 1747 drivers/usb/storage/shuttle_usbat.c ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); cmnd 1754 drivers/usb/storage/shuttle_usbat.c if (srb->cmnd[0] == WRITE_10) { cmnd 1755 drivers/usb/storage/shuttle_usbat.c block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | cmnd 1756 drivers/usb/storage/shuttle_usbat.c ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); cmnd 1758 drivers/usb/storage/shuttle_usbat.c blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); cmnd 1765 drivers/usb/storage/shuttle_usbat.c if (srb->cmnd[0] == WRITE_12) { cmnd 1769 drivers/usb/storage/shuttle_usbat.c block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | cmnd 1770 drivers/usb/storage/shuttle_usbat.c ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); cmnd 1772 drivers/usb/storage/shuttle_usbat.c blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | cmnd 1773 drivers/usb/storage/shuttle_usbat.c ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); cmnd 1781 drivers/usb/storage/shuttle_usbat.c if (srb->cmnd[0] == TEST_UNIT_READY) { cmnd 1791 drivers/usb/storage/shuttle_usbat.c if (srb->cmnd[0] == REQUEST_SENSE) { cmnd 1805 drivers/usb/storage/shuttle_usbat.c if (srb->cmnd[0] == ALLOW_MEDIUM_REMOVAL) { cmnd 1814 drivers/usb/storage/shuttle_usbat.c srb->cmnd[0], srb->cmnd[0]); cmnd 543 drivers/usb/storage/transport.c if (srb->cmnd[0] != READ_10 && srb->cmnd[0] != WRITE_10) cmnd 547 drivers/usb/storage/transport.c sector = (srb->cmnd[2] << 24) | (srb->cmnd[3] << 16) | cmnd 548 drivers/usb/storage/transport.c (srb->cmnd[4] << 8) | (srb->cmnd[5]); cmnd 589 drivers/usb/storage/transport.c if (srb->cmnd[0] != TEST_UNIT_READY) cmnd 670 drivers/usb/storage/transport.c if (unlikely((srb->cmnd[0] == ATA_16 || srb->cmnd[0] == ATA_12) && cmnd 674 drivers/usb/storage/transport.c !(srb->cmnd[2] & 0x20))) { cmnd 684 drivers/usb/storage/transport.c !((srb->cmnd[0] == REQUEST_SENSE) || cmnd 685 drivers/usb/storage/transport.c (srb->cmnd[0] == INQUIRY) || cmnd 686 drivers/usb/storage/transport.c (srb->cmnd[0] == MODE_SENSE) || cmnd 687 drivers/usb/storage/transport.c (srb->cmnd[0] == LOG_SENSE) || cmnd 688 drivers/usb/storage/transport.c (srb->cmnd[0] == MODE_SENSE_10))) { cmnd 829 drivers/usb/storage/transport.c else if (srb->cmnd[0] == ATA_16 || cmnd 830 drivers/usb/storage/transport.c srb->cmnd[0] == ATA_12) { cmnd 858 drivers/usb/storage/transport.c srb->cmnd[0] == READ_10)) { cmnd 957 drivers/usb/storage/transport.c memcpy(us->iobuf, srb->cmnd, srb->cmd_len); cmnd 1016 drivers/usb/storage/transport.c if (srb->cmnd[0] == REQUEST_SENSE || cmnd 1017 drivers/usb/storage/transport.c srb->cmnd[0] == INQUIRY) cmnd 1133 drivers/usb/storage/transport.c memcpy(bcb->CDB, srb->cmnd, bcb->Length); cmnd 1279 drivers/usb/storage/transport.c ((srb->cmnd[0] == INQUIRY && cmnd 1281 drivers/usb/storage/transport.c (srb->cmnd[0] == READ_CAPACITY && cmnd 45 drivers/usb/storage/uas.c struct scsi_cmnd *cmnd[MAX_CMNDS]; cmnd 76 drivers/usb/storage/uas.c static int uas_submit_urbs(struct scsi_cmnd *cmnd, cmnd 79 drivers/usb/storage/uas.c static int uas_try_complete(struct scsi_cmnd *cmnd, const char *caller); cmnd 81 drivers/usb/storage/uas.c static void uas_log_cmd_state(struct scsi_cmnd *cmnd, const char *prefix, cmnd 102 drivers/usb/storage/uas.c struct scsi_cmnd *cmnd; cmnd 112 drivers/usb/storage/uas.c if (!devinfo->cmnd[i]) cmnd 115 drivers/usb/storage/uas.c cmnd = devinfo->cmnd[i]; cmnd 116 drivers/usb/storage/uas.c cmdinfo = (void *)&cmnd->SCp; cmnd 121 drivers/usb/storage/uas.c err = uas_submit_urbs(cmnd, cmnd->device->hostdata); cmnd 145 drivers/usb/storage/uas.c struct scsi_cmnd *cmnd = container_of(scp, struct scsi_cmnd, SCp); cmnd 146 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = cmnd->device->hostdata; cmnd 156 drivers/usb/storage/uas.c struct scsi_cmnd *cmnd; cmnd 162 drivers/usb/storage/uas.c if (!devinfo->cmnd[i]) cmnd 165 drivers/usb/storage/uas.c cmnd = devinfo->cmnd[i]; cmnd 166 drivers/usb/storage/uas.c cmdinfo = (void *)&cmnd->SCp; cmnd 167 drivers/usb/storage/uas.c uas_log_cmd_state(cmnd, __func__, 0); cmnd 170 drivers/usb/storage/uas.c cmnd->result = result << 16; cmnd 171 drivers/usb/storage/uas.c err = uas_try_complete(cmnd, __func__); cmnd 177 drivers/usb/storage/uas.c static void uas_sense(struct urb *urb, struct scsi_cmnd *cmnd) cmnd 180 drivers/usb/storage/uas.c struct scsi_device *sdev = cmnd->device; cmnd 194 drivers/usb/storage/uas.c memcpy(cmnd->sense_buffer, sense_iu->sense, len); cmnd 197 drivers/usb/storage/uas.c cmnd->result = sense_iu->status; cmnd 200 drivers/usb/storage/uas.c static void uas_log_cmd_state(struct scsi_cmnd *cmnd, const char *prefix, cmnd 203 drivers/usb/storage/uas.c struct uas_cmd_info *ci = (void *)&cmnd->SCp; cmnd 204 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; cmnd 209 drivers/usb/storage/uas.c scmd_printk(KERN_INFO, cmnd, cmnd 224 drivers/usb/storage/uas.c scsi_print_command(cmnd); cmnd 227 drivers/usb/storage/uas.c static void uas_free_unsubmitted_urbs(struct scsi_cmnd *cmnd) cmnd 231 drivers/usb/storage/uas.c if (!cmnd) cmnd 234 drivers/usb/storage/uas.c cmdinfo = (void *)&cmnd->SCp; cmnd 246 drivers/usb/storage/uas.c static int uas_try_complete(struct scsi_cmnd *cmnd, const char *caller) cmnd 248 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; cmnd 249 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (void *)cmnd->device->hostdata; cmnd 257 drivers/usb/storage/uas.c devinfo->cmnd[cmdinfo->uas_tag - 1] = NULL; cmnd 258 drivers/usb/storage/uas.c uas_free_unsubmitted_urbs(cmnd); cmnd 259 drivers/usb/storage/uas.c cmnd->scsi_done(cmnd); cmnd 263 drivers/usb/storage/uas.c static void uas_xfer_data(struct urb *urb, struct scsi_cmnd *cmnd, cmnd 266 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; cmnd 270 drivers/usb/storage/uas.c err = uas_submit_urbs(cmnd, cmnd->device->hostdata); cmnd 276 drivers/usb/storage/uas.c static bool uas_evaluate_response_iu(struct response_iu *riu, struct scsi_cmnd *cmnd) cmnd 282 drivers/usb/storage/uas.c cmnd->result = DID_BAD_TARGET << 16; cmnd 285 drivers/usb/storage/uas.c cmnd->result = DID_OK << 16; cmnd 288 drivers/usb/storage/uas.c cmnd->result = DID_TARGET_FAILURE << 16; cmnd 291 drivers/usb/storage/uas.c uas_log_cmd_state(cmnd, "response iu", response_code); cmnd 292 drivers/usb/storage/uas.c cmnd->result = DID_ERROR << 16; cmnd 306 drivers/usb/storage/uas.c struct scsi_cmnd *cmnd; cmnd 325 drivers/usb/storage/uas.c if (idx >= MAX_CMNDS || !devinfo->cmnd[idx]) { cmnd 331 drivers/usb/storage/uas.c cmnd = devinfo->cmnd[idx]; cmnd 332 drivers/usb/storage/uas.c cmdinfo = (void *)&cmnd->SCp; cmnd 335 drivers/usb/storage/uas.c uas_log_cmd_state(cmnd, "unexpected status cmplt", 0); cmnd 341 drivers/usb/storage/uas.c uas_sense(urb, cmnd); cmnd 342 drivers/usb/storage/uas.c if (cmnd->result != 0) { cmnd 348 drivers/usb/storage/uas.c uas_try_complete(cmnd, __func__); cmnd 353 drivers/usb/storage/uas.c uas_log_cmd_state(cmnd, "unexpected read rdy", 0); cmnd 356 drivers/usb/storage/uas.c uas_xfer_data(urb, cmnd, SUBMIT_DATA_IN_URB); cmnd 361 drivers/usb/storage/uas.c uas_log_cmd_state(cmnd, "unexpected write rdy", 0); cmnd 364 drivers/usb/storage/uas.c uas_xfer_data(urb, cmnd, SUBMIT_DATA_OUT_URB); cmnd 368 drivers/usb/storage/uas.c success = uas_evaluate_response_iu((struct response_iu *)iu, cmnd); cmnd 374 drivers/usb/storage/uas.c uas_try_complete(cmnd, __func__); cmnd 377 drivers/usb/storage/uas.c uas_log_cmd_state(cmnd, "bogus IU", iu->iu_id); cmnd 396 drivers/usb/storage/uas.c struct scsi_cmnd *cmnd = urb->context; cmnd 397 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; cmnd 398 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (void *)cmnd->device->hostdata; cmnd 399 drivers/usb/storage/uas.c struct scsi_data_buffer *sdb = &cmnd->sdb; cmnd 418 drivers/usb/storage/uas.c uas_log_cmd_state(cmnd, "unexpected data cmplt", 0); cmnd 424 drivers/usb/storage/uas.c uas_log_cmd_state(cmnd, "data cmplt err", status); cmnd 426 drivers/usb/storage/uas.c scsi_set_resid(cmnd, sdb->length); cmnd 428 drivers/usb/storage/uas.c scsi_set_resid(cmnd, sdb->length - urb->actual_length); cmnd 430 drivers/usb/storage/uas.c uas_try_complete(cmnd, __func__); cmnd 445 drivers/usb/storage/uas.c struct scsi_cmnd *cmnd, cmnd 449 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; cmnd 451 drivers/usb/storage/uas.c struct scsi_data_buffer *sdb = &cmnd->sdb; cmnd 458 drivers/usb/storage/uas.c uas_data_cmplt, cmnd); cmnd 468 drivers/usb/storage/uas.c struct scsi_cmnd *cmnd) cmnd 471 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; cmnd 483 drivers/usb/storage/uas.c uas_stat_cmplt, cmnd->device->host); cmnd 495 drivers/usb/storage/uas.c struct scsi_cmnd *cmnd) cmnd 498 drivers/usb/storage/uas.c struct scsi_device *sdev = cmnd->device; cmnd 499 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; cmnd 507 drivers/usb/storage/uas.c len = cmnd->cmd_len - 16; cmnd 520 drivers/usb/storage/uas.c memcpy(iu->cdb, cmnd->cmnd, cmnd->cmd_len); cmnd 538 drivers/usb/storage/uas.c static struct urb *uas_submit_sense_urb(struct scsi_cmnd *cmnd, gfp_t gfp) cmnd 540 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = cmnd->device->hostdata; cmnd 544 drivers/usb/storage/uas.c urb = uas_alloc_sense_urb(devinfo, gfp, cmnd); cmnd 551 drivers/usb/storage/uas.c uas_log_cmd_state(cmnd, "sense submit err", err); cmnd 558 drivers/usb/storage/uas.c static int uas_submit_urbs(struct scsi_cmnd *cmnd, cmnd 561 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; cmnd 567 drivers/usb/storage/uas.c urb = uas_submit_sense_urb(cmnd, GFP_ATOMIC); cmnd 575 drivers/usb/storage/uas.c cmnd, DMA_FROM_DEVICE); cmnd 586 drivers/usb/storage/uas.c uas_log_cmd_state(cmnd, "data in submit err", err); cmnd 595 drivers/usb/storage/uas.c cmnd, DMA_TO_DEVICE); cmnd 606 drivers/usb/storage/uas.c uas_log_cmd_state(cmnd, "data out submit err", err); cmnd 614 drivers/usb/storage/uas.c cmdinfo->cmd_urb = uas_alloc_cmd_urb(devinfo, GFP_ATOMIC, cmnd); cmnd 625 drivers/usb/storage/uas.c uas_log_cmd_state(cmnd, "cmd submit err", err); cmnd 636 drivers/usb/storage/uas.c static int uas_queuecommand_lck(struct scsi_cmnd *cmnd, cmnd 639 drivers/usb/storage/uas.c struct scsi_device *sdev = cmnd->device; cmnd 641 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; cmnd 648 drivers/usb/storage/uas.c if (cmnd->device->host->host_self_blocked) cmnd 652 drivers/usb/storage/uas.c (cmnd->cmnd[0] == ATA_12 || cmnd->cmnd[0] == ATA_16)) { cmnd 653 drivers/usb/storage/uas.c memcpy(cmnd->sense_buffer, usb_stor_sense_invalidCDB, cmnd 655 drivers/usb/storage/uas.c cmnd->result = SAM_STAT_CHECK_CONDITION; cmnd 656 drivers/usb/storage/uas.c cmnd->scsi_done(cmnd); cmnd 663 drivers/usb/storage/uas.c cmnd->result = DID_ERROR << 16; cmnd 664 drivers/usb/storage/uas.c cmnd->scsi_done(cmnd); cmnd 671 drivers/usb/storage/uas.c if (!devinfo->cmnd[idx]) cmnd 679 drivers/usb/storage/uas.c cmnd->scsi_done = done; cmnd 685 drivers/usb/storage/uas.c switch (cmnd->sc_data_direction) { cmnd 701 drivers/usb/storage/uas.c err = uas_submit_urbs(cmnd, devinfo); cmnd 711 drivers/usb/storage/uas.c devinfo->cmnd[idx] = cmnd; cmnd 723 drivers/usb/storage/uas.c static int uas_eh_abort_handler(struct scsi_cmnd *cmnd) cmnd 725 drivers/usb/storage/uas.c struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; cmnd 726 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (void *)cmnd->device->hostdata; cmnd 733 drivers/usb/storage/uas.c uas_log_cmd_state(cmnd, __func__, 0); cmnd 739 drivers/usb/storage/uas.c devinfo->cmnd[cmdinfo->uas_tag - 1] = NULL; cmnd 745 drivers/usb/storage/uas.c uas_free_unsubmitted_urbs(cmnd); cmnd 761 drivers/usb/storage/uas.c static int uas_eh_device_reset_handler(struct scsi_cmnd *cmnd) cmnd 763 drivers/usb/storage/uas.c struct scsi_device *sdev = cmnd->device; cmnd 1054 drivers/usb/storage/uas.c if (devinfo->cmnd[i]) { cmnd 366 drivers/usb/storage/usb.c else if ((srb->cmnd[0] == INQUIRY) && cmnd 118 drivers/xen/xen-scsiback.c uint8_t cmnd[VSCSIIF_MAX_COMMAND_SIZE]; cmnd 265 drivers/xen/xen-scsiback.c pending_req->cmnd[0], status_byte(errors), msg_byte(errors), cmnd 404 drivers/xen/xen-scsiback.c rc = target_submit_cmd_map_sgls(se_cmd, sess, pending_req->cmnd, cmnd 720 drivers/xen/xen-scsiback.c memcpy(pending_req->cmnd, ring_req->cmnd, pending_req->cmd_len); cmnd 96 include/scsi/scsi_cmnd.h unsigned char *cmnd; cmnd 22 include/scsi/scsi_common.h scsi_command_size(const unsigned char *cmnd) cmnd 24 include/scsi/scsi_common.h return (cmnd[0] == VARIABLE_LENGTH_CMD) ? cmnd 25 include/scsi/scsi_common.h scsi_varlen_cdb_length(cmnd) : COMMAND_SIZE(cmnd[0]); cmnd 41 include/scsi/scsi_eh.h unsigned char *cmnd; cmnd 49 include/scsi/scsi_eh.h struct scsi_eh_save *ses, unsigned char *cmnd, cmnd 803 include/scsi/scsi_transport_fc.h int fc_block_scsi_eh(struct scsi_cmnd *cmnd); cmnd 216 include/trace/events/scsi.h __dynamic_array(unsigned char, cmnd, cmd->cmd_len) cmnd 224 include/trace/events/scsi.h __entry->opcode = cmd->cmnd[0]; cmnd 229 include/trace/events/scsi.h memcpy(__get_dynamic_array(cmnd), cmd->cmnd, cmd->cmd_len); cmnd 238 include/trace/events/scsi.h __parse_cdb(__get_dynamic_array(cmnd), __entry->cmd_len), cmnd 239 include/trace/events/scsi.h __print_hex(__get_dynamic_array(cmnd), __entry->cmd_len)) cmnd 259 include/trace/events/scsi.h __dynamic_array(unsigned char, cmnd, cmd->cmd_len) cmnd 268 include/trace/events/scsi.h __entry->opcode = cmd->cmnd[0]; cmnd 273 include/trace/events/scsi.h memcpy(__get_dynamic_array(cmnd), cmd->cmnd, cmd->cmd_len); cmnd 282 include/trace/events/scsi.h __parse_cdb(__get_dynamic_array(cmnd), __entry->cmd_len), cmnd 283 include/trace/events/scsi.h __print_hex(__get_dynamic_array(cmnd), __entry->cmd_len), cmnd 304 include/trace/events/scsi.h __dynamic_array(unsigned char, cmnd, cmd->cmd_len) cmnd 313 include/trace/events/scsi.h __entry->opcode = cmd->cmnd[0]; cmnd 318 include/trace/events/scsi.h memcpy(__get_dynamic_array(cmnd), cmd->cmnd, cmd->cmd_len); cmnd 328 include/trace/events/scsi.h __parse_cdb(__get_dynamic_array(cmnd), __entry->cmd_len), cmnd 329 include/trace/events/scsi.h __print_hex(__get_dynamic_array(cmnd), __entry->cmd_len), cmnd 195 include/xen/interface/io/vscsiif.h uint8_t cmnd[VSCSIIF_MAX_COMMAND_SIZE]; /* the CDB */