Lines Matching refs:SCpnt

465 	struct scsi_cmnd *SCpnt;/* scsi_cmnd using this SCB                  */  member
888 scbs[i].SCpnt = NULL; in init_scbs()
891 scbs[MAX_SCBS - 1].SCpnt = NULL; in init_scbs()
1006 struct scsi_cmnd *SCpnt; in wd7000_intr() local
1064 SCpnt = scb->SCpnt; in wd7000_intr()
1065 if (--(SCpnt->SCp.phase) <= 0) { /* all scbs are done */ in wd7000_intr()
1069 SCpnt->result = errstatus; in wd7000_intr()
1073 SCpnt->scsi_done(SCpnt); in wd7000_intr()
1084 static int wd7000_queuecommand_lck(struct scsi_cmnd *SCpnt, in wd7000_queuecommand_lck() argument
1089 unchar *cdb = (unchar *) SCpnt->cmnd; in wd7000_queuecommand_lck()
1093 Adapter *host = (Adapter *) SCpnt->device->host->hostdata; in wd7000_queuecommand_lck()
1095 cdblen = SCpnt->cmd_len; in wd7000_queuecommand_lck()
1096 idlun = ((SCpnt->device->id << 5) & 0xe0) | (SCpnt->device->lun & 7); in wd7000_queuecommand_lck()
1097 SCpnt->scsi_done = done; in wd7000_queuecommand_lck()
1098 SCpnt->SCp.phase = 1; in wd7000_queuecommand_lck()
1099 scb = alloc_scbs(SCpnt->device->host, 1); in wd7000_queuecommand_lck()
1104 scb->SCpnt = SCpnt; /* so we can find stuff later */ in wd7000_queuecommand_lck()
1105 SCpnt->host_scribble = (unchar *) scb; in wd7000_queuecommand_lck()
1108 nseg = scsi_sg_count(SCpnt); in wd7000_queuecommand_lck()
1120 scsi_for_each_sg(SCpnt, sg, nseg, i) { in wd7000_queuecommand_lck()
1127 struct scatterlist *sg = scsi_sglist(SCpnt); in wd7000_queuecommand_lck()
1130 any2scsi(scb->maxlen, scsi_bufflen(SCpnt)); in wd7000_queuecommand_lck()
1551 static int wd7000_abort(Scsi_Cmnd * SCpnt)
1553 Adapter *host = (Adapter *) SCpnt->device->host->hostdata;
1568 static int wd7000_host_reset(struct scsi_cmnd *SCpnt) in wd7000_host_reset() argument
1570 Adapter *host = (Adapter *) SCpnt->device->host->hostdata; in wd7000_host_reset()
1572 spin_lock_irq(SCpnt->device->host->host_lock); in wd7000_host_reset()
1575 spin_unlock_irq(SCpnt->device->host->host_lock); in wd7000_host_reset()
1581 spin_unlock_irq(SCpnt->device->host->host_lock); in wd7000_host_reset()