Lines Matching refs:SCpnt
100 static int mptfc_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt);
104 static int mptfc_abort(struct scsi_cmnd *SCpnt);
105 static int mptfc_dev_reset(struct scsi_cmnd *SCpnt);
106 static int mptfc_bus_reset(struct scsi_cmnd *SCpnt);
186 mptfc_block_error_handler(struct scsi_cmnd *SCpnt, in mptfc_block_error_handler() argument
187 int (*func)(struct scsi_cmnd *SCpnt), in mptfc_block_error_handler() argument
191 struct scsi_device *sdev = SCpnt->device; in mptfc_block_error_handler()
199 hd = shost_priv(SCpnt->device->host); in mptfc_block_error_handler()
209 SCpnt->device->id, SCpnt->device->lun, in mptfc_block_error_handler()
217 if (ready == DID_NO_CONNECT || !SCpnt->device->hostdata in mptfc_block_error_handler()
223 SCpnt->device->id, SCpnt->device->lun, ready, in mptfc_block_error_handler()
224 ioc->active, SCpnt->device->hostdata)); in mptfc_block_error_handler()
230 SCpnt->device->id, SCpnt->device->lun)); in mptfc_block_error_handler()
231 return (*func)(SCpnt); in mptfc_block_error_handler()
235 mptfc_abort(struct scsi_cmnd *SCpnt) in mptfc_abort() argument
238 mptfc_block_error_handler(SCpnt, mptscsih_abort, __func__); in mptfc_abort()
242 mptfc_dev_reset(struct scsi_cmnd *SCpnt) in mptfc_dev_reset() argument
245 mptfc_block_error_handler(SCpnt, mptscsih_dev_reset, __func__); in mptfc_dev_reset()
249 mptfc_bus_reset(struct scsi_cmnd *SCpnt) in mptfc_bus_reset() argument
252 mptfc_block_error_handler(SCpnt, mptscsih_bus_reset, __func__); in mptfc_bus_reset()
643 mptfc_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) in mptfc_qcmd() argument
646 struct fc_rport *rport = starget_to_rport(scsi_target(SCpnt->device)); in mptfc_qcmd()
648 VirtDevice *vdevice = SCpnt->device->hostdata; in mptfc_qcmd()
651 SCpnt->result = DID_NO_CONNECT << 16; in mptfc_qcmd()
652 scsi_done(SCpnt); in mptfc_qcmd()
658 SCpnt->result = err; in mptfc_qcmd()
659 scsi_done(SCpnt); in mptfc_qcmd()
666 SCpnt->result = DID_IMM_RETRY << 16; in mptfc_qcmd()
667 scsi_done(SCpnt); in mptfc_qcmd()
671 return mptscsih_qcmd(SCpnt); in mptfc_qcmd()