Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_main.c913 struct hclgevf_mac_addr_node *mac_node, *tmp; in hclgevf_find_mac_node() local
915 list_for_each_entry_safe(mac_node, tmp, list, node) in hclgevf_find_mac_node()
916 if (ether_addr_equal(mac_addr, mac_node->mac_addr)) in hclgevf_find_mac_node()
917 return mac_node; in hclgevf_find_mac_node()
922 static void hclgevf_update_mac_node(struct hclgevf_mac_addr_node *mac_node, in hclgevf_update_mac_node() argument
928 if (mac_node->state == HCLGEVF_MAC_TO_DEL) in hclgevf_update_mac_node()
929 mac_node->state = HCLGEVF_MAC_ACTIVE; in hclgevf_update_mac_node()
933 if (mac_node->state == HCLGEVF_MAC_TO_ADD) { in hclgevf_update_mac_node()
934 list_del(&mac_node->node); in hclgevf_update_mac_node()
935 kfree(mac_node); in hclgevf_update_mac_node()
[all …]
/linux/drivers/net/ethernet/freescale/fman/
H A Dfman_memac.h17 struct device_node *mac_node,
H A Dfman_dtsec.h14 struct device_node *mac_node,
H A Dfman_tgec.h14 struct device_node *mac_node,
H A Dfman_dtsec.c1401 struct device_node *mac_node, in dtsec_initialization() argument
1431 phy_node = of_parse_phandle(mac_node, "tbi-handle", 0); in dtsec_initialization()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c8501 struct hclge_mac_node *mac_node, *tmp; in hclge_find_mac_node() local
8503 list_for_each_entry_safe(mac_node, tmp, list, node) in hclge_find_mac_node()
8504 if (ether_addr_equal(mac_addr, mac_node->mac_addr)) in hclge_find_mac_node()
8505 return mac_node; in hclge_find_mac_node()
8510 static void hclge_update_mac_node(struct hclge_mac_node *mac_node, in hclge_update_mac_node() argument
8516 if (mac_node->state == HCLGE_MAC_TO_DEL) in hclge_update_mac_node()
8517 mac_node->state = HCLGE_MAC_ACTIVE; in hclge_update_mac_node()
8521 if (mac_node->state == HCLGE_MAC_TO_ADD) { in hclge_update_mac_node()
8522 list_del(&mac_node->node); in hclge_update_mac_node()
8523 kfree(mac_node); in hclge_update_mac_node()
[all …]
H A Dhclge_debugfs.c2441 struct hclge_mac_node *mac_node, *tmp; in hclge_dbg_dump_mac_list() local
2453 list_for_each_entry_safe(mac_node, tmp, list, node) { in hclge_dbg_dump_mac_list()
2458 seq_printf(s, "%pM ", mac_node->mac_addr); in hclge_dbg_dump_mac_list()
2460 hclge_mac_state_str[mac_node->state]); in hclge_dbg_dump_mac_list()