• Home
  • Raw
  • Download

Lines Matching refs:hdata

105 	struct ip22_hostdata *hdata = host_to_hostdata(cmd->device->host);  in dma_setup()  local
109 pr_debug("dma_setup: datainp<%d> hcp<%p> ", datainp, hdata->cpu); in dma_setup()
111 hdata->wh.dma_dir = datainp; in dma_setup()
122 fill_hpc_entries(hdata, cmd, datainp); in dma_setup()
127 hregs->ndptr = hdata->dma; in dma_setup()
139 struct ip22_hostdata *hdata = host_to_hostdata(instance); in dma_stop() local
153 if (hdata->wh.dma_dir) { in dma_stop()
159 dma_unmap_single(hdata->dev, SCpnt->SCp.dma_handle, in dma_stop()
161 DMA_DIR(hdata->wh.dma_dir)); in dma_stop()
176 static inline void init_hpc_chain(struct ip22_hostdata *hdata) in init_hpc_chain() argument
178 struct hpc_chunk *hcp = (struct hpc_chunk *)hdata->cpu; in init_hpc_chain()
179 dma_addr_t dma = hdata->dma; in init_hpc_chain()
192 hcp->desc.pnext = hdata->dma; in init_hpc_chain()
234 struct ip22_hostdata *hdata; in sgiwd93_probe() local
250 hdata = host_to_hostdata(host); in sgiwd93_probe()
251 hdata->dev = &pdev->dev; in sgiwd93_probe()
252 hdata->cpu = dma_alloc_noncoherent(&pdev->dev, HPC_DMA_SIZE, in sgiwd93_probe()
253 &hdata->dma, GFP_KERNEL); in sgiwd93_probe()
254 if (!hdata->cpu) { in sgiwd93_probe()
261 init_hpc_chain(hdata); in sgiwd93_probe()
266 hdata->wh.no_sync = 0; in sgiwd93_probe()
267 hdata->wh.fast = 1; in sgiwd93_probe()
268 hdata->wh.dma_mode = CTRL_BURST; in sgiwd93_probe()
292 dma_free_noncoherent(&pdev->dev, HPC_DMA_SIZE, hdata->cpu, hdata->dma); in sgiwd93_probe()
303 struct ip22_hostdata *hdata = (struct ip22_hostdata *) host->hostdata; in sgiwd93_remove() local
308 dma_free_noncoherent(&pdev->dev, HPC_DMA_SIZE, hdata->cpu, hdata->dma); in sgiwd93_remove()