Lines Matching refs:eth_node

736 			      struct device_node *eth_node)  in prueth_netdev_init()  argument
747 port = prueth_node_port(eth_node); in prueth_netdev_init()
751 mac = prueth_node_mac(eth_node); in prueth_netdev_init()
791 emac->phy_node = of_parse_phandle(eth_node, "phy-handle", 0); in prueth_netdev_init()
792 if (!emac->phy_node && !of_phy_is_fixed_link(eth_node)) { in prueth_netdev_init()
796 } else if (of_phy_is_fixed_link(eth_node)) { in prueth_netdev_init()
797 ret = of_phy_register_fixed_link(eth_node); in prueth_netdev_init()
804 emac->phy_node = eth_node; in prueth_netdev_init()
807 ret = of_get_phy_mode(eth_node, &emac->phy_if); in prueth_netdev_init()
842 ret = of_get_ethdev_address(eth_node, ndev); in prueth_netdev_init()
850 ndev->dev.of_node = eth_node; in prueth_netdev_init()
877 struct device_node *eth_node, *eth_ports_node; in prueth_probe() local
902 for_each_child_of_node(eth_ports_node, eth_node) { in prueth_probe()
905 if (strcmp(eth_node->name, "port")) in prueth_probe()
907 ret = of_property_read_u32(eth_node, "reg", &reg); in prueth_probe()
910 eth_node, ret); in prueth_probe()
913 of_node_get(eth_node); in prueth_probe()
916 eth0_node = eth_node; in prueth_probe()
922 eth1_node = eth_node; in prueth_probe()
946 prueth->eth_node[PRUETH_MAC0] = eth0_node; in prueth_probe()
947 prueth->eth_node[PRUETH_MAC1] = eth1_node; in prueth_probe()
1118 eth_node = prueth->eth_node[i]; in prueth_probe()
1119 if (!eth_node) in prueth_probe()
1122 prueth_netdev_exit(prueth, eth_node); in prueth_probe()
1165 struct device_node *eth_node; in prueth_remove() local
1178 eth_node = prueth->eth_node[i]; in prueth_remove()
1179 if (!eth_node) in prueth_remove()
1182 prueth_netdev_exit(prueth, eth_node); in prueth_remove()
1199 if (prueth->eth_node[PRUETH_MAC1]) in prueth_remove()
1202 if (prueth->eth_node[PRUETH_MAC0]) in prueth_remove()