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