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,
188 int (*func)(struct scsi_cmnd *SCpnt),
192 struct scsi_device *sdev = SCpnt->device;
200 hd = shost_priv(SCpnt->device->host);
210 SCpnt->device->id, SCpnt->device->lun,
218 if (ready == DID_NO_CONNECT || !SCpnt->device->hostdata
224 SCpnt->device->id, SCpnt->device->lun, ready,
225 ioc->active, SCpnt->device->hostdata));
231 SCpnt->device->id, SCpnt->device->lun));
232 return (*func)(SCpnt);
236 mptfc_abort(struct scsi_cmnd *SCpnt)
239 mptfc_block_error_handler(SCpnt, mptscsih_abort, __func__);
243 mptfc_dev_reset(struct scsi_cmnd *SCpnt)
246 mptfc_block_error_handler(SCpnt, mptscsih_dev_reset, __func__);
250 mptfc_bus_reset(struct scsi_cmnd *SCpnt)
253 mptfc_block_error_handler(SCpnt, mptscsih_bus_reset, __func__);
257 mptfc_host_reset(struct scsi_cmnd *SCpnt)
260 mptfc_block_error_handler(SCpnt, mptscsih_host_reset, __func__);
651 mptfc_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt)
654 struct fc_rport *rport = starget_to_rport(scsi_target(SCpnt->device));
656 VirtDevice *vdevice = SCpnt->device->hostdata;
659 SCpnt->result = DID_NO_CONNECT << 16;
660 SCpnt->scsi_done(SCpnt);
666 SCpnt->result = err;
667 SCpnt->scsi_done(SCpnt);
674 SCpnt->result = DID_IMM_RETRY << 16;
675 SCpnt->scsi_done(SCpnt);
679 return mptscsih_qcmd(SCpnt);