Searched refs:mac_np (Results 1 – 2 of 2) sorted by relevance
/drivers/net/dsa/ |
D | mt7530.c | 2140 struct device_node *mac_np; in mt7530_setup() local 2283 for_each_child_of_node(dn, mac_np) { in mt7530_setup() 2284 if (!of_device_is_compatible(mac_np, in mt7530_setup() 2288 ret = of_property_read_u32(mac_np, "reg", &id); in mt7530_setup() 2292 phy_node = of_parse_phandle(mac_np, "phy-handle", 0); in mt7530_setup() 2297 ret = of_get_phy_mode(mac_np, &interface); in mt7530_setup() 2299 of_node_put(mac_np); in mt7530_setup() 2309 of_node_put(mac_np); in mt7530_setup()
|
/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 3969 struct device_node *mac_np; in mtk_probe() local 4114 for_each_child_of_node(pdev->dev.of_node, mac_np) { in mtk_probe() 4115 if (!of_device_is_compatible(mac_np, in mtk_probe() 4119 if (!of_device_is_available(mac_np)) in mtk_probe() 4122 err = mtk_add_mac(eth, mac_np); in mtk_probe() 4124 of_node_put(mac_np); in mtk_probe()
|