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, ndev); in prueth_netdev_init() [all …]
|
H A D | icssg_prueth.c | 1182 struct device_node *eth_node) in prueth_netdev_init() argument 1191 port = prueth_node_port(eth_node); in prueth_netdev_init() 1195 mac = prueth_node_mac(eth_node); in prueth_netdev_init() 1243 emac->phy_node = of_parse_phandle(eth_node, "phy-handle", 0); in prueth_netdev_init() 1244 if (!emac->phy_node && !of_phy_is_fixed_link(eth_node)) { in prueth_netdev_init() 1248 } else if (of_phy_is_fixed_link(eth_node)) { in prueth_netdev_init() 1249 ret = of_phy_register_fixed_link(eth_node); in prueth_netdev_init() 1256 emac->phy_node = eth_node; in prueth_netdev_init() 1259 ret = of_get_phy_mode(eth_node, &emac->phy_if); in prueth_netdev_init() 1294 ret = of_get_ethdev_address(eth_node, ndev); in prueth_netdev_init() [all …]
|
H A D | icssg_prueth.h | 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 | 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() 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()
|