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