Lines Matching defs:cmd

107 					struct scsi_cmnd *cmd);
113 static int arcmsr_queue_command(struct Scsi_Host *h, struct scsi_cmnd *cmd);
2919 struct scsi_cmnd *cmd)
2926 uint32_t controlcode = (uint32_t)cmd->cmnd[5] << 24 |
2927 (uint32_t)cmd->cmnd[6] << 16 |
2928 (uint32_t)cmd->cmnd[7] << 8 |
2929 (uint32_t)cmd->cmnd[8];
2932 use_sg = scsi_sg_count(cmd);
2933 sg = scsi_sglist(cmd);
3020 (struct SENSE_DATA *)cmd->sense_buffer;
3166 struct scatterlist *sg = scsi_sglist(cmd);
3190 struct scsi_cmnd *cmd)
3192 switch (cmd->cmnd[0]) {
3198 if (cmd->device->lun) {
3199 cmd->result = (DID_TIME_OUT << 16);
3200 cmd->scsi_done(cmd);
3217 sg = scsi_sglist(cmd);
3221 sg = scsi_sglist(cmd);
3224 cmd->scsi_done(cmd);
3229 if (arcmsr_iop_message_xfer(acb, cmd))
3230 cmd->result = (DID_ERROR << 16);
3231 cmd->scsi_done(cmd);
3235 cmd->scsi_done(cmd);
3239 static int arcmsr_queue_command_lck(struct scsi_cmnd *cmd,
3242 struct Scsi_Host *host = cmd->device->host;
3245 int target = cmd->device->id;
3248 cmd->result = (DID_NO_CONNECT << 16);
3249 cmd->scsi_done(cmd);
3252 cmd->scsi_done = done;
3253 cmd->host_scribble = NULL;
3254 cmd->result = 0;
3257 arcmsr_handle_virtual_command(acb, cmd);
3263 if (arcmsr_build_ccb( acb, ccb, cmd ) == FAILED) {
3264 cmd->result = (DID_ERROR << 16) | (RESERVATION_CONFLICT << 1);
3265 cmd->scsi_done(cmd);
4573 static int arcmsr_bus_reset(struct scsi_cmnd *cmd)
4578 acb = (struct AdapterControlBlock *) cmd->device->host->hostdata;
4635 static int arcmsr_abort(struct scsi_cmnd *cmd)
4638 (struct AdapterControlBlock *)cmd->device->host->hostdata;
4647 acb->host->host_no, cmd->device->id, (u32)cmd->device->lun);
4664 if (ccb->startdone == ARCMSR_CCB_START && ccb->pcmd == cmd) {