Lines Matching refs:hostdata
17 #define priv(host) ((struct NCR5380_hostdata *)(host)->hostdata)
18 #define NCR5380_read(reg) cumanascsi_read(hostdata, reg)
19 #define NCR5380_write(reg, value) cumanascsi_write(hostdata, reg, value)
44 static inline int cumanascsi_pwrite(struct NCR5380_hostdata *hostdata, in cumanascsi_pwrite() argument
48 u8 __iomem *base = hostdata->io; in cumanascsi_pwrite()
49 u8 __iomem *dma = hostdata->pdma_io + 0x2000; in cumanascsi_pwrite()
104 writeb(hostdata->ctrl | 0x40, base + CTRL); in cumanascsi_pwrite()
111 static inline int cumanascsi_pread(struct NCR5380_hostdata *hostdata, in cumanascsi_pread() argument
115 u8 __iomem *base = hostdata->io; in cumanascsi_pread()
116 u8 __iomem *dma = hostdata->pdma_io + 0x2000; in cumanascsi_pread()
170 writeb(hostdata->ctrl | 0x40, base + CTRL); in cumanascsi_pread()
177 static int cumanascsi_dma_xfer_len(struct NCR5380_hostdata *hostdata, in cumanascsi_dma_xfer_len() argument
183 static u8 cumanascsi_read(struct NCR5380_hostdata *hostdata, in cumanascsi_read() argument
186 u8 __iomem *base = hostdata->io; in cumanascsi_read()
193 hostdata->ctrl = 0x40; in cumanascsi_read()
199 static void cumanascsi_write(struct NCR5380_hostdata *hostdata, in cumanascsi_write() argument
202 u8 __iomem *base = hostdata->io; in cumanascsi_write()
208 hostdata->ctrl = 0x40; in cumanascsi_write()