Lines Matching refs:wh
22 struct WD33C93_hostdata wh; member
46 struct WD33C93_hostdata *wh = &hdata->wh; in dma_setup() local
53 wh->dma_bounce_len = (cmd->SCp.this_residual + 511) & ~0x1ff; in dma_setup()
54 wh->dma_bounce_buffer = kmalloc(wh->dma_bounce_len, in dma_setup()
58 if (!wh->dma_bounce_buffer) { in dma_setup()
59 wh->dma_bounce_len = 0; in dma_setup()
64 addr = virt_to_bus(wh->dma_bounce_buffer); in dma_setup()
69 kfree(wh->dma_bounce_buffer); in dma_setup()
70 wh->dma_bounce_buffer = NULL; in dma_setup()
71 wh->dma_bounce_len = 0; in dma_setup()
77 memcpy(wh->dma_bounce_buffer, cmd->SCp.ptr, in dma_setup()
87 wh->dma_dir = dir_in; in dma_setup()
112 struct WD33C93_hostdata *wh = &hdata->wh; in dma_stop() local
118 if (!wh->dma_dir) in dma_stop()
125 if (wh->dma_dir) { in dma_stop()
141 if (status && wh->dma_bounce_buffer) { in dma_stop()
142 if (wh->dma_dir) in dma_stop()
143 memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, in dma_stop()
145 kfree(wh->dma_bounce_buffer); in dma_stop()
146 wh->dma_bounce_buffer = NULL; in dma_stop()
147 wh->dma_bounce_len = 0; in dma_stop()
195 hdata->wh.no_sync = 0xff; in a2091_probe()
196 hdata->wh.fast = 0; in a2091_probe()
197 hdata->wh.dma_mode = CTRL_DMA; in a2091_probe()