• Home
  • Raw
  • Download

Lines Matching refs:mac_addr

314 	char mac_addr[6];  member
606 static int emac_hash_add(struct emac_priv *priv, u8 *mac_addr) in emac_hash_add() argument
611 u32 hash_value = hash_get(mac_addr); in emac_hash_add()
648 static int emac_hash_del(struct emac_priv *priv, u8 *mac_addr) in emac_hash_del() argument
653 hash_value = hash_get(mac_addr); in emac_hash_del()
691 static void emac_add_mcast(struct emac_priv *priv, u32 action, u8 *mac_addr) in emac_add_mcast() argument
698 update = emac_hash_add(priv, mac_addr); in emac_add_mcast()
701 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()
1428 ndev->dev_addr[cnt] = priv->mac_addr[cnt]; in emac_dev_open()
1702 const u8 *mac_addr; in davinci_emac_of_get_pdata() local
1714 if (!is_valid_ether_addr(pdata->mac_addr)) { in davinci_emac_of_get_pdata()
1715 mac_addr = of_get_mac_address(np); in davinci_emac_of_get_pdata()
1716 if (!IS_ERR(mac_addr)) in davinci_emac_of_get_pdata()
1717 ether_addr_copy(pdata->mac_addr, mac_addr); in davinci_emac_of_get_pdata()
1761 int instance, u8 *mac_addr) in davinci_emac_try_get_mac() argument
1766 return ti_cm_get_macid(&pdev->dev, instance, mac_addr); in davinci_emac_try_get_mac()
1822 memcpy(priv->mac_addr, pdata->mac_addr, ETH_ALEN); in davinci_emac_probe()
1909 rc = davinci_emac_try_get_mac(pdev, res_ctrl ? 0 : 1, priv->mac_addr); in davinci_emac_probe()
1911 ether_addr_copy(ndev->dev_addr, priv->mac_addr); in davinci_emac_probe()
1913 if (!is_valid_ether_addr(priv->mac_addr)) { in davinci_emac_probe()
1916 memcpy(priv->mac_addr, ndev->dev_addr, ndev->addr_len); in davinci_emac_probe()
1918 priv->mac_addr); in davinci_emac_probe()