Lines Matching defs:wh
21 struct WD33C93_hostdata wh;
45 struct WD33C93_hostdata *wh = &hdata->wh;
52 wh->dma_bounce_len = (cmd->SCp.this_residual + 511) & ~0x1ff;
53 wh->dma_bounce_buffer = kmalloc(wh->dma_bounce_len,
57 if (!wh->dma_bounce_buffer) {
58 wh->dma_bounce_len = 0;
63 addr = virt_to_bus(wh->dma_bounce_buffer);
68 kfree(wh->dma_bounce_buffer);
69 wh->dma_bounce_buffer = NULL;
70 wh->dma_bounce_len = 0;
76 memcpy(wh->dma_bounce_buffer, cmd->SCp.ptr,
86 wh->dma_dir = dir_in;
111 struct WD33C93_hostdata *wh = &hdata->wh;
117 if (!wh->dma_dir)
124 if (wh->dma_dir) {
140 if (status && wh->dma_bounce_buffer) {
141 if (wh->dma_dir)
142 memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer,
144 kfree(wh->dma_bounce_buffer);
145 wh->dma_bounce_buffer = NULL;
146 wh->dma_bounce_len = 0;
194 hdata->wh.no_sync = 0xff;
195 hdata->wh.fast = 0;
196 hdata->wh.dma_mode = CTRL_DMA;