Lines Matching refs:of_dev
2690 static struct fman *read_dts_node(struct platform_device *of_dev) in read_dts_node() argument
2706 fm_node = of_node_get(of_dev->dev.of_node); in read_dts_node()
2710 dev_err(&of_dev->dev, "%s: failed to read cell-index for %pOF\n", in read_dts_node()
2717 err = platform_get_irq(of_dev, 0); in read_dts_node()
2723 err = platform_get_irq(of_dev, 1); in read_dts_node()
2729 res = platform_get_resource(of_dev, IORESOURCE_MEM, 0); in read_dts_node()
2732 dev_err(&of_dev->dev, "%s: Can't get FMan memory resource\n", in read_dts_node()
2743 dev_err(&of_dev->dev, "%s: Failed to get FM%d clock structure\n", in read_dts_node()
2751 dev_err(&of_dev->dev, "%s: Failed to determine FM%d clock rate\n", in read_dts_node()
2761 dev_err(&of_dev->dev, "%s: failed to read fsl,qman-channel-range for %pOF\n", in read_dts_node()
2772 dev_err(&of_dev->dev, "%s: could not find MURAM node\n", in read_dts_node()
2781 dev_err(&of_dev->dev, "%s: of_address_to_resource() = %d\n", in read_dts_node()
2788 err = devm_request_irq(&of_dev->dev, irq, fman_irq, IRQF_SHARED, in read_dts_node()
2791 dev_err(&of_dev->dev, "%s: irq %d allocation failed (error = %d)\n", in read_dts_node()
2797 err = devm_request_irq(&of_dev->dev, fman->dts_params.err_irq, in read_dts_node()
2801 dev_err(&of_dev->dev, "%s: irq %d allocation failed (error = %d)\n", in read_dts_node()
2808 devm_request_mem_region(&of_dev->dev, phys_base_addr, in read_dts_node()
2812 dev_err(&of_dev->dev, "%s: request_mem_region() failed\n", in read_dts_node()
2818 devm_ioremap(&of_dev->dev, phys_base_addr, mem_size); in read_dts_node()
2821 dev_err(&of_dev->dev, "%s: devm_ioremap() failed\n", __func__); in read_dts_node()
2825 fman->dev = &of_dev->dev; in read_dts_node()
2827 err = of_platform_populate(fm_node, NULL, NULL, &of_dev->dev); in read_dts_node()
2829 dev_err(&of_dev->dev, "%s: of_platform_populate() failed\n", in read_dts_node()
2848 static int fman_probe(struct platform_device *of_dev) in fman_probe() argument
2854 dev = &of_dev->dev; in fman_probe()
2856 fman = read_dts_node(of_dev); in fman_probe()