Lines Matching refs:mac_node
155 int (*init)(struct mac_device *mac_dev, struct device_node *mac_node, in mac_probe()
158 struct device_node *mac_node, *dev_node; in mac_probe() local
168 mac_node = dev->of_node; in mac_probe()
186 dev_node = of_get_parent(mac_node); in mac_probe()
189 mac_node); in mac_probe()
240 if (!of_device_is_available(mac_node)) in mac_probe()
244 err = of_property_read_u32(mac_node, "cell-index", &val); in mac_probe()
246 dev_err(dev, "failed to read cell-index for %pOF\n", mac_node); in mac_probe()
252 err = of_get_mac_address(mac_node, mac_dev->addr); in mac_probe()
254 dev_warn(dev, "of_get_mac_address(%pOF) failed\n", mac_node); in mac_probe()
257 nph = of_count_phandle_with_args(mac_node, "fsl,fman-ports", NULL); in mac_probe()
260 mac_node); in mac_probe()
266 mac_node); in mac_probe()
272 dev_node = of_parse_phandle(mac_node, "fsl,fman-ports", i); in mac_probe()
275 mac_node); in mac_probe()
298 err = of_get_phy_mode(mac_node, &phy_if); in mac_probe()
302 mac_node); in mac_probe()
312 err = init(mac_dev, mac_node, ¶ms); in mac_probe()