Lines Matching refs:mac_addr

328 	char mac_addr[6];  member
607 static int emac_hash_add(struct emac_priv *priv, u8 *mac_addr) in emac_hash_add() argument
612 u32 hash_value = hash_get(mac_addr); in emac_hash_add()
649 static int emac_hash_del(struct emac_priv *priv, u8 *mac_addr) in emac_hash_del() argument
654 hash_value = hash_get(mac_addr); in emac_hash_del()
692 static void emac_add_mcast(struct emac_priv *priv, u32 action, u8 *mac_addr) in emac_add_mcast() argument
699 update = emac_hash_add(priv, mac_addr); in emac_add_mcast()
702 update = emac_hash_del(priv, mac_addr); in emac_add_mcast()
1025 static void emac_set_type0addr(struct emac_priv *priv, u32 ch, char *mac_addr) in emac_set_type0addr() argument
1028 val = ((mac_addr[5] << 8) | (mac_addr[4])); in emac_set_type0addr()
1031 val = ((mac_addr[3] << 24) | (mac_addr[2] << 16) | \ in emac_set_type0addr()
1032 (mac_addr[1] << 8) | (mac_addr[0])); in emac_set_type0addr()
1052 static void emac_set_type1addr(struct emac_priv *priv, u32 ch, char *mac_addr) in emac_set_type1addr() argument
1056 val = ((mac_addr[5] << 8) | mac_addr[4]); in emac_set_type1addr()
1058 val = ((mac_addr[3] << 24) | (mac_addr[2] << 16) | \ in emac_set_type1addr()
1059 (mac_addr[1] << 8) | (mac_addr[0])); in emac_set_type1addr()
1061 emac_set_type0addr(priv, ch, mac_addr); in emac_set_type1addr()
1077 char *mac_addr, int index, int match) in emac_set_type2addr() argument
1081 val = ((mac_addr[3] << 24) | (mac_addr[2] << 16) | \ in emac_set_type2addr()
1082 (mac_addr[1] << 8) | (mac_addr[0])); in emac_set_type2addr()
1084 val = ((mac_addr[5] << 8) | mac_addr[4] | ((ch & 0x7) << 16) | \ in emac_set_type2addr()
1087 emac_set_type0addr(priv, ch, mac_addr); in emac_set_type2addr()
1100 static void emac_setmac(struct emac_priv *priv, u32 ch, char *mac_addr) in emac_setmac() argument
1105 emac_set_type0addr(priv, ch, mac_addr); in emac_setmac()
1109 emac_set_type1addr(priv, ch, mac_addr); in emac_setmac()
1111 emac_set_type2addr(priv, ch, mac_addr, ch, 1); in emac_setmac()
1112 emac_set_type0addr(priv, ch, mac_addr); in emac_setmac()
1138 memcpy(priv->mac_addr, sa->sa_data, ndev->addr_len); in emac_dev_setmac_addr()
1143 emac_setmac(priv, EMAC_DEF_RX_CH, priv->mac_addr); in emac_dev_setmac_addr()
1148 priv->mac_addr); in emac_dev_setmac_addr()
1209 emac_setmac(priv, EMAC_DEF_RX_CH, priv->mac_addr); in emac_hw_enable()
1429 ndev->dev_addr[cnt] = priv->mac_addr[cnt]; in emac_dev_open()
1703 const u8 *mac_addr; in davinci_emac_of_get_pdata() local
1715 if (!is_valid_ether_addr(pdata->mac_addr)) { in davinci_emac_of_get_pdata()
1716 mac_addr = of_get_mac_address(np); in davinci_emac_of_get_pdata()
1717 if (mac_addr) in davinci_emac_of_get_pdata()
1718 ether_addr_copy(pdata->mac_addr, mac_addr); in davinci_emac_of_get_pdata()
1762 int instance, u8 *mac_addr) in davinci_emac_try_get_mac() argument
1767 return ti_cm_get_macid(&pdev->dev, instance, mac_addr); in davinci_emac_try_get_mac()
1823 memcpy(priv->mac_addr, pdata->mac_addr, ETH_ALEN); in davinci_emac_probe()
1910 rc = davinci_emac_try_get_mac(pdev, res_ctrl ? 0 : 1, priv->mac_addr); in davinci_emac_probe()
1912 ether_addr_copy(ndev->dev_addr, priv->mac_addr); in davinci_emac_probe()
1914 if (!is_valid_ether_addr(priv->mac_addr)) { in davinci_emac_probe()
1917 memcpy(priv->mac_addr, ndev->dev_addr, ndev->addr_len); in davinci_emac_probe()
1919 priv->mac_addr); in davinci_emac_probe()