Lines Matching refs:ecb
77 struct ecb ecb[AHA1740_ECBS]; member
88 static inline struct ecb *ecb_dma_to_cpu (struct Scsi_Host *host, in ecb_dma_to_cpu()
96 return (struct ecb *)(((char *) hdata->ecb) + (unsigned int) offset); in ecb_dma_to_cpu()
104 offset = (char *) cpu - (char *) hdata->ecb; in ecb_cpu_to_dma()
214 struct ecb *ecbptr; in aha1740_intr_handle()
283 memset(ecbptr,0,sizeof(struct ecb)); in aha1740_intr_handle()
357 if (!host->ecb[ecbno].cmdw) in aha1740_queuecommand_lck()
364 if (host->ecb[ecbno].cmdw) in aha1740_queuecommand_lck()
367 host->ecb[ecbno].cmdw = AHA1740CMD_INIT; /* SCSI Initiator Command 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()
407 host->ecb[ecbno].sg = 1; /* SCSI Initiator Command in aha1740_queuecommand_lck()
414 host->ecb[ecbno].datalen = nseg * sizeof(struct aha1740_chain); in aha1740_queuecommand_lck()
415 host->ecb[ecbno].dataptr = sg_dma; in aha1740_queuecommand_lck()
422 host->ecb[ecbno].datalen = 0; in aha1740_queuecommand_lck()
423 host->ecb[ecbno].dataptr = 0; in aha1740_queuecommand_lck()
425 host->ecb[ecbno].lun = SCpnt->device->lun; in aha1740_queuecommand_lck()
426 host->ecb[ecbno].ses = 1; /* Suppress underrun errors */ in aha1740_queuecommand_lck()
427 host->ecb[ecbno].dir = direction; in aha1740_queuecommand_lck()
428 host->ecb[ecbno].ars = 1; /* Yes, get the sense on an error */ in aha1740_queuecommand_lck()
429 host->ecb[ecbno].senselen = 12; in aha1740_queuecommand_lck()
430 host->ecb[ecbno].senseptr = ecb_cpu_to_dma (SCpnt->device->host, in aha1740_queuecommand_lck()
431 host->ecb[ecbno].sense); in aha1740_queuecommand_lck()
432 host->ecb[ecbno].statusptr = ecb_cpu_to_dma (SCpnt->device->host, in aha1740_queuecommand_lck()
433 host->ecb[ecbno].status); in aha1740_queuecommand_lck()
434 host->ecb[ecbno].done = done; in aha1740_queuecommand_lck()
435 host->ecb[ecbno].SCpnt = SCpnt; in aha1740_queuecommand_lck()
440 for (i = 0; i < sizeof(host->ecb[ecbno]) - 10; i++) in aha1740_queuecommand_lck()
441 printk("%02x ", ((unchar *)&host->ecb[ecbno])[i]); in aha1740_queuecommand_lck()
473 outl (ecb_cpu_to_dma (SCpnt->device->host, host->ecb + ecbno), in aha1740_queuecommand_lck()
594 host->ecb_dma_addr = dma_map_single (&edev->dev, host->ecb, in aha1740_probe()
595 sizeof (host->ecb), in aha1740_probe()
623 sizeof (host->ecb), DMA_BIDIRECTIONAL); in aha1740_probe()
641 sizeof (host->ecb), DMA_BIDIRECTIONAL); in aha1740_remove()