Lines Matching refs:of_dev
2716 static struct fman *read_dts_node(struct platform_device *of_dev) in read_dts_node() argument
2732 fm_node = of_node_get(of_dev->dev.of_node); in read_dts_node()
2736 dev_err(&of_dev->dev, "%s: failed to read cell-index for %pOF\n", in read_dts_node()
2743 res = platform_get_resource(of_dev, IORESOURCE_IRQ, 0); in read_dts_node()
2745 dev_err(&of_dev->dev, "%s: Can't get FMan IRQ resource\n", in read_dts_node()
2752 res = platform_get_resource(of_dev, IORESOURCE_IRQ, 1); in read_dts_node()
2754 dev_err(&of_dev->dev, "%s: Can't get FMan Error IRQ resource\n", in read_dts_node()
2761 res = platform_get_resource(of_dev, IORESOURCE_MEM, 0); in read_dts_node()
2763 dev_err(&of_dev->dev, "%s: Can't get FMan memory resource\n", in read_dts_node()
2773 dev_err(&of_dev->dev, "%s: Failed to get FM%d clock structure\n", in read_dts_node()
2780 dev_err(&of_dev->dev, "%s: Failed to determine FM%d clock rate\n", in read_dts_node()
2790 dev_err(&of_dev->dev, "%s: failed to read fsl,qman-channel-range for %pOF\n", in read_dts_node()
2800 dev_err(&of_dev->dev, "%s: could not find MURAM node\n", in read_dts_node()
2809 dev_err(&of_dev->dev, "%s: of_address_to_resource() = %d\n", in read_dts_node()
2816 err = devm_request_irq(&of_dev->dev, irq, fman_irq, IRQF_SHARED, in read_dts_node()
2819 dev_err(&of_dev->dev, "%s: irq %d allocation failed (error = %d)\n", in read_dts_node()
2825 err = devm_request_irq(&of_dev->dev, fman->dts_params.err_irq, in read_dts_node()
2829 dev_err(&of_dev->dev, "%s: irq %d allocation failed (error = %d)\n", in read_dts_node()
2836 devm_request_mem_region(&of_dev->dev, phys_base_addr, in read_dts_node()
2839 dev_err(&of_dev->dev, "%s: request_mem_region() failed\n", in read_dts_node()
2845 devm_ioremap(&of_dev->dev, phys_base_addr, mem_size); in read_dts_node()
2847 dev_err(&of_dev->dev, "%s: devm_ioremap() failed\n", __func__); in read_dts_node()
2851 fman->dev = &of_dev->dev; in read_dts_node()
2853 err = of_platform_populate(fm_node, NULL, NULL, &of_dev->dev); in read_dts_node()
2855 dev_err(&of_dev->dev, "%s: of_platform_populate() failed\n", in read_dts_node()
2874 static int fman_probe(struct platform_device *of_dev) in fman_probe() argument
2880 dev = &of_dev->dev; in fman_probe()
2882 fman = read_dts_node(of_dev); in fman_probe()