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