• Home
  • Raw
  • Download

Lines Matching refs:wh

23 	struct WD33C93_hostdata wh;  member
54 struct WD33C93_hostdata *wh = &hdata->wh; in dma_setup() local
62 if (addr & wh->dma_xfer_mask) { in dma_setup()
63 wh->dma_bounce_len = (cmd->SCp.this_residual + 511) & ~0x1ff; in dma_setup()
66 wh->dma_bounce_buffer = in dma_setup()
67 kmalloc(wh->dma_bounce_len, GFP_KERNEL); in dma_setup()
68 wh->dma_buffer_pool = BUF_SCSI_ALLOCED; in dma_setup()
72 !wh->dma_bounce_buffer) { in dma_setup()
73 wh->dma_bounce_buffer = in dma_setup()
74 amiga_chip_alloc(wh->dma_bounce_len, in dma_setup()
77 if (!wh->dma_bounce_buffer) { in dma_setup()
78 wh->dma_bounce_len = 0; in dma_setup()
82 wh->dma_buffer_pool = BUF_CHIP_ALLOCED; in dma_setup()
86 addr = virt_to_bus(wh->dma_bounce_buffer); in dma_setup()
88 if (addr & wh->dma_xfer_mask) { in dma_setup()
90 if (wh->dma_buffer_pool == BUF_SCSI_ALLOCED) { in dma_setup()
91 kfree(wh->dma_bounce_buffer); in dma_setup()
94 amiga_chip_free(wh->dma_bounce_buffer); in dma_setup()
97 wh->dma_bounce_buffer = in dma_setup()
98 amiga_chip_alloc(wh->dma_bounce_len, in dma_setup()
101 if (!wh->dma_bounce_buffer) { in dma_setup()
102 wh->dma_bounce_len = 0; in dma_setup()
106 addr = virt_to_bus(wh->dma_bounce_buffer); in dma_setup()
107 wh->dma_buffer_pool = BUF_CHIP_ALLOCED; in dma_setup()
112 memcpy(wh->dma_bounce_buffer, cmd->SCp.ptr, in dma_setup()
121 wh->dma_dir = dir_in; in dma_setup()
135 bank_mask = (~wh->dma_xfer_mask >> 18) & 0x01c0; in dma_setup()
150 struct WD33C93_hostdata *wh = &hdata->wh; in dma_stop() local
159 if (status && wh->dma_bounce_buffer) { in dma_stop()
160 if (wh->dma_dir && SCpnt) in dma_stop()
161 memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, in dma_stop()
164 if (wh->dma_buffer_pool == BUF_SCSI_ALLOCED) in dma_stop()
165 kfree(wh->dma_bounce_buffer); in dma_stop()
167 amiga_chip_free(wh->dma_bounce_buffer); in dma_stop()
169 wh->dma_bounce_buffer = NULL; in dma_stop()
170 wh->dma_bounce_len = 0; in dma_stop()
342 hdata->wh.dma_xfer_mask = gvp11_xfer_mask; in gvp11_probe()
344 hdata->wh.dma_xfer_mask = default_dma_xfer_mask; in gvp11_probe()
346 hdata->wh.no_sync = 0xff; in gvp11_probe()
347 hdata->wh.fast = 0; in gvp11_probe()
348 hdata->wh.dma_mode = CTRL_DMA; in gvp11_probe()