Lines Matching refs:dma
144 struct dw_dma_chip *dma;
197 #include <linux/platform_data/dma-dw.h>
198 #include <linux/dma/dw.h>
232 dev_err(hsdev->dev, "%s: dma channel unavailable\n",
246 hsdev->dma = devm_kzalloc(&pdev->dev, sizeof(*hsdev->dma), GFP_KERNEL);
247 if (!hsdev->dma)
250 hsdev->dma->dev = &pdev->dev;
251 hsdev->dma->id = pdev->id;
254 hsdev->dma->irq = irq_of_parse_and_map(np, 1);
255 if (hsdev->dma->irq == NO_IRQ) {
262 hsdev->dma->regs = devm_ioremap_resource(&pdev->dev, res);
263 if (IS_ERR(hsdev->dma->regs))
264 return PTR_ERR(hsdev->dma->regs);
267 return dw_dma_probe(hsdev->dma);
272 if (!hsdev->dma)
275 dw_dma_remove(hsdev->dma);
763 "%s tag=%u cmd=0x%02x dma dir=%s proto=%s dmacr=0x%08x\n",
865 hsdevp->chan = dma_request_chan(dev, "sata-dma");
867 dev_err(dev, "failed to allocate dma channel: %ld\n",