Lines Matching refs:of_dev

2689 static struct fman *read_dts_node(struct platform_device *of_dev)  in read_dts_node()  argument
2705 fm_node = of_node_get(of_dev->dev.of_node); in read_dts_node()
2709 dev_err(&of_dev->dev, "%s: failed to read cell-index for %pOF\n", in read_dts_node()
2716 err = platform_get_irq(of_dev, 0); in read_dts_node()
2722 err = platform_get_irq(of_dev, 1); in read_dts_node()
2728 res = platform_get_resource(of_dev, IORESOURCE_MEM, 0); in read_dts_node()
2731 dev_err(&of_dev->dev, "%s: Can't get FMan memory resource\n", in read_dts_node()
2742 dev_err(&of_dev->dev, "%s: Failed to get FM%d clock structure\n", in read_dts_node()
2750 dev_err(&of_dev->dev, "%s: Failed to determine FM%d clock rate\n", in read_dts_node()
2760 dev_err(&of_dev->dev, "%s: failed to read fsl,qman-channel-range for %pOF\n", in read_dts_node()
2771 dev_err(&of_dev->dev, "%s: could not find MURAM node\n", in read_dts_node()
2780 dev_err(&of_dev->dev, "%s: of_address_to_resource() = %d\n", in read_dts_node()
2787 err = devm_request_irq(&of_dev->dev, irq, fman_irq, IRQF_SHARED, in read_dts_node()
2790 dev_err(&of_dev->dev, "%s: irq %d allocation failed (error = %d)\n", in read_dts_node()
2796 err = devm_request_irq(&of_dev->dev, fman->dts_params.err_irq, in read_dts_node()
2800 dev_err(&of_dev->dev, "%s: irq %d allocation failed (error = %d)\n", in read_dts_node()
2807 devm_request_mem_region(&of_dev->dev, phys_base_addr, in read_dts_node()
2811 dev_err(&of_dev->dev, "%s: request_mem_region() failed\n", in read_dts_node()
2817 devm_ioremap(&of_dev->dev, phys_base_addr, mem_size); in read_dts_node()
2820 dev_err(&of_dev->dev, "%s: devm_ioremap() failed\n", __func__); in read_dts_node()
2824 fman->dev = &of_dev->dev; in read_dts_node()
2826 err = of_platform_populate(fm_node, NULL, NULL, &of_dev->dev); in read_dts_node()
2828 dev_err(&of_dev->dev, "%s: of_platform_populate() failed\n", in read_dts_node()
2847 static int fman_probe(struct platform_device *of_dev) in fman_probe() argument
2853 dev = &of_dev->dev; in fman_probe()
2855 fman = read_dts_node(of_dev); in fman_probe()