Lines Matching refs:hdata
105 struct ip22_hostdata *hdata = host_to_hostdata(cmd->device->host);
109 pr_debug("dma_setup: datainp<%d> hcp<%p> ", datainp, hdata->cpu);
111 hdata->wh.dma_dir = datainp;
122 fill_hpc_entries(hdata, cmd, datainp);
127 hregs->ndptr = hdata->dma;
139 struct ip22_hostdata *hdata = host_to_hostdata(instance);
153 if (hdata->wh.dma_dir) {
159 dma_unmap_single(hdata->dev, SCpnt->SCp.dma_handle,
161 DMA_DIR(hdata->wh.dma_dir));
176 static inline void init_hpc_chain(struct ip22_hostdata *hdata)
178 struct hpc_chunk *hcp = (struct hpc_chunk *)hdata->cpu;
179 dma_addr_t dma = hdata->dma;
192 hcp->desc.pnext = hdata->dma;
219 struct ip22_hostdata *hdata;
235 hdata = host_to_hostdata(host);
236 hdata->dev = &pdev->dev;
237 hdata->cpu = dma_alloc_noncoherent(&pdev->dev, HPC_DMA_SIZE,
238 &hdata->dma, DMA_TO_DEVICE, GFP_KERNEL);
239 if (!hdata->cpu) {
246 init_hpc_chain(hdata);
251 hdata->wh.no_sync = 0;
252 hdata->wh.fast = 1;
253 hdata->wh.dma_mode = CTRL_BURST;
277 dma_free_noncoherent(&pdev->dev, HPC_DMA_SIZE, hdata->cpu, hdata->dma,
289 struct ip22_hostdata *hdata = (struct ip22_hostdata *) host->hostdata;
294 dma_free_noncoherent(&pdev->dev, HPC_DMA_SIZE, hdata->cpu, hdata->dma,