Lines Matching refs:wh
25 struct WD33C93_hostdata wh; member
54 struct WD33C93_hostdata *wh = &hdata->wh; in dma_setup() local
76 wh->dma_bounce_len = (scsi_pointer->this_residual + 511) & ~0x1ff; in dma_setup()
77 wh->dma_bounce_buffer = kmalloc(wh->dma_bounce_len, in dma_setup()
81 if (!wh->dma_bounce_buffer) { in dma_setup()
82 wh->dma_bounce_len = 0; in dma_setup()
88 memcpy(wh->dma_bounce_buffer, scsi_pointer->ptr, in dma_setup()
93 addr = dma_map_single(hdata->dev, wh->dma_bounce_buffer, in dma_setup()
94 wh->dma_bounce_len, DMA_DIR(dir_in)); in dma_setup()
98 wh->dma_bounce_buffer); in dma_setup()
105 kfree(wh->dma_bounce_buffer); in dma_setup()
106 wh->dma_bounce_buffer = NULL; in dma_setup()
107 wh->dma_bounce_len = 0; in dma_setup()
119 wh->dma_dir = dir_in; in dma_setup()
140 struct WD33C93_hostdata *wh = &hdata->wh; in dma_stop() local
146 if (!wh->dma_dir) in dma_stop()
153 if (wh->dma_dir) { in dma_stop()
170 DMA_DIR(wh->dma_dir)); in dma_stop()
173 if (status && wh->dma_bounce_buffer) { in dma_stop()
174 if (wh->dma_dir) in dma_stop()
175 memcpy(scsi_pointer->ptr, wh->dma_bounce_buffer, in dma_stop()
177 kfree(wh->dma_bounce_buffer); in dma_stop()
178 wh->dma_bounce_buffer = NULL; in dma_stop()
179 wh->dma_bounce_len = 0; in dma_stop()
234 hdata->wh.no_sync = 0xff; in a2091_probe()
235 hdata->wh.fast = 0; in a2091_probe()
236 hdata->wh.dma_mode = CTRL_DMA; in a2091_probe()