/linux/drivers/net/ethernet/freescale/fman/ |
H A D | mac.c | 116 int (*init)(struct mac_device *mac_dev, struct device_node *mac_node, in mac_probe() 119 struct device_node *mac_node, *dev_node; in mac_probe() local 129 mac_node = dev->of_node; in mac_probe() 145 dev_node = of_get_parent(mac_node); in mac_probe() 148 mac_node); in mac_probe() 208 if (!of_device_is_available(mac_node)) { in mac_probe() 214 err = of_property_read_u32(mac_node, "cell-index", &val); in mac_probe() 216 dev_err(dev, "failed to read cell-index for %pOF\n", mac_node); in mac_probe() 221 dev_err(dev, "cell-index value is too big for %pOF\n", mac_node); in mac_probe() 228 err = of_get_mac_address(mac_node, mac_de in mac_probe() [all...] |
H A D | fman_memac.c | 1036 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 1101 err = of_property_match_string(mac_node, "pcs-handle-names", "xfi"); in memac_initialization() 1103 memac->xfi_pcs = memac_pcs_create(mac_node, err); in memac_initialization() 1113 err = of_property_match_string(mac_node, "pcs-handle-names", "qsgmii"); in memac_initialization() 1115 memac->qsgmii_pcs = memac_pcs_create(mac_node, err); in memac_initialization() 1129 err = of_property_match_string(mac_node, "pcs-handle-names", "sgmii"); in memac_initialization() 1131 pcs = memac_pcs_create(mac_node, 0); in memac_initialization() 1135 pcs = memac_pcs_create(mac_node, er in memac_initialization() [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() argument 1431 phy_node = of_parse_phandle(mac_node, "tbi-handle", 0); in dtsec_initialization()
|
H A D | fman_tgec.c | 760 struct device_node *mac_node, in tgec_initialization() argument
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_main.c | 913 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() 956 struct hclgevf_mac_addr_node *mac_node; hclgevf_update_mac_list() local 1023 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 1053 struct hclgevf_mac_addr_node *mac_node, *tmp; hclgevf_config_mac_list() local 1078 struct hclgevf_mac_addr_node *mac_node, *tmp, *new_node; hclgevf_sync_from_add_list() local 1106 struct hclgevf_mac_addr_node *mac_node, *tmp, *new_node; hclgevf_sync_from_del_list() local 1127 struct hclgevf_mac_addr_node *mac_node, *tmp; hclgevf_clear_list() local 1138 struct hclgevf_mac_addr_node *mac_node, *tmp, *new_node; hclgevf_sync_mac_list() local [all...] |
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_main.c | 8501 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() 8546 struct hclge_mac_node *mac_node; hclge_update_mac_list() local 8826 struct hclge_mac_node *mac_node, *tmp; hclge_sync_vport_mac_list() local 8862 struct hclge_mac_node *mac_node, *tmp; hclge_unsync_vport_mac_list() local 8886 struct hclge_mac_node *mac_node, *tmp, *new_node; hclge_sync_from_add_list() local 8921 struct hclge_mac_node *mac_node, *tmp, *new_node; hclge_sync_from_del_list() local 8962 struct hclge_mac_node *mac_node, *tmp, *new_node; hclge_sync_vport_mac_table() local 9134 struct hclge_mac_node *mac_node, *tmp; hclge_uninit_vport_mac_list() local 10269 struct hclge_mac_node *mac_node, *tmp; hclge_mac_node_convert_for_reset() local [all...] |
/linux/drivers/net/ethernet/freescale/dpaa/ |
H A D | dpaa_ethtool.c | 356 struct device_node *mac_node = dev->of_node; in dpaa_get_ts_info() local 363 fman_node = of_get_parent(mac_node); in dpaa_get_ts_info()
|