Home
last modified time | relevance | path

Searched refs:eth_node (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/ti/icssg/
Dicssg_prueth_sr1.c736 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()
[all …]
Dicssg_prueth.c835 struct device_node *eth_node) in prueth_netdev_init() argument
844 port = prueth_node_port(eth_node); in prueth_netdev_init()
848 mac = prueth_node_mac(eth_node); in prueth_netdev_init()
894 emac->phy_node = of_parse_phandle(eth_node, "phy-handle", 0); in prueth_netdev_init()
895 if (!emac->phy_node && !of_phy_is_fixed_link(eth_node)) { in prueth_netdev_init()
899 } else if (of_phy_is_fixed_link(eth_node)) { in prueth_netdev_init()
900 ret = of_phy_register_fixed_link(eth_node); in prueth_netdev_init()
907 emac->phy_node = eth_node; in prueth_netdev_init()
910 ret = of_get_phy_mode(eth_node, &emac->phy_if); in prueth_netdev_init()
945 ret = of_get_ethdev_address(eth_node, ndev); in prueth_netdev_init()
[all …]
Dicssg_prueth.h271 struct device_node *eth_node[PRUETH_NUM_MACS]; member
426 int prueth_node_port(struct device_node *eth_node);
427 int prueth_node_mac(struct device_node *eth_node);
429 struct device_node *eth_node);
Dicssg_common.c1109 int prueth_node_port(struct device_node *eth_node) in prueth_node_port() argument
1114 ret = of_property_read_u32(eth_node, "reg", &port_id); in prueth_node_port()
1128 int prueth_node_mac(struct device_node *eth_node) in prueth_node_mac() argument
1133 ret = of_property_read_u32(eth_node, "reg", &port_id); in prueth_node_mac()
1147 struct device_node *eth_node) in prueth_netdev_exit() argument
1152 mac = prueth_node_mac(eth_node); in prueth_netdev_exit()