Lines Matching refs:mac_addr
563 cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_dual_emac_def_ale_entries()
712 cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, HOST_PORT_NUM, in cpsw_init_host_port()
992 cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, HOST_PORT_NUM, in cpsw_ndo_set_mac_address()
997 memcpy(priv->mac_addr, addr->sa_data, ETH_ALEN); in cpsw_ndo_set_mac_address()
998 memcpy(ndev->dev_addr, priv->mac_addr, ETH_ALEN); in cpsw_ndo_set_mac_address()
1036 ret = cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_vlan_ale_entry()
1048 cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_vlan_ale_entry()
1120 ret |= cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, in cpsw_ndo_vlan_rx_kill_vid()
1311 const void *mac_addr = NULL; in cpsw_probe_dt() local
1383 mac_addr = of_get_mac_address(slave_node); in cpsw_probe_dt()
1384 if (!IS_ERR(mac_addr)) { in cpsw_probe_dt()
1385 ether_addr_copy(slave_data->mac_addr, mac_addr); in cpsw_probe_dt()
1388 slave_data->mac_addr); in cpsw_probe_dt()
1468 if (is_valid_ether_addr(data->slave_data[1].mac_addr)) { in cpsw_probe_dual_emac()
1469 memcpy(priv_sl2->mac_addr, data->slave_data[1].mac_addr, in cpsw_probe_dual_emac()
1472 priv_sl2->mac_addr); in cpsw_probe_dual_emac()
1474 eth_random_addr(priv_sl2->mac_addr); in cpsw_probe_dual_emac()
1476 priv_sl2->mac_addr); in cpsw_probe_dual_emac()
1478 memcpy(ndev->dev_addr, priv_sl2->mac_addr, ETH_ALEN); in cpsw_probe_dual_emac()
1650 if (is_valid_ether_addr(data->slave_data[0].mac_addr)) { in cpsw_probe()
1651 memcpy(priv->mac_addr, data->slave_data[0].mac_addr, ETH_ALEN); in cpsw_probe()
1652 dev_info(dev, "Detected MACID = %pM\n", priv->mac_addr); in cpsw_probe()
1654 eth_random_addr(priv->mac_addr); in cpsw_probe()
1655 dev_info(dev, "Random MACID = %pM\n", priv->mac_addr); in cpsw_probe()
1658 memcpy(ndev->dev_addr, priv->mac_addr, ETH_ALEN); in cpsw_probe()