Home
last modified time | relevance | path

Searched refs:mac_node (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.10/drivers/net/ethernet/freescale/fman/
Dmac.c603 struct device_node *mac_node, *dev_node; in mac_probe() local
614 mac_node = dev->of_node; in mac_probe()
631 if (of_device_is_compatible(mac_node, "fsl,fman-dtsec")) { in mac_probe()
633 priv->internal_phy_node = of_parse_phandle(mac_node, in mac_probe()
635 } else if (of_device_is_compatible(mac_node, "fsl,fman-xgec")) { in mac_probe()
637 } else if (of_device_is_compatible(mac_node, "fsl,fman-memac")) { in mac_probe()
639 priv->internal_phy_node = of_parse_phandle(mac_node, in mac_probe()
643 mac_node); in mac_probe()
651 dev_node = of_get_parent(mac_node); in mac_probe()
654 mac_node); in mac_probe()
[all …]
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c1284 struct hclgevf_mac_addr_node *mac_node, *tmp; in hclgevf_find_mac_node() local
1286 list_for_each_entry_safe(mac_node, tmp, list, node) in hclgevf_find_mac_node()
1287 if (ether_addr_equal(mac_addr, mac_node->mac_addr)) in hclgevf_find_mac_node()
1288 return mac_node; in hclgevf_find_mac_node()
1293 static void hclgevf_update_mac_node(struct hclgevf_mac_addr_node *mac_node, in hclgevf_update_mac_node() argument
1299 if (mac_node->state == HCLGEVF_MAC_TO_DEL) in hclgevf_update_mac_node()
1300 mac_node->state = HCLGEVF_MAC_ACTIVE; in hclgevf_update_mac_node()
1304 if (mac_node->state == HCLGEVF_MAC_TO_ADD) { in hclgevf_update_mac_node()
1305 list_del(&mac_node->node); in hclgevf_update_mac_node()
1306 kfree(mac_node); in hclgevf_update_mac_node()
[all …]
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c7411 struct hclge_mac_node *mac_node, *tmp; in hclge_find_mac_node() local
7413 list_for_each_entry_safe(mac_node, tmp, list, node) in hclge_find_mac_node()
7414 if (ether_addr_equal(mac_addr, mac_node->mac_addr)) in hclge_find_mac_node()
7415 return mac_node; in hclge_find_mac_node()
7420 static void hclge_update_mac_node(struct hclge_mac_node *mac_node, in hclge_update_mac_node() argument
7426 if (mac_node->state == HCLGE_MAC_TO_DEL) in hclge_update_mac_node()
7427 mac_node->state = HCLGE_MAC_ACTIVE; in hclge_update_mac_node()
7431 if (mac_node->state == HCLGE_MAC_TO_ADD) { in hclge_update_mac_node()
7432 list_del(&mac_node->node); in hclge_update_mac_node()
7433 kfree(mac_node); in hclge_update_mac_node()
[all …]
Dhclge_debugfs.c1455 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()
/Linux-v5.10/drivers/net/ethernet/freescale/dpaa/
Ddpaa_ethtool.c484 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()