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);
107 static int mptfc_host_reset(struct scsi_cmnd *SCpnt);
187 mptfc_block_error_handler(struct scsi_cmnd *SCpnt, in mptfc_block_error_handler() argument
188 int (*func)(struct scsi_cmnd *SCpnt), in mptfc_block_error_handler() argument
192 struct scsi_device *sdev = SCpnt->device; in mptfc_block_error_handler()
200 hd = shost_priv(SCpnt->device->host); in mptfc_block_error_handler()
210 SCpnt->device->id, SCpnt->device->lun, in mptfc_block_error_handler()
218 if (ready == DID_NO_CONNECT || !SCpnt->device->hostdata in mptfc_block_error_handler()
224 SCpnt->device->id, SCpnt->device->lun, ready, in mptfc_block_error_handler()
225 ioc->active, SCpnt->device->hostdata)); in mptfc_block_error_handler()
231 SCpnt->device->id, SCpnt->device->lun)); in mptfc_block_error_handler()
232 return (*func)(SCpnt); in mptfc_block_error_handler()
236 mptfc_abort(struct scsi_cmnd *SCpnt) in mptfc_abort() argument
239 mptfc_block_error_handler(SCpnt, mptscsih_abort, __func__); in mptfc_abort()
243 mptfc_dev_reset(struct scsi_cmnd *SCpnt) in mptfc_dev_reset() argument
246 mptfc_block_error_handler(SCpnt, mptscsih_dev_reset, __func__); in mptfc_dev_reset()
250 mptfc_bus_reset(struct scsi_cmnd *SCpnt) in mptfc_bus_reset() argument
253 mptfc_block_error_handler(SCpnt, mptscsih_bus_reset, __func__); in mptfc_bus_reset()
257 mptfc_host_reset(struct scsi_cmnd *SCpnt) in mptfc_host_reset() argument
260 mptfc_block_error_handler(SCpnt, mptscsih_host_reset, __func__); in mptfc_host_reset()
652 mptfc_qcmd_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) in mptfc_qcmd_lck() argument
655 struct fc_rport *rport = starget_to_rport(scsi_target(SCpnt->device)); in mptfc_qcmd_lck()
657 VirtDevice *vdevice = SCpnt->device->hostdata; in mptfc_qcmd_lck()
660 SCpnt->result = DID_NO_CONNECT << 16; in mptfc_qcmd_lck()
661 done(SCpnt); in mptfc_qcmd_lck()
667 SCpnt->result = err; in mptfc_qcmd_lck()
668 done(SCpnt); in mptfc_qcmd_lck()
675 SCpnt->result = DID_IMM_RETRY << 16; in mptfc_qcmd_lck()
676 done(SCpnt); in mptfc_qcmd_lck()
680 return mptscsih_qcmd(SCpnt,done); in mptfc_qcmd_lck()