Lines Matching defs:dev
245 struct device *dev;
329 return &chan->dev->device;
382 pm_runtime_mark_last_busy(atxdmac->dev);
383 pm_runtime_put_autosuspend(atxdmac->dev);
397 ret = pm_runtime_resume_and_get(atxdmac->dev);
410 ret = pm_runtime_resume_and_get(atxdmac->dev);
416 pm_runtime_mark_last_busy(atxdmac->dev);
417 pm_runtime_put_autosuspend(atxdmac->dev);
428 ret = pm_runtime_resume_and_get(atxdmac->dev);
449 pm_runtime_mark_last_busy(atxdmac->dev);
450 pm_runtime_put_autosuspend(atxdmac->dev);
461 ret = pm_runtime_resume_and_get(atxdmac->dev);
641 struct device *dev = atxdmac->dma.dev;
644 dev_err(dev, "dma phandler args: bad number of args\n");
650 dev_err(dev, "can't get a dma channel\n");
658 dev_dbg(dev, "chan dt cfg: memif=%u perif=%u perid=%u\n",
1556 pm_status = pm_runtime_resume_and_get(atxdmac->dev);
1677 pm_runtime_mark_last_busy(atxdmac->dev);
1678 pm_runtime_put_autosuspend(atxdmac->dev);
1727 ret = pm_runtime_resume_and_get(atxdmac->dev);
1759 pm_runtime_mark_last_busy(atxdmac->dev);
1760 pm_runtime_put_autosuspend(atxdmac->dev);
1823 pm_runtime_mark_last_busy(atxdmac->dev);
1824 pm_runtime_put_autosuspend(atxdmac->dev);
1840 dev_vdbg(atxdmac->dma.dev,
1856 dev_vdbg(atxdmac->dma.dev,
1943 ret = pm_runtime_resume_and_get(atxdmac->dev);
1955 pm_runtime_mark_last_busy(atxdmac->dev);
1956 pm_runtime_put_autosuspend(atxdmac->dev);
1981 ret = pm_runtime_resume_and_get(atxdmac->dev);
1999 pm_runtime_mark_last_busy(atxdmac->dev);
2000 pm_runtime_put_autosuspend(atxdmac->dev);
2015 ret = pm_runtime_resume_and_get(atxdmac->dev);
2035 pm_runtime_put_autosuspend(atxdmac->dev);
2036 pm_runtime_mark_last_busy(atxdmac->dev);
2044 pm_runtime_mark_last_busy(atxdmac->dev);
2045 pm_runtime_put_autosuspend(atxdmac->dev);
2114 if (!of_property_read_u32(pdev->dev.of_node, "dma-requests",
2116 dev_info(&pdev->dev, "controller in mem2mem mode.\n");
2129 static int __maybe_unused atmel_xdmac_prepare(struct device *dev)
2131 struct at_xdmac *atxdmac = dev_get_drvdata(dev);
2144 static int __maybe_unused atmel_xdmac_suspend(struct device *dev)
2146 struct at_xdmac *atxdmac = dev_get_drvdata(dev);
2150 ret = pm_runtime_resume_and_get(atxdmac->dev);
2174 pm_runtime_mark_last_busy(atxdmac->dev);
2175 pm_runtime_put_noidle(atxdmac->dev);
2181 static int __maybe_unused atmel_xdmac_resume(struct device *dev)
2183 struct at_xdmac *atxdmac = dev_get_drvdata(dev);
2186 struct platform_device *pdev = container_of(dev, struct platform_device, dev);
2193 pm_runtime_get_noresume(atxdmac->dev);
2238 pm_runtime_mark_last_busy(atxdmac->dev);
2239 pm_runtime_put_autosuspend(atxdmac->dev);
2244 static int __maybe_unused atmel_xdmac_runtime_suspend(struct device *dev)
2246 struct at_xdmac *atxdmac = dev_get_drvdata(dev);
2253 static int __maybe_unused atmel_xdmac_runtime_resume(struct device *dev)
2255 struct at_xdmac *atxdmac = dev_get_drvdata(dev);
2283 dev_err(&pdev->dev, "invalid number of channels (%u)\n",
2288 atxdmac = devm_kzalloc(&pdev->dev,
2292 dev_err(&pdev->dev, "can't allocate at_xdmac structure\n");
2298 atxdmac->dev = &pdev->dev;
2300 atxdmac->layout = of_device_get_match_data(&pdev->dev);
2304 atxdmac->clk = devm_clk_get(&pdev->dev, "dma_clk");
2306 dev_err(&pdev->dev, "can't get dma_clk\n");
2310 /* Do not use dev res to prevent races with tasklet */
2313 dev_err(&pdev->dev, "can't request irq\n");
2319 dev_err(&pdev->dev, "can't prepare or enable clock\n");
2324 dmam_pool_create(dev_name(&pdev->dev), &pdev->dev,
2327 dev_err(&pdev->dev, "no memory for descriptors dma pool\n");
2343 atxdmac->dma.dev = &pdev->dev;
2365 pm_runtime_set_autosuspend_delay(&pdev->dev, 500);
2366 pm_runtime_use_autosuspend(&pdev->dev);
2367 pm_runtime_set_active(&pdev->dev);
2368 pm_runtime_enable(&pdev->dev);
2369 pm_runtime_get_noresume(&pdev->dev);
2399 dev_err(&pdev->dev, "fail to register DMA engine device\n");
2403 ret = of_dma_controller_register(pdev->dev.of_node,
2406 dev_err(&pdev->dev, "could not register of dma controller\n");
2410 dev_info(&pdev->dev, "%d channels, mapped at 0x%p\n",
2415 pm_runtime_mark_last_busy(&pdev->dev);
2416 pm_runtime_put_autosuspend(&pdev->dev);
2423 pm_runtime_put_noidle(&pdev->dev);
2424 pm_runtime_disable(&pdev->dev);
2425 pm_runtime_set_suspended(&pdev->dev);
2426 pm_runtime_dont_use_autosuspend(&pdev->dev);
2440 of_dma_controller_free(pdev->dev.of_node);
2442 pm_runtime_disable(atxdmac->dev);
2443 pm_runtime_set_suspended(&pdev->dev);
2444 pm_runtime_dont_use_autosuspend(&pdev->dev);