Lines Matching refs:SCpnt
1718 static int twa_scsi_eh_reset(struct scsi_cmnd *SCpnt) in twa_scsi_eh_reset() argument
1723 tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in twa_scsi_eh_reset()
1727 sdev_printk(KERN_WARNING, SCpnt->device, in twa_scsi_eh_reset()
1729 TW_DRIVER, 0x2c, SCpnt->cmnd[0]); in twa_scsi_eh_reset()
1747 static int twa_scsi_queue_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) in twa_scsi_queue_lck() argument
1750 TW_Device_Extension *tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in twa_scsi_queue_lck()
1759 if ((SCpnt->device->lun != 0) && (tw_dev->tw_compat_info.working_srl < TW_FW_SRL_LUNS_SUPPORTED)) { in twa_scsi_queue_lck()
1760 SCpnt->result = (DID_BAD_TARGET << 16); in twa_scsi_queue_lck()
1761 done(SCpnt); in twa_scsi_queue_lck()
1767 SCpnt->scsi_done = done; in twa_scsi_queue_lck()
1773 tw_dev->srb[request_id] = SCpnt; in twa_scsi_queue_lck()
1778 if (twa_command_mapped(SCpnt)) in twa_scsi_queue_lck()
1779 scsi_dma_unmap(SCpnt); in twa_scsi_queue_lck()
1783 SCpnt->result = (DID_ERROR << 16); in twa_scsi_queue_lck()
1784 if (twa_command_mapped(SCpnt)) in twa_scsi_queue_lck()
1785 scsi_dma_unmap(SCpnt); in twa_scsi_queue_lck()
1786 done(SCpnt); in twa_scsi_queue_lck()