Lines Matching refs:hdata
111 struct ip22_hostdata *hdata = host_to_hostdata(cmd->device->host);
115 pr_debug("dma_setup: datainp<%d> hcp<%p> ", datainp, hdata->cpu);
117 hdata->wh.dma_dir = datainp;
128 fill_hpc_entries(hdata, cmd, datainp);
133 hregs->ndptr = hdata->dma;
146 struct ip22_hostdata *hdata = host_to_hostdata(instance);
160 if (hdata->wh.dma_dir) {
166 dma_unmap_single(hdata->dev, scsi_pointer->dma_handle,
168 DMA_DIR(hdata->wh.dma_dir));
183 static inline void init_hpc_chain(struct ip22_hostdata *hdata)
185 struct hpc_chunk *hcp = (struct hpc_chunk *)hdata->cpu;
186 dma_addr_t dma = hdata->dma;
199 hcp->desc.pnext = hdata->dma;
227 struct ip22_hostdata *hdata;
243 hdata = host_to_hostdata(host);
244 hdata->dev = &pdev->dev;
245 hdata->cpu = dma_alloc_noncoherent(&pdev->dev, HPC_DMA_SIZE,
246 &hdata->dma, DMA_TO_DEVICE, GFP_KERNEL);
247 if (!hdata->cpu) {
254 init_hpc_chain(hdata);
259 hdata->wh.no_sync = 0;
260 hdata->wh.fast = 1;
261 hdata->wh.dma_mode = CTRL_BURST;
285 dma_free_noncoherent(&pdev->dev, HPC_DMA_SIZE, hdata->cpu, hdata->dma,
297 struct ip22_hostdata *hdata = (struct ip22_hostdata *) host->hostdata;
302 dma_free_noncoherent(&pdev->dev, HPC_DMA_SIZE, hdata->cpu, hdata->dma,