Lines Matching refs:pdev

72 	struct platform_device *pdev = of_find_device_by_node(ofdma->of_node);  in ti_am335x_xbar_route_allocate()  local
73 struct ti_am335x_xbar_data *xbar = platform_get_drvdata(pdev); in ti_am335x_xbar_route_allocate()
80 dev_err(&pdev->dev, "Invalid XBAR event number: %d\n", in ti_am335x_xbar_route_allocate()
86 dev_err(&pdev->dev, "Invalid DMA request line number: %d\n", in ti_am335x_xbar_route_allocate()
94 dev_err(&pdev->dev, "Can't get DMA master\n"); in ti_am335x_xbar_route_allocate()
110 dev_dbg(&pdev->dev, "Mapping XBAR event%u to DMA%u\n", in ti_am335x_xbar_route_allocate()
123 static int ti_am335x_xbar_probe(struct platform_device *pdev) in ti_am335x_xbar_probe() argument
125 struct device_node *node = pdev->dev.of_node; in ti_am335x_xbar_probe()
136 xbar = devm_kzalloc(&pdev->dev, sizeof(*xbar), GFP_KERNEL); in ti_am335x_xbar_probe()
142 dev_err(&pdev->dev, "Can't get DMA master node\n"); in ti_am335x_xbar_probe()
148 dev_err(&pdev->dev, "DMA master is not supported\n"); in ti_am335x_xbar_probe()
154 dev_info(&pdev->dev, in ti_am335x_xbar_probe()
162 dev_info(&pdev->dev, in ti_am335x_xbar_probe()
168 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ti_am335x_xbar_probe()
169 iomem = devm_ioremap_resource(&pdev->dev, res); in ti_am335x_xbar_probe()
175 xbar->dmarouter.dev = &pdev->dev; in ti_am335x_xbar_probe()
178 platform_set_drvdata(pdev, xbar); in ti_am335x_xbar_probe()
235 struct platform_device *pdev = of_find_device_by_node(ofdma->of_node); in ti_dra7_xbar_route_allocate() local
236 struct ti_dra7_xbar_data *xbar = platform_get_drvdata(pdev); in ti_dra7_xbar_route_allocate()
240 dev_err(&pdev->dev, "Invalid XBAR request number: %d\n", in ti_dra7_xbar_route_allocate()
248 dev_err(&pdev->dev, "Can't get DMA master\n"); in ti_dra7_xbar_route_allocate()
264 dev_dbg(&pdev->dev, "Mapping XBAR%u to DMA%d\n", in ti_dra7_xbar_route_allocate()
284 static int ti_dra7_xbar_probe(struct platform_device *pdev) in ti_dra7_xbar_probe() argument
286 struct device_node *node = pdev->dev.of_node; in ti_dra7_xbar_probe()
298 xbar = devm_kzalloc(&pdev->dev, sizeof(*xbar), GFP_KERNEL); in ti_dra7_xbar_probe()
306 dev_err(&pdev->dev, "Can't get DMA master node\n"); in ti_dra7_xbar_probe()
312 dev_err(&pdev->dev, "DMA master is not supported\n"); in ti_dra7_xbar_probe()
318 dev_info(&pdev->dev, in ti_dra7_xbar_probe()
326 dev_info(&pdev->dev, in ti_dra7_xbar_probe()
335 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ti_dra7_xbar_probe()
336 iomem = devm_ioremap_resource(&pdev->dev, res); in ti_dra7_xbar_probe()
342 xbar->dmarouter.dev = &pdev->dev; in ti_dra7_xbar_probe()
346 platform_set_drvdata(pdev, xbar); in ti_dra7_xbar_probe()
363 static int ti_dma_xbar_probe(struct platform_device *pdev) in ti_dma_xbar_probe() argument
368 match = of_match_node(ti_dma_xbar_match, pdev->dev.of_node); in ti_dma_xbar_probe()
374 ret = ti_dra7_xbar_probe(pdev); in ti_dma_xbar_probe()
377 ret = ti_am335x_xbar_probe(pdev); in ti_dma_xbar_probe()
380 dev_err(&pdev->dev, "Unsupported crossbar\n"); in ti_dma_xbar_probe()