Lines Matching refs:mac_node
156 int (*init)(struct mac_device *mac_dev, struct device_node *mac_node, in mac_probe()
159 struct device_node *mac_node, *dev_node; in mac_probe() local
169 mac_node = dev->of_node; in mac_probe()
187 dev_node = of_get_parent(mac_node); in mac_probe()
190 mac_node); in mac_probe()
250 if (!of_device_is_available(mac_node)) { in mac_probe()
256 err = of_property_read_u32(mac_node, "cell-index", &val); in mac_probe()
258 dev_err(dev, "failed to read cell-index for %pOF\n", mac_node); in mac_probe()
265 err = of_get_mac_address(mac_node, mac_dev->addr); in mac_probe()
267 dev_warn(dev, "of_get_mac_address(%pOF) failed\n", mac_node); in mac_probe()
270 nph = of_count_phandle_with_args(mac_node, "fsl,fman-ports", NULL); in mac_probe()
273 mac_node); in mac_probe()
280 mac_node); in mac_probe()
288 dev_node = of_parse_phandle(mac_node, "fsl,fman-ports", i); in mac_probe()
291 mac_node); in mac_probe()
322 err = of_get_phy_mode(mac_node, &phy_if); in mac_probe()
326 mac_node); in mac_probe()
336 err = init(mac_dev, mac_node, ¶ms); in mac_probe()