Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/ethernet/freescale/fman/
Dmac.c156 int (*init)(struct mac_device *mac_dev, struct device_node *mac_node, in mac_probe()
159 struct device_node *mac_node, *dev_node; in mac_probe() local
169 mac_node = dev->of_node; in mac_probe()
187 dev_node = of_get_parent(mac_node); in mac_probe()
190 mac_node); in mac_probe()
241 if (!of_device_is_available(mac_node)) in mac_probe()
245 err = of_property_read_u32(mac_node, "cell-index", &val); in mac_probe()
247 dev_err(dev, "failed to read cell-index for %pOF\n", mac_node); in mac_probe()
253 err = of_get_mac_address(mac_node, mac_dev->addr); in mac_probe()
255 dev_warn(dev, "of_get_mac_address(%pOF) failed\n", mac_node); in mac_probe()
[all …]
Dfman_memac.c1038 static struct phylink_pcs *memac_pcs_create(struct device_node *mac_node, in memac_pcs_create() argument
1044 node = of_parse_phandle(mac_node, "pcsphy-handle", index); in memac_pcs_create()
1067 struct device_node *mac_node, in memac_initialization() argument
1097 err = of_property_match_string(mac_node, "pcs-handle-names", "xfi"); in memac_initialization()
1099 memac->xfi_pcs = memac_pcs_create(mac_node, err); in memac_initialization()
1109 err = of_property_match_string(mac_node, "pcs-handle-names", "qsgmii"); in memac_initialization()
1111 memac->qsgmii_pcs = memac_pcs_create(mac_node, err); in memac_initialization()
1125 err = of_property_match_string(mac_node, "pcs-handle-names", "sgmii"); in memac_initialization()
1127 pcs = memac_pcs_create(mac_node, 0); in memac_initialization()
1131 pcs = memac_pcs_create(mac_node, err); in memac_initialization()
[all …]
Dfman_memac.h17 struct device_node *mac_node,
Dfman_tgec.h14 struct device_node *mac_node,
Dfman_dtsec.h14 struct device_node *mac_node,
Dfman_dtsec.c1401 struct device_node *mac_node, in dtsec_initialization() argument
1432 phy_node = of_parse_phandle(mac_node, "tbi-handle", 0); in dtsec_initialization()
Dfman_tgec.c760 struct device_node *mac_node, in tgec_initialization() argument
/Linux-v6.6/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c877 struct hclgevf_mac_addr_node *mac_node, *tmp; in hclgevf_find_mac_node() local
879 list_for_each_entry_safe(mac_node, tmp, list, node) in hclgevf_find_mac_node()
880 if (ether_addr_equal(mac_addr, mac_node->mac_addr)) in hclgevf_find_mac_node()
881 return mac_node; in hclgevf_find_mac_node()
886 static void hclgevf_update_mac_node(struct hclgevf_mac_addr_node *mac_node, in hclgevf_update_mac_node() argument
892 if (mac_node->state == HCLGEVF_MAC_TO_DEL) in hclgevf_update_mac_node()
893 mac_node->state = HCLGEVF_MAC_ACTIVE; in hclgevf_update_mac_node()
897 if (mac_node->state == HCLGEVF_MAC_TO_ADD) { in hclgevf_update_mac_node()
898 list_del(&mac_node->node); in hclgevf_update_mac_node()
899 kfree(mac_node); in hclgevf_update_mac_node()
[all …]
/Linux-v6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c8390 struct hclge_mac_node *mac_node, *tmp; in hclge_find_mac_node() local
8392 list_for_each_entry_safe(mac_node, tmp, list, node) in hclge_find_mac_node()
8393 if (ether_addr_equal(mac_addr, mac_node->mac_addr)) in hclge_find_mac_node()
8394 return mac_node; in hclge_find_mac_node()
8399 static void hclge_update_mac_node(struct hclge_mac_node *mac_node, in hclge_update_mac_node() argument
8405 if (mac_node->state == HCLGE_MAC_TO_DEL) in hclge_update_mac_node()
8406 mac_node->state = HCLGE_MAC_ACTIVE; in hclge_update_mac_node()
8410 if (mac_node->state == HCLGE_MAC_TO_ADD) { in hclge_update_mac_node()
8411 list_del(&mac_node->node); in hclge_update_mac_node()
8412 kfree(mac_node); in hclge_update_mac_node()
[all …]
Dhclge_debugfs.c2003 struct hclge_mac_node *mac_node, *tmp; in hclge_dbg_dump_mac_list() local
2023 list_for_each_entry_safe(mac_node, tmp, list, node) { in hclge_dbg_dump_mac_list()
2027 sprintf(result[i++], "%pM", mac_node->mac_addr); in hclge_dbg_dump_mac_list()
2029 hclge_mac_state_str[mac_node->state]); in hclge_dbg_dump_mac_list()
/Linux-v6.6/drivers/net/ethernet/freescale/dpaa/
Ddpaa_ethtool.c400 struct device_node *mac_node = dev->of_node; in dpaa_get_ts_info() local
407 fman_node = of_get_parent(mac_node); in dpaa_get_ts_info()