Lines Matching refs:SCpnt
252 SCtmp = ecbptr->SCpnt; in aha1740_intr_handle()
322 static int aha1740_queuecommand_lck(struct scsi_cmnd *SCpnt) in aha1740_queuecommand_lck() argument
326 unchar *cmd = (unchar *) SCpnt->cmnd; in aha1740_queuecommand_lck()
327 unchar target = scmd_id(SCpnt); in aha1740_queuecommand_lck()
328 struct aha1740_hostdata *host = HOSTDATA(SCpnt->device->host); in aha1740_queuecommand_lck()
336 SCpnt->result = 0; in aha1740_queuecommand_lck()
337 done(SCpnt); in aha1740_queuecommand_lck()
351 for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); in aha1740_queuecommand_lck()
356 spin_lock_irqsave(SCpnt->device->host->host_lock, flags); in aha1740_queuecommand_lck()
375 spin_unlock_irqrestore(SCpnt->device->host->host_lock, flags); in aha1740_queuecommand_lck()
381 host->ecb[ecbno].cdblen = SCpnt->cmd_len; /* SCSI Command in aha1740_queuecommand_lck()
391 memcpy(host->ecb[ecbno].cdb, cmd, SCpnt->cmd_len); in aha1740_queuecommand_lck()
393 SCpnt->host_scribble = dma_alloc_coherent (&host->edev->dev, in aha1740_queuecommand_lck()
396 if(SCpnt->host_scribble == NULL) { in aha1740_queuecommand_lck()
400 sgptr = (struct aha1740_sg *) SCpnt->host_scribble; in aha1740_queuecommand_lck()
403 nseg = scsi_dma_map(SCpnt); in aha1740_queuecommand_lck()
414 scsi_for_each_sg(SCpnt, sg, nseg, i) { in aha1740_queuecommand_lck()
429 host->ecb[ecbno].lun = SCpnt->device->lun; in aha1740_queuecommand_lck()
434 host->ecb[ecbno].senseptr = ecb_cpu_to_dma (SCpnt->device->host, in aha1740_queuecommand_lck()
436 host->ecb[ecbno].statusptr = ecb_cpu_to_dma (SCpnt->device->host, in aha1740_queuecommand_lck()
439 host->ecb[ecbno].SCpnt = SCpnt; in aha1740_queuecommand_lck()
465 unsigned int base = SCpnt->device->host->io_port; in aha1740_queuecommand_lck()
468 spin_lock_irqsave(SCpnt->device->host->host_lock, flags); in aha1740_queuecommand_lck()
477 outl (ecb_cpu_to_dma (SCpnt->device->host, host->ecb + ecbno), in aha1740_queuecommand_lck()
488 spin_unlock_irqrestore(SCpnt->device->host->host_lock, flags); in aha1740_queuecommand_lck()