Lines Matching refs:SCpnt
467 struct scsi_cmnd *SCpnt;/* scsi_cmnd using this SCB */
886 scbs[i].SCpnt = NULL;
889 scbs[MAX_SCBS - 1].SCpnt = NULL;
1004 struct scsi_cmnd *SCpnt;
1062 SCpnt = scb->SCpnt;
1063 if (--(SCpnt->SCp.phase) <= 0) { /* all scbs are done */
1067 SCpnt->result = errstatus;
1071 SCpnt->scsi_done(SCpnt);
1082 static int wd7000_queuecommand(struct scsi_cmnd *SCpnt,
1087 unchar *cdb = (unchar *) SCpnt->cmnd;
1090 Adapter *host = (Adapter *) SCpnt->device->host->hostdata;
1092 cdblen = SCpnt->cmd_len;
1093 idlun = ((SCpnt->device->id << 5) & 0xe0) | (SCpnt->device->lun & 7);
1094 SCpnt->scsi_done = done;
1095 SCpnt->SCp.phase = 1;
1096 scb = alloc_scbs(SCpnt->device->host, 1);
1101 scb->SCpnt = SCpnt; /* so we can find stuff later */
1102 SCpnt->host_scribble = (unchar *) scb;
1105 if (SCpnt->use_sg) {
1106 struct scatterlist *sg = (struct scatterlist *) SCpnt->request_buffer;
1109 if (SCpnt->device->host->sg_tablesize == SG_NONE) {
1112 dprintk("Using scatter/gather with %d elements.\n", SCpnt->use_sg);
1117 any2scsi(scb->maxlen, SCpnt->use_sg * sizeof(Sgb));
1119 for (i = 0; i < SCpnt->use_sg; i++) {
1125 any2scsi(scb->dataptr, isa_virt_to_bus(SCpnt->request_buffer));
1126 any2scsi(scb->maxlen, SCpnt->request_bufflen);
1564 static int wd7000_host_reset(struct scsi_cmnd *SCpnt)
1566 Adapter *host = (Adapter *) SCpnt->device->host->hostdata;
1568 spin_unlock_irq(SCpnt->device->host->host_lock);
1571 spin_unlock_irq(SCpnt->device->host->host_lock);
1577 spin_unlock_irq(SCpnt->device->host->host_lock);