Lines Matching refs:cmd
110 struct scsi_cmnd *cmd);
116 static int arcmsr_queue_command(struct Scsi_Host *h, struct scsi_cmnd *cmd);
2914 struct scsi_cmnd *cmd) in arcmsr_iop_message_xfer() argument
2921 uint32_t controlcode = (uint32_t)cmd->cmnd[5] << 24 | in arcmsr_iop_message_xfer()
2922 (uint32_t)cmd->cmnd[6] << 16 | in arcmsr_iop_message_xfer()
2923 (uint32_t)cmd->cmnd[7] << 8 | in arcmsr_iop_message_xfer()
2924 (uint32_t)cmd->cmnd[8]; in arcmsr_iop_message_xfer()
2927 use_sg = scsi_sg_count(cmd); in arcmsr_iop_message_xfer()
2928 sg = scsi_sglist(cmd); in arcmsr_iop_message_xfer()
3015 (struct SENSE_DATA *)cmd->sense_buffer; in arcmsr_iop_message_xfer()
3161 struct scatterlist *sg = scsi_sglist(cmd); in arcmsr_iop_message_xfer()
3187 struct scsi_cmnd *cmd) in arcmsr_handle_virtual_command() argument
3189 switch (cmd->cmnd[0]) { in arcmsr_handle_virtual_command()
3195 if (cmd->device->lun) { in arcmsr_handle_virtual_command()
3196 cmd->result = (DID_TIME_OUT << 16); in arcmsr_handle_virtual_command()
3197 scsi_done(cmd); in arcmsr_handle_virtual_command()
3214 sg = scsi_sglist(cmd); in arcmsr_handle_virtual_command()
3218 sg = scsi_sglist(cmd); in arcmsr_handle_virtual_command()
3221 scsi_done(cmd); in arcmsr_handle_virtual_command()
3226 if (arcmsr_iop_message_xfer(acb, cmd)) in arcmsr_handle_virtual_command()
3227 cmd->result = (DID_ERROR << 16); in arcmsr_handle_virtual_command()
3228 scsi_done(cmd); in arcmsr_handle_virtual_command()
3232 scsi_done(cmd); in arcmsr_handle_virtual_command()
3236 static int arcmsr_queue_command_lck(struct scsi_cmnd *cmd) in arcmsr_queue_command_lck() argument
3238 struct Scsi_Host *host = cmd->device->host; in arcmsr_queue_command_lck()
3241 int target = cmd->device->id; in arcmsr_queue_command_lck()
3244 cmd->result = (DID_NO_CONNECT << 16); in arcmsr_queue_command_lck()
3245 scsi_done(cmd); in arcmsr_queue_command_lck()
3248 cmd->host_scribble = NULL; in arcmsr_queue_command_lck()
3249 cmd->result = 0; in arcmsr_queue_command_lck()
3252 arcmsr_handle_virtual_command(acb, cmd); in arcmsr_queue_command_lck()
3258 if (arcmsr_build_ccb( acb, ccb, cmd ) == FAILED) { in arcmsr_queue_command_lck()
3259 cmd->result = (DID_ERROR << 16) | SAM_STAT_RESERVATION_CONFLICT; in arcmsr_queue_command_lck()
3260 scsi_done(cmd); in arcmsr_queue_command_lck()
4578 static int arcmsr_bus_reset(struct scsi_cmnd *cmd) in arcmsr_bus_reset() argument
4583 acb = (struct AdapterControlBlock *) cmd->device->host->hostdata; in arcmsr_bus_reset()
4640 static int arcmsr_abort(struct scsi_cmnd *cmd) in arcmsr_abort() argument
4643 (struct AdapterControlBlock *)cmd->device->host->hostdata; in arcmsr_abort()
4652 acb->host->host_no, cmd->device->id, (u32)cmd->device->lun); in arcmsr_abort()
4669 if (ccb->startdone == ARCMSR_CCB_START && ccb->pcmd == cmd) { in arcmsr_abort()