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