Lines Matching refs:wh
20 struct WD33C93_hostdata wh;
44 struct WD33C93_hostdata *wh = &hdata->wh;
51 wh->dma_bounce_len = (cmd->SCp.this_residual + 511) & ~0x1ff;
52 wh->dma_bounce_buffer = kmalloc(wh->dma_bounce_len,
56 if (!wh->dma_bounce_buffer) {
57 wh->dma_bounce_len = 0;
62 addr = virt_to_bus(wh->dma_bounce_buffer);
67 kfree(wh->dma_bounce_buffer);
68 wh->dma_bounce_buffer = NULL;
69 wh->dma_bounce_len = 0;
75 memcpy(wh->dma_bounce_buffer, cmd->SCp.ptr,
85 wh->dma_dir = dir_in;
110 struct WD33C93_hostdata *wh = &hdata->wh;
116 if (!wh->dma_dir)
123 if (wh->dma_dir) {
139 if (status && wh->dma_bounce_buffer) {
140 if (wh->dma_dir)
141 memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer,
143 kfree(wh->dma_bounce_buffer);
144 wh->dma_bounce_buffer = NULL;
145 wh->dma_bounce_len = 0;
207 hdata->wh.no_sync = 0xff;
208 hdata->wh.fast = 0;
209 hdata->wh.dma_mode = CTRL_DMA;