Home
last modified time | relevance | path

Searched refs:mac_np (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/drivers/net/dsa/
Dmt7530.c2197 struct device_node *mac_np; in mt7530_setup() local
2340 for_each_child_of_node(dn, mac_np) { in mt7530_setup()
2341 if (!of_device_is_compatible(mac_np, in mt7530_setup()
2345 ret = of_property_read_u32(mac_np, "reg", &id); in mt7530_setup()
2349 phy_node = of_parse_phandle(mac_np, "phy-handle", 0); in mt7530_setup()
2354 ret = of_get_phy_mode(mac_np, &interface); in mt7530_setup()
2356 of_node_put(mac_np); in mt7530_setup()
2366 of_node_put(mac_np); in mt7530_setup()
/Linux-v6.6/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c4726 struct device_node *mac_np; in mtk_probe() local
4903 for_each_child_of_node(pdev->dev.of_node, mac_np) { in mtk_probe()
4904 if (!of_device_is_compatible(mac_np, in mtk_probe()
4908 if (!of_device_is_available(mac_np)) in mtk_probe()
4911 err = mtk_add_mac(eth, mac_np); in mtk_probe()
4913 of_node_put(mac_np); in mtk_probe()