/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/fman/ |
H A D | mac.c | 156 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...] |
H A D | fman_memac.c | 1038 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() 1105 err = of_property_match_string(mac_node, "pcs-handle-names", "xfi"); in memac_initialization() 1107 memac->xfi_pcs = memac_pcs_create(mac_node, err); in memac_initialization() 1117 err = of_property_match_string(mac_node, "pcs-handle-names", "qsgmii"); in memac_initialization() 1119 memac->qsgmii_pcs = memac_pcs_create(mac_node, err); in memac_initialization() 1133 err = of_property_match_string(mac_node, "pcs-handle-names", "sgmii"); in memac_initialization() 1135 pcs = memac_pcs_create(mac_node, 0); in memac_initialization() 1139 pcs = memac_pcs_create(mac_node, er in memac_initialization() 1066 memac_initialization(struct mac_device *mac_dev, struct device_node *mac_node, struct fman_mac_params *params) memac_initialization() argument [all...] |
H A D | fman_dtsec.h | 14 struct device_node *mac_node,
|
H A D | fman_tgec.h | 14 struct device_node *mac_node,
|
H A D | fman_memac.h | 17 struct device_node *mac_node,
|
H A D | fman_dtsec.c | 1401 struct device_node *mac_node, in dtsec_initialization() 1432 phy_node = of_parse_phandle(mac_node, "tbi-handle", 0); in dtsec_initialization() 1400 dtsec_initialization(struct mac_device *mac_dev, struct device_node *mac_node, struct fman_mac_params *params) dtsec_initialization() argument
|
H A D | fman_tgec.c | 760 struct device_node *mac_node, in tgec_initialization() 759 tgec_initialization(struct mac_device *mac_dev, struct device_node *mac_node, struct fman_mac_params *params) tgec_initialization() argument
|
/kernel/linux/linux-5.10/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...] |
/kernel/linux/linux-5.10/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() 1343 struct hclgevf_mac_addr_node *mac_node; hclgevf_update_mac_list() local 1409 hclgevf_add_del_mac_addr(struct hclgevf_dev *hdev, struct hclgevf_mac_addr_node *mac_node, enum HCLGEVF_MAC_ADDR_TYPE mac_type) hclgevf_add_del_mac_addr() argument 1439 struct hclgevf_mac_addr_node *mac_node, *tmp; hclgevf_config_mac_list() local 1462 struct hclgevf_mac_addr_node *mac_node, *tmp, *new_node; hclgevf_sync_from_add_list() local 1491 struct hclgevf_mac_addr_node *mac_node, *tmp, *new_node; hclgevf_sync_from_del_list() local 1513 struct hclgevf_mac_addr_node *mac_node, *tmp; hclgevf_clear_list() local 1524 struct hclgevf_mac_addr_node *mac_node, *tmp, *new_node; hclgevf_sync_mac_list() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_main.c | 877 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() 920 struct hclgevf_mac_addr_node *mac_node; hclgevf_update_mac_list() local 986 hclgevf_add_del_mac_addr(struct hclgevf_dev *hdev, struct hclgevf_mac_addr_node *mac_node, enum HCLGEVF_MAC_ADDR_TYPE mac_type) hclgevf_add_del_mac_addr() argument 1017 struct hclgevf_mac_addr_node *mac_node, *tmp; hclgevf_config_mac_list() local 1042 struct hclgevf_mac_addr_node *mac_node, *tmp, *new_node; hclgevf_sync_from_add_list() local 1070 struct hclgevf_mac_addr_node *mac_node, *tmp, *new_node; hclgevf_sync_from_del_list() local 1091 struct hclgevf_mac_addr_node *mac_node, *tmp; hclgevf_clear_list() local 1102 struct hclgevf_mac_addr_node *mac_node, *tmp, *new_node; hclgevf_sync_mac_list() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_main.c | 7451 struct hclge_mac_node *mac_node, *tmp; in hclge_find_mac_node() local 7453 list_for_each_entry_safe(mac_node, tmp, list, node) in hclge_find_mac_node() 7454 if (ether_addr_equal(mac_addr, mac_node->mac_addr)) in hclge_find_mac_node() 7455 return mac_node; in hclge_find_mac_node() 7460 static void hclge_update_mac_node(struct hclge_mac_node *mac_node, in hclge_update_mac_node() argument 7466 if (mac_node->state == HCLGE_MAC_TO_DEL) in hclge_update_mac_node() 7467 mac_node->state = HCLGE_MAC_ACTIVE; in hclge_update_mac_node() 7471 if (mac_node->state == HCLGE_MAC_TO_ADD) { in hclge_update_mac_node() 7472 list_del(&mac_node->node); in hclge_update_mac_node() 7473 kfree(mac_node); in hclge_update_mac_node() 7495 struct hclge_mac_node *mac_node; hclge_update_mac_list() local 7748 struct hclge_mac_node *mac_node, *tmp; hclge_sync_vport_mac_list() local 7774 struct hclge_mac_node *mac_node, *tmp; hclge_unsync_vport_mac_list() local 7793 struct hclge_mac_node *mac_node, *tmp, *new_node; hclge_sync_from_add_list() local 7829 struct hclge_mac_node *mac_node, *tmp, *new_node; hclge_sync_from_del_list() local 7871 struct hclge_mac_node *mac_node, *tmp, *new_node; hclge_sync_vport_mac_table() local 8035 struct hclge_mac_node *mac_node, *tmp; hclge_uninit_vport_mac_list() local 8969 struct hclge_mac_node *mac_node, *tmp; hclge_mac_node_convert_for_reset() local [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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_main.c | 8397 struct hclge_mac_node *mac_node, *tmp; in hclge_find_mac_node() local 8399 list_for_each_entry_safe(mac_node, tmp, list, node) in hclge_find_mac_node() 8400 if (ether_addr_equal(mac_addr, mac_node->mac_addr)) in hclge_find_mac_node() 8401 return mac_node; in hclge_find_mac_node() 8406 static void hclge_update_mac_node(struct hclge_mac_node *mac_node, in hclge_update_mac_node() argument 8412 if (mac_node->state == HCLGE_MAC_TO_DEL) in hclge_update_mac_node() 8413 mac_node->state = HCLGE_MAC_ACTIVE; in hclge_update_mac_node() 8417 if (mac_node->state == HCLGE_MAC_TO_ADD) { in hclge_update_mac_node() 8418 list_del(&mac_node->node); in hclge_update_mac_node() 8419 kfree(mac_node); in hclge_update_mac_node() 8442 struct hclge_mac_node *mac_node; hclge_update_mac_list() local 8722 struct hclge_mac_node *mac_node, *tmp; hclge_sync_vport_mac_list() local 8758 struct hclge_mac_node *mac_node, *tmp; hclge_unsync_vport_mac_list() local 8782 struct hclge_mac_node *mac_node, *tmp, *new_node; hclge_sync_from_add_list() local 8817 struct hclge_mac_node *mac_node, *tmp, *new_node; hclge_sync_from_del_list() local 8858 struct hclge_mac_node *mac_node, *tmp, *new_node; hclge_sync_vport_mac_table() local 9030 struct hclge_mac_node *mac_node, *tmp; hclge_uninit_vport_mac_list() local 10157 struct hclge_mac_node *mac_node, *tmp; hclge_mac_node_convert_for_reset() local [all...] |
H A D | hclge_debugfs.c | 2003 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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa/ |
H A D | dpaa_ethtool.c | 400 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()
|