Lines Matching defs:ofdev
3871 struct platform_device *ofdev;
3875 ofdev = container_of(adev->dev, struct platform_device, dev);
3876 np = ofdev->dev.of_node;
4007 static int ppc440spe_adma_probe(struct platform_device *ofdev)
4009 struct device_node *np = ofdev->dev.of_node;
4031 dev_err(&ofdev->dev, "Device node %pOF has missing "
4054 dev_err(&ofdev->dev, "failed to get memory resource\n");
4061 dev_driver_string(&ofdev->dev))) {
4062 dev_err(&ofdev->dev, "failed to request memory region %pR\n",
4080 adev->dma_desc_pool_virt = dma_alloc_coherent(&ofdev->dev,
4084 dev_err(&ofdev->dev, "failed to allocate %d bytes of coherent "
4091 dev_dbg(&ofdev->dev, "allocated descriptor pool virt 0x%p phys 0x%llx\n",
4096 dev_err(&ofdev->dev, "failed to ioremap regs!\n");
4124 adev->dev = &ofdev->dev;
4125 adev->common.dev = &ofdev->dev;
4127 platform_set_drvdata(ofdev, adev);
4161 chan->pdest = dma_map_page(&ofdev->dev, chan->pdest_page, 0,
4163 chan->qdest = dma_map_page(&ofdev->dev, chan->qdest_page, 0,
4173 dev_err(&ofdev->dev, "failed to allocate channel reference!\n");
4187 dev_err(&ofdev->dev, "failed to register dma device\n");
4204 dma_unmap_page(&ofdev->dev, chan->pdest,
4206 dma_unmap_page(&ofdev->dev, chan->qdest,
4236 static int ppc440spe_adma_remove(struct platform_device *ofdev)
4238 struct ppc440spe_adma_device *adev = platform_get_drvdata(ofdev);
4239 struct device_node *np = ofdev->dev.of_node;
4256 dma_unmap_page(&ofdev->dev, ppc440spe_chan->pdest,
4258 dma_unmap_page(&ofdev->dev, ppc440spe_chan->qdest,