Lines Matching refs:SCpnt
1358 static int tw_scsi_eh_reset(struct scsi_cmnd *SCpnt) in tw_scsi_eh_reset() argument
1363 tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in tw_scsi_eh_reset()
1367 sdev_printk(KERN_WARNING, SCpnt->device, in tw_scsi_eh_reset()
1369 SCpnt->cmnd[0]); in tw_scsi_eh_reset()
1912 static int tw_scsi_queue_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) in tw_scsi_queue_lck() argument
1914 unsigned char *command = SCpnt->cmnd; in tw_scsi_queue_lck()
1917 TW_Device_Extension *tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in tw_scsi_queue_lck()
1924 SCpnt->scsi_done = done; in tw_scsi_queue_lck()
1930 tw_dev->srb[request_id] = SCpnt; in tw_scsi_queue_lck()
1971 SCpnt->result = (DRIVER_SENSE << 24) | SAM_STAT_CHECK_CONDITION; in tw_scsi_queue_lck()
1972 scsi_build_sense_buffer(1, SCpnt->sense_buffer, ILLEGAL_REQUEST, 0x20, 0); in tw_scsi_queue_lck()
1973 done(SCpnt); in tw_scsi_queue_lck()
1979 SCpnt->result = (DID_ERROR << 16); in tw_scsi_queue_lck()
1980 done(SCpnt); in tw_scsi_queue_lck()