Lines Matching refs:pdev

101 dw_dma_parse_dt(struct platform_device *pdev)  in dw_dma_parse_dt()  argument
103 struct device_node *np = pdev->dev.of_node; in dw_dma_parse_dt()
108 dev_err(&pdev->dev, "Missing DT data\n"); in dw_dma_parse_dt()
112 pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); in dw_dma_parse_dt()
147 dw_dma_parse_dt(struct platform_device *pdev) in dw_dma_parse_dt() argument
153 static int dw_probe(struct platform_device *pdev) in dw_probe() argument
156 struct device *dev = &pdev->dev; in dw_probe()
166 chip->irq = platform_get_irq(pdev, 0); in dw_probe()
170 mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in dw_probe()
175 err = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); in dw_probe()
181 pdata = dw_dma_parse_dt(pdev); in dw_probe()
197 pm_runtime_enable(&pdev->dev); in dw_probe()
203 platform_set_drvdata(pdev, chip); in dw_probe()
205 if (pdev->dev.of_node) { in dw_probe()
206 err = of_dma_controller_register(pdev->dev.of_node, in dw_probe()
209 dev_err(&pdev->dev, in dw_probe()
213 if (ACPI_HANDLE(&pdev->dev)) in dw_probe()
219 pm_runtime_disable(&pdev->dev); in dw_probe()
224 static int dw_remove(struct platform_device *pdev) in dw_remove() argument
226 struct dw_dma_chip *chip = platform_get_drvdata(pdev); in dw_remove()
228 if (pdev->dev.of_node) in dw_remove()
229 of_dma_controller_free(pdev->dev.of_node); in dw_remove()
232 pm_runtime_disable(&pdev->dev); in dw_remove()
238 static void dw_shutdown(struct platform_device *pdev) in dw_shutdown() argument
240 struct dw_dma_chip *chip = platform_get_drvdata(pdev); in dw_shutdown()
275 struct platform_device *pdev = to_platform_device(dev); in dw_suspend_late() local
276 struct dw_dma_chip *chip = platform_get_drvdata(pdev); in dw_suspend_late()
286 struct platform_device *pdev = to_platform_device(dev); in dw_resume_early() local
287 struct dw_dma_chip *chip = platform_get_drvdata(pdev); in dw_resume_early()