Home
last modified time | relevance | path

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

/linux-6.12.1/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()
250 if (!of_device_is_available(mac_node)) { in mac_probe()
256 err = of_property_read_u32(mac_node, "cell-index", &val); in mac_probe()
258 dev_err(dev, "failed to read cell-index for %pOF\n", mac_node); in mac_probe()
265 err = of_get_mac_address(mac_node, mac_dev->addr); in mac_probe()
267 dev_warn(dev, "of_get_mac_address(%pOF) failed\n", mac_node); in mac_probe()
[all …]
Dfman_memac.c1036 static struct phylink_pcs *memac_pcs_create(struct device_node *mac_node, in memac_pcs_create() argument
1042 node = of_parse_phandle(mac_node, "pcsphy-handle", index); in memac_pcs_create()
1065 struct device_node *mac_node, in memac_initialization() argument
1102 err = of_property_match_string(mac_node, "pcs-handle-names", "xfi"); in memac_initialization()
1104 memac->xfi_pcs = memac_pcs_create(mac_node, err); in memac_initialization()
1114 err = of_property_match_string(mac_node, "pcs-handle-names", "qsgmii"); in memac_initialization()
1116 memac->qsgmii_pcs = memac_pcs_create(mac_node, err); in memac_initialization()
1130 err = of_property_match_string(mac_node, "pcs-handle-names", "sgmii"); in memac_initialization()
1132 pcs = memac_pcs_create(mac_node, 0); in memac_initialization()
1136 pcs = memac_pcs_create(mac_node, err); in memac_initialization()
[all …]
Dfman_memac.h17 struct device_node *mac_node,
Dfman_dtsec.h14 struct device_node *mac_node,
Dfman_tgec.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-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c915 struct hclgevf_mac_addr_node *mac_node, *tmp; in hclgevf_find_mac_node() local
917 list_for_each_entry_safe(mac_node, tmp, list, node) in hclgevf_find_mac_node()
918 if (ether_addr_equal(mac_addr, mac_node->mac_addr)) in hclgevf_find_mac_node()
919 return mac_node; in hclgevf_find_mac_node()
924 static void hclgevf_update_mac_node(struct hclgevf_mac_addr_node *mac_node, in hclgevf_update_mac_node() argument
930 if (mac_node->state == HCLGEVF_MAC_TO_DEL) in hclgevf_update_mac_node()
931 mac_node->state = HCLGEVF_MAC_ACTIVE; in hclgevf_update_mac_node()
935 if (mac_node->state == HCLGEVF_MAC_TO_ADD) { in hclgevf_update_mac_node()
936 list_del(&mac_node->node); in hclgevf_update_mac_node()
937 kfree(mac_node); in hclgevf_update_mac_node()
[all …]
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c8485 struct hclge_mac_node *mac_node, *tmp; in hclge_find_mac_node() local
8487 list_for_each_entry_safe(mac_node, tmp, list, node) in hclge_find_mac_node()
8488 if (ether_addr_equal(mac_addr, mac_node->mac_addr)) in hclge_find_mac_node()
8489 return mac_node; in hclge_find_mac_node()
8494 static void hclge_update_mac_node(struct hclge_mac_node *mac_node, in hclge_update_mac_node() argument
8500 if (mac_node->state == HCLGE_MAC_TO_DEL) in hclge_update_mac_node()
8501 mac_node->state = HCLGE_MAC_ACTIVE; in hclge_update_mac_node()
8505 if (mac_node->state == HCLGE_MAC_TO_ADD) { in hclge_update_mac_node()
8506 list_del(&mac_node->node); in hclge_update_mac_node()
8507 kfree(mac_node); in hclge_update_mac_node()
[all …]
Dhclge_debugfs.c2648 struct hclge_mac_node *mac_node, *tmp; in hclge_dbg_dump_mac_list() local
2668 list_for_each_entry_safe(mac_node, tmp, list, node) { in hclge_dbg_dump_mac_list()
2672 sprintf(result[i++], "%pM", mac_node->mac_addr); in hclge_dbg_dump_mac_list()
2674 hclge_mac_state_str[mac_node->state]); in hclge_dbg_dump_mac_list()
/linux-6.12.1/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()