• Home
  • Raw
  • Download

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()
651 mptfc_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) in mptfc_qcmd() argument
654 struct fc_rport *rport = starget_to_rport(scsi_target(SCpnt->device)); in mptfc_qcmd()
656 VirtDevice *vdevice = SCpnt->device->hostdata; in mptfc_qcmd()
659 SCpnt->result = DID_NO_CONNECT << 16; in mptfc_qcmd()
660 SCpnt->scsi_done(SCpnt); in mptfc_qcmd()
666 SCpnt->result = err; in mptfc_qcmd()
667 SCpnt->scsi_done(SCpnt); in mptfc_qcmd()
674 SCpnt->result = DID_IMM_RETRY << 16; in mptfc_qcmd()
675 SCpnt->scsi_done(SCpnt); in mptfc_qcmd()
679 return mptscsih_qcmd(SCpnt); in mptfc_qcmd()