Searched refs:mac_np (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.6/drivers/net/dsa/ |
D | mt7530.c | 2197 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/ |
D | mtk_eth_soc.c | 4726 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()
|