Lines Matching refs:dev_node
159 struct device_node *mac_node, *dev_node; in mac_probe() local
187 dev_node = of_get_parent(mac_node); in mac_probe()
188 if (!dev_node) { in mac_probe()
194 of_dev = of_find_device_by_node(dev_node); in mac_probe()
196 dev_err(dev, "of_find_device_by_node(%pOF) failed\n", dev_node); in mac_probe()
202 err = of_property_read_u32(dev_node, "cell-index", &val); in mac_probe()
204 dev_err(dev, "failed to read cell-index for %pOF\n", dev_node); in mac_probe()
213 dev_err(dev, "fman_bind(%pOF) failed\n", dev_node); in mac_probe()
218 of_node_put(dev_node); in mac_probe()
273 dev_node = of_parse_phandle(mac_node, "fsl,fman-ports", i); in mac_probe()
274 if (!dev_node) { in mac_probe()
280 of_dev = of_find_device_by_node(dev_node); in mac_probe()
283 dev_node); in mac_probe()
291 dev_node); in mac_probe()
295 of_node_put(dev_node); in mac_probe()
331 of_node_put(dev_node); in mac_probe()