• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/

Lines Matching defs:ecb

78 	struct ecb ecb[AHA1740_ECBS];
89 static inline struct ecb *ecb_dma_to_cpu (struct Scsi_Host *host,
97 return (struct ecb *)(((char *) hdata->ecb) + (unsigned int) offset);
105 offset = (char *) cpu - (char *) hdata->ecb;
233 struct ecb *ecbptr;
299 memset(ecbptr,0,sizeof(struct ecb));
366 /* locate an available ecb */
372 if (!host->ecb[ecbno].cmdw)
379 if (host->ecb[ecbno].cmdw)
380 panic("Unable to find empty ecb for aha1740.\n");
382 host->ecb[ecbno].cmdw = AHA1740CMD_INIT; /* SCSI Initiator Command
392 host->ecb[ecbno].cdblen = SCpnt->cmd_len; /* SCSI Command
402 memcpy(host->ecb[ecbno].cdb, cmd, SCpnt->cmd_len);
422 host->ecb[ecbno].sg = 1; /* SCSI Initiator Command
429 host->ecb[ecbno].datalen = nseg * sizeof(struct aha1740_chain);
430 host->ecb[ecbno].dataptr = sg_dma;
437 host->ecb[ecbno].datalen = 0;
438 host->ecb[ecbno].dataptr = 0;
440 host->ecb[ecbno].lun = SCpnt->device->lun;
441 host->ecb[ecbno].ses = 1; /* Suppress underrun errors */
442 host->ecb[ecbno].dir = direction;
443 host->ecb[ecbno].ars = 1; /* Yes, get the sense on an error */
444 host->ecb[ecbno].senselen = 12;
445 host->ecb[ecbno].senseptr = ecb_cpu_to_dma (SCpnt->device->host,
446 host->ecb[ecbno].sense);
447 host->ecb[ecbno].statusptr = ecb_cpu_to_dma (SCpnt->device->host,
448 host->ecb[ecbno].status);
449 host->ecb[ecbno].done = done;
450 host->ecb[ecbno].SCpnt = SCpnt;
455 for (i = 0; i < sizeof(host->ecb[ecbno]) - 10; i++)
456 printk("%02x ", ((unchar *)&host->ecb[ecbno])[i]);
488 outl (ecb_cpu_to_dma (SCpnt->device->host, host->ecb + ecbno),
609 host->ecb_dma_addr = dma_map_single (&edev->dev, host->ecb,
610 sizeof (host->ecb),
639 sizeof (host->ecb), DMA_BIDIRECTIONAL);
657 sizeof (host->ecb), DMA_BIDIRECTIONAL);