Lines Matching defs:ofdev
3868 struct platform_device *ofdev;
3872 ofdev = container_of(adev->dev, struct platform_device, dev);
3873 np = ofdev->dev.of_node;
4004 static int ppc440spe_adma_probe(struct platform_device *ofdev)
4006 struct device_node *np = ofdev->dev.of_node;
4028 dev_err(&ofdev->dev, "Device node %pOF has missing "
4051 dev_err(&ofdev->dev, "failed to get memory resource\n");
4058 dev_driver_string(&ofdev->dev))) {
4059 dev_err(&ofdev->dev, "failed to request memory region %pR\n",
4077 adev->dma_desc_pool_virt = dma_alloc_coherent(&ofdev->dev,
4081 dev_err(&ofdev->dev, "failed to allocate %d bytes of coherent "
4088 dev_dbg(&ofdev->dev, "allocated descriptor pool virt 0x%p phys 0x%llx\n",
4093 dev_err(&ofdev->dev, "failed to ioremap regs!\n");
4121 adev->dev = &ofdev->dev;
4122 adev->common.dev = &ofdev->dev;
4124 platform_set_drvdata(ofdev, adev);
4158 chan->pdest = dma_map_page(&ofdev->dev, chan->pdest_page, 0,
4160 chan->qdest = dma_map_page(&ofdev->dev, chan->qdest_page, 0,
4170 dev_err(&ofdev->dev, "failed to allocate channel reference!\n");
4184 dev_err(&ofdev->dev, "failed to register dma device\n");
4201 dma_unmap_page(&ofdev->dev, chan->pdest,
4203 dma_unmap_page(&ofdev->dev, chan->qdest,
4233 static int ppc440spe_adma_remove(struct platform_device *ofdev)
4235 struct ppc440spe_adma_device *adev = platform_get_drvdata(ofdev);
4236 struct device_node *np = ofdev->dev.of_node;
4253 dma_unmap_page(&ofdev->dev, ppc440spe_chan->pdest,
4255 dma_unmap_page(&ofdev->dev, ppc440spe_chan->qdest,