Lines Matching refs:wh
22 struct WD33C93_hostdata wh; member
49 struct WD33C93_hostdata *wh = &hdata->wh; in dma_setup() local
61 wh->dma_bounce_len = (cmd->SCp.this_residual + 511) & ~0x1ff; in dma_setup()
62 wh->dma_bounce_buffer = kmalloc(wh->dma_bounce_len, in dma_setup()
66 if (!wh->dma_bounce_buffer) { in dma_setup()
67 wh->dma_bounce_len = 0; in dma_setup()
73 memcpy(wh->dma_bounce_buffer, cmd->SCp.ptr, in dma_setup()
77 addr = virt_to_bus(wh->dma_bounce_buffer); in dma_setup()
85 wh->dma_dir = dir_in; in dma_setup()
113 struct WD33C93_hostdata *wh = &hdata->wh; in dma_stop() local
119 if (!wh->dma_dir) in dma_stop()
126 if (wh->dma_dir) { in dma_stop()
149 if (status && wh->dma_bounce_buffer) { in dma_stop()
151 if (wh->dma_dir && SCpnt) in dma_stop()
152 memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, in dma_stop()
154 kfree(wh->dma_bounce_buffer); in dma_stop()
155 wh->dma_bounce_buffer = NULL; in dma_stop()
156 wh->dma_bounce_len = 0; in dma_stop()
158 kfree(wh->dma_bounce_buffer); in dma_stop()
159 wh->dma_bounce_buffer = NULL; in dma_stop()
160 wh->dma_bounce_len = 0; in dma_stop()
213 hdata->wh.no_sync = 0xff; in amiga_a3000_scsi_probe()
214 hdata->wh.fast = 0; in amiga_a3000_scsi_probe()
215 hdata->wh.dma_mode = CTRL_DMA; in amiga_a3000_scsi_probe()