Lines Matching defs:wh

27 	struct WD33C93_hostdata wh;
59 struct WD33C93_hostdata *wh = &hdata->wh;
76 if (addr & wh->dma_xfer_mask) {
83 wh->dma_bounce_len = (scsi_pointer->this_residual + 511) & ~0x1ff;
86 wh->dma_bounce_buffer =
87 kmalloc(wh->dma_bounce_len, GFP_KERNEL);
88 wh->dma_buffer_pool = BUF_SCSI_ALLOCED;
92 !wh->dma_bounce_buffer) {
93 wh->dma_bounce_buffer =
94 amiga_chip_alloc(wh->dma_bounce_len,
97 if (!wh->dma_bounce_buffer) {
98 wh->dma_bounce_len = 0;
102 wh->dma_buffer_pool = BUF_CHIP_ALLOCED;
107 memcpy(wh->dma_bounce_buffer, scsi_pointer->ptr,
111 if (wh->dma_buffer_pool == BUF_SCSI_ALLOCED) {
114 wh->dma_bounce_buffer,
115 wh->dma_bounce_len,
121 wh->dma_bounce_buffer);
126 if (addr & wh->dma_xfer_mask) {
132 if (wh->dma_buffer_pool == BUF_SCSI_ALLOCED) {
133 kfree(wh->dma_bounce_buffer);
136 amiga_chip_free(wh->dma_bounce_buffer);
139 wh->dma_bounce_buffer =
140 amiga_chip_alloc(wh->dma_bounce_len,
143 if (!wh->dma_bounce_buffer) {
144 wh->dma_bounce_len = 0;
150 memcpy(wh->dma_bounce_buffer, scsi_pointer->ptr,
154 addr = virt_to_phys(wh->dma_bounce_buffer);
156 wh->dma_buffer_pool = BUF_CHIP_ALLOCED;
167 wh->dma_dir = dir_in;
175 bank_mask = (~wh->dma_xfer_mask >> 18) & 0x01c0;
191 struct WD33C93_hostdata *wh = &hdata->wh;
199 if (wh->dma_buffer_pool == BUF_SCSI_ALLOCED)
202 DMA_DIR(wh->dma_dir));
205 if (status && wh->dma_bounce_buffer) {
206 if (wh->dma_dir && SCpnt)
207 memcpy(scsi_pointer->ptr, wh->dma_bounce_buffer,
210 if (wh->dma_buffer_pool == BUF_SCSI_ALLOCED)
211 kfree(wh->dma_bounce_buffer);
213 amiga_chip_free(wh->dma_bounce_buffer);
215 wh->dma_bounce_buffer = NULL;
216 wh->dma_bounce_len = 0;
378 hdata->wh.dma_xfer_mask = gvp11_xfer_mask;
387 hdata->wh.dma_xfer_mask = default_dma_xfer_mask;
389 hdata->wh.no_sync = 0xff;
390 hdata->wh.fast = 0;
391 hdata->wh.dma_mode = CTRL_DMA;