Lines Matching refs:hostdata
46 #define NCR5380_read(reg) in_8(hostdata->io + (reg))
47 #define NCR5380_write(reg, value) out_8(hostdata->io + (reg), value)
220 static int sun3scsi_dma_setup(struct NCR5380_hostdata *hostdata, in sun3scsi_dma_setup() argument
273 shost_printk(KERN_ERR, hostdata->host, in sun3scsi_dma_setup()
276 NCR5380_dprint(NDEBUG_DMA, hostdata->host); in sun3scsi_dma_setup()
311 static int sun3scsi_dma_count(struct NCR5380_hostdata *hostdata, in sun3scsi_dma_count() argument
317 static inline int sun3scsi_dma_recv_setup(struct NCR5380_hostdata *hostdata, in sun3scsi_dma_recv_setup() argument
320 return sun3scsi_dma_setup(hostdata, data, count, 0); in sun3scsi_dma_recv_setup()
323 static inline int sun3scsi_dma_send_setup(struct NCR5380_hostdata *hostdata, in sun3scsi_dma_send_setup() argument
326 return sun3scsi_dma_setup(hostdata, data, count, 1); in sun3scsi_dma_send_setup()
329 static int sun3scsi_dma_residual(struct NCR5380_hostdata *hostdata) in sun3scsi_dma_residual() argument
334 static int sun3scsi_dma_xfer_len(struct NCR5380_hostdata *hostdata, in sun3scsi_dma_xfer_len() argument
514 struct NCR5380_hostdata *hostdata; in sun3_scsi_probe() local
589 hostdata = shost_priv(instance); in sun3_scsi_probe()
590 hostdata->base = mem->start; in sun3_scsi_probe()
591 hostdata->io = ioaddr; in sun3_scsi_probe()
647 struct NCR5380_hostdata *hostdata = shost_priv(instance); in sun3_scsi_remove() local
648 void __iomem *ioaddr = hostdata->io; in sun3_scsi_remove()