Lines Matching refs:SCpnt
248 SCtmp = ecbptr->SCpnt; in aha1740_intr_handle()
318 static int aha1740_queuecommand_lck(struct scsi_cmnd * SCpnt, in aha1740_queuecommand_lck() argument
322 unchar *cmd = (unchar *) SCpnt->cmnd; in aha1740_queuecommand_lck()
323 unchar target = scmd_id(SCpnt); in aha1740_queuecommand_lck()
324 struct aha1740_hostdata *host = HOSTDATA(SCpnt->device->host); in aha1740_queuecommand_lck()
332 SCpnt->result = 0; in aha1740_queuecommand_lck()
333 done(SCpnt); in aha1740_queuecommand_lck()
347 for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); in aha1740_queuecommand_lck()
352 spin_lock_irqsave(SCpnt->device->host->host_lock, flags); in aha1740_queuecommand_lck()
371 spin_unlock_irqrestore(SCpnt->device->host->host_lock, flags); in aha1740_queuecommand_lck()
377 host->ecb[ecbno].cdblen = SCpnt->cmd_len; /* SCSI Command in aha1740_queuecommand_lck()
387 memcpy(host->ecb[ecbno].cdb, cmd, SCpnt->cmd_len); in aha1740_queuecommand_lck()
389 SCpnt->host_scribble = dma_alloc_coherent (&host->edev->dev, in aha1740_queuecommand_lck()
392 if(SCpnt->host_scribble == NULL) { in aha1740_queuecommand_lck()
396 sgptr = (struct aha1740_sg *) SCpnt->host_scribble; in aha1740_queuecommand_lck()
399 nseg = scsi_dma_map(SCpnt); in aha1740_queuecommand_lck()
410 scsi_for_each_sg(SCpnt, sg, nseg, i) { in aha1740_queuecommand_lck()
425 host->ecb[ecbno].lun = SCpnt->device->lun; in aha1740_queuecommand_lck()
430 host->ecb[ecbno].senseptr = ecb_cpu_to_dma (SCpnt->device->host, in aha1740_queuecommand_lck()
432 host->ecb[ecbno].statusptr = ecb_cpu_to_dma (SCpnt->device->host, in aha1740_queuecommand_lck()
435 host->ecb[ecbno].SCpnt = SCpnt; in aha1740_queuecommand_lck()
461 unsigned int base = SCpnt->device->host->io_port; in aha1740_queuecommand_lck()
464 spin_lock_irqsave(SCpnt->device->host->host_lock, flags); in aha1740_queuecommand_lck()
473 outl (ecb_cpu_to_dma (SCpnt->device->host, host->ecb + ecbno), in aha1740_queuecommand_lck()
484 spin_unlock_irqrestore(SCpnt->device->host->host_lock, flags); in aha1740_queuecommand_lck()