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()
165 chip->irq = platform_get_irq(pdev, 0); in dw_probe()
169 mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in dw_probe()
174 err = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); in dw_probe()
180 pdata = dw_dma_parse_dt(pdev); in dw_probe()
191 pm_runtime_enable(&pdev->dev); in dw_probe()
197 platform_set_drvdata(pdev, chip); in dw_probe()
199 if (pdev->dev.of_node) { in dw_probe()
200 err = of_dma_controller_register(pdev->dev.of_node, in dw_probe()
203 dev_err(&pdev->dev, in dw_probe()
207 if (ACPI_HANDLE(&pdev->dev)) in dw_probe()
213 pm_runtime_disable(&pdev->dev); in dw_probe()
218 static int dw_remove(struct platform_device *pdev) in dw_remove() argument
220 struct dw_dma_chip *chip = platform_get_drvdata(pdev); in dw_remove()
222 if (pdev->dev.of_node) in dw_remove()
223 of_dma_controller_free(pdev->dev.of_node); in dw_remove()
226 pm_runtime_disable(&pdev->dev); in dw_remove()
232 static void dw_shutdown(struct platform_device *pdev) in dw_shutdown() argument
234 struct dw_dma_chip *chip = platform_get_drvdata(pdev); in dw_shutdown()
260 struct platform_device *pdev = to_platform_device(dev); in dw_suspend_late() local
261 struct dw_dma_chip *chip = platform_get_drvdata(pdev); in dw_suspend_late()
271 struct platform_device *pdev = to_platform_device(dev); in dw_resume_early() local
272 struct dw_dma_chip *chip = platform_get_drvdata(pdev); in dw_resume_early()