Searched refs:mac_node (Results 1 – 8 of 8) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/fman/ |
| H A D | mac.c | 614 struct device_node *mac_node, *dev_node; in mac_probe() local 625 mac_node = dev->of_node; in mac_probe() 642 if (of_device_is_compatible(mac_node, "fsl,fman-dtsec")) { in mac_probe() 644 priv->internal_phy_node = of_parse_phandle(mac_node, in mac_probe() 646 } else if (of_device_is_compatible(mac_node, "fsl,fman-xgec")) { in mac_probe() 648 } else if (of_device_is_compatible(mac_node, "fsl,fman-memac")) { in mac_probe() 650 priv->internal_phy_node = of_parse_phandle(mac_node, in mac_probe() 654 mac_node); in mac_probe() 662 dev_node = of_get_parent(mac_node); in mac_probe() 665 mac_node); in mac_probe() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
| H A D | hclgevf_main.c | 1300 struct hclgevf_mac_addr_node *mac_node, *tmp; in hclgevf_find_mac_node() local 1302 list_for_each_entry_safe(mac_node, tmp, list, node) in hclgevf_find_mac_node() 1303 if (ether_addr_equal(mac_addr, mac_node->mac_addr)) in hclgevf_find_mac_node() 1304 return mac_node; in hclgevf_find_mac_node() 1309 static void hclgevf_update_mac_node(struct hclgevf_mac_addr_node *mac_node, in hclgevf_update_mac_node() argument 1315 if (mac_node->state == HCLGEVF_MAC_TO_DEL) in hclgevf_update_mac_node() 1316 mac_node->state = HCLGEVF_MAC_ACTIVE; in hclgevf_update_mac_node() 1320 if (mac_node->state == HCLGEVF_MAC_TO_ADD) { in hclgevf_update_mac_node() 1321 list_del(&mac_node->node); in hclgevf_update_mac_node() 1322 kfree(mac_node); in hclgevf_update_mac_node() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| H A D | hclge_main.c | 7431 struct hclge_mac_node *mac_node, *tmp; in hclge_find_mac_node() local 7433 list_for_each_entry_safe(mac_node, tmp, list, node) in hclge_find_mac_node() 7434 if (ether_addr_equal(mac_addr, mac_node->mac_addr)) in hclge_find_mac_node() 7435 return mac_node; in hclge_find_mac_node() 7440 static void hclge_update_mac_node(struct hclge_mac_node *mac_node, in hclge_update_mac_node() argument 7446 if (mac_node->state == HCLGE_MAC_TO_DEL) in hclge_update_mac_node() 7447 mac_node->state = HCLGE_MAC_ACTIVE; in hclge_update_mac_node() 7451 if (mac_node->state == HCLGE_MAC_TO_ADD) { in hclge_update_mac_node() 7452 list_del(&mac_node->node); in hclge_update_mac_node() 7453 kfree(mac_node); in hclge_update_mac_node() [all …]
|
| H A D | hclge_debugfs.c | 1455 struct hclge_mac_node *mac_node, *tmp; in hclge_dbg_dump_mac_list() local 1485 list_for_each_entry_safe(mac_node, tmp, list, node) { in hclge_dbg_dump_mac_list() 1487 mac_node->mac_addr, mac_node->state); in hclge_dbg_dump_mac_list()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | stmmac_uio.c | 907 struct device_node *np = dev->of_node, *mac_node; in rockchip_gmac_uio_probe() local 922 mac_node = of_parse_phandle(np, "rockchip,ethernet", 0); in rockchip_gmac_uio_probe() 923 if (!mac_node) in rockchip_gmac_uio_probe() 926 if (of_device_is_available(mac_node)) { in rockchip_gmac_uio_probe() 927 netdev = of_find_net_device_by_node(mac_node); in rockchip_gmac_uio_probe() 928 of_node_put(mac_node); in rockchip_gmac_uio_probe() 932 of_node_put(mac_node); in rockchip_gmac_uio_probe()
|
| /OK3568_Linux_fs/external/dpdk/gmac/kernel5.10/ |
| H A D | kernel_net_stmmac.diff | 990 + struct device_node *np = dev->of_node, *mac_node; 1005 + mac_node = of_parse_phandle(np, "rockchip,ethernet", 0); 1006 + if (!mac_node) 1009 + if (of_device_is_available(mac_node)) { 1010 + netdev = of_find_net_device_by_node(mac_node); 1011 + of_node_put(mac_node); 1015 + of_node_put(mac_node);
|
| /OK3568_Linux_fs/external/dpdk/gmac/kernel4.19/ |
| H A D | kernel_net_stmmac.diff | 1132 + struct device_node *np = dev->of_node, *mac_node; 1147 + mac_node = of_parse_phandle(np, "rockchip,ethernet", 0); 1148 + if (!mac_node) 1151 + if (of_device_is_available(mac_node)) { 1152 + netdev = of_find_net_device_by_node(mac_node); 1153 + of_node_put(mac_node); 1157 + of_node_put(mac_node);
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/dpaa/ |
| H A D | dpaa_ethtool.c | 484 struct device_node *mac_node = dev->of_node; in dpaa_get_ts_info() local 491 fman_node = of_get_parent(mac_node); in dpaa_get_ts_info()
|