Searched refs:eth_node (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/net/ethernet/ti/icssg/ |
H A D | icssg_prueth_sr1.c | 756 struct device_node *eth_node) in prueth_netdev_init() argument 767 port = prueth_node_port(eth_node); in prueth_netdev_init() 771 mac = prueth_node_mac(eth_node); in prueth_netdev_init() 811 emac->phy_node = of_parse_phandle(eth_node, "phy-handle", 0); in prueth_netdev_init() 812 if (!emac->phy_node && !of_phy_is_fixed_link(eth_node)) { in prueth_netdev_init() 816 } else if (of_phy_is_fixed_link(eth_node)) { in prueth_netdev_init() 817 ret = of_phy_register_fixed_link(eth_node); in prueth_netdev_init() 824 emac->phy_node = eth_node; in prueth_netdev_init() 827 ret = of_get_phy_mode(eth_node, &emac->phy_if); in prueth_netdev_init() 862 ret = of_get_ethdev_address(eth_node, nde in prueth_netdev_init() 897 struct device_node *eth_node, *eth_ports_node; prueth_probe() local 1183 struct device_node *eth_node; prueth_remove() local [all...] |
H A D | icssg_prueth.c | 1135 struct device_node *eth_node) in prueth_netdev_init() argument 1144 port = prueth_node_port(eth_node); in prueth_netdev_init() 1148 mac = prueth_node_mac(eth_node); in prueth_netdev_init() 1196 emac->phy_node = of_parse_phandle(eth_node, "phy-handle", 0); in prueth_netdev_init() 1197 if (!emac->phy_node && !of_phy_is_fixed_link(eth_node)) { in prueth_netdev_init() 1201 } else if (of_phy_is_fixed_link(eth_node)) { in prueth_netdev_init() 1202 ret = of_phy_register_fixed_link(eth_node); in prueth_netdev_init() 1209 emac->phy_node = eth_node; in prueth_netdev_init() 1212 ret = of_get_phy_mode(eth_node, &emac->phy_if); in prueth_netdev_init() 1247 ret = of_get_ethdev_address(eth_node, ndev); in prueth_netdev_init() [all …]
|
H A D | icssg_prueth.h | 280 * @eth_node: DT node for the port 322 struct device_node *eth_node[PRUETH_NUM_MACS]; member 487 int prueth_node_port(struct device_node *eth_node); 488 int prueth_node_mac(struct device_node *eth_node); 490 struct device_node *eth_node);
|
H A D | icssg_common.c | 1357 /* get emac_port corresponding to eth_node name */ 1358 int prueth_node_port(struct device_node *eth_node) in prueth_node_port() argument 1363 ret = of_property_read_u32(eth_node, "reg", &port_id); in prueth_node_port() 1376 /* get MAC instance corresponding to eth_node name */ 1377 int prueth_node_mac(struct device_node *eth_node) in prueth_node_mac() argument 1382 ret = of_property_read_u32(eth_node, "reg", &port_id); in prueth_node_mac() 1396 struct device_node *eth_node) in prueth_netdev_exit() argument 1401 mac = prueth_node_mac(eth_node); in prueth_netdev_exit()
|