/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_vf.c | 13 u8 *perm_addr = hw->mac.perm_addr; in fm10k_stop_hw_vf() local 24 if (is_valid_ether_addr(perm_addr)) { in fm10k_stop_hw_vf() 25 bal = (((u32)perm_addr[3]) << 24) | in fm10k_stop_hw_vf() 26 (((u32)perm_addr[4]) << 16) | in fm10k_stop_hw_vf() 27 (((u32)perm_addr[5]) << 8); in fm10k_stop_hw_vf() 29 (((u32)perm_addr[0]) << 16) | in fm10k_stop_hw_vf() 30 (((u32)perm_addr[1]) << 8) | in fm10k_stop_hw_vf() 31 ((u32)perm_addr[2]); in fm10k_stop_hw_vf() 203 u8 perm_addr[ETH_ALEN]; in fm10k_msg_mac_vlan_vf() local 210 perm_addr, &vid); in fm10k_msg_mac_vlan_vf() [all …]
|
D | fm10k_pf.c | 249 u8 perm_addr[ETH_ALEN]; in fm10k_read_mac_addr_pf() local 258 perm_addr[0] = (u8)(serial_num >> 24); in fm10k_read_mac_addr_pf() 259 perm_addr[1] = (u8)(serial_num >> 16); in fm10k_read_mac_addr_pf() 260 perm_addr[2] = (u8)(serial_num >> 8); in fm10k_read_mac_addr_pf() 268 perm_addr[3] = (u8)(serial_num >> 16); in fm10k_read_mac_addr_pf() 269 perm_addr[4] = (u8)(serial_num >> 8); in fm10k_read_mac_addr_pf() 270 perm_addr[5] = (u8)(serial_num); in fm10k_read_mac_addr_pf() 272 ether_addr_copy(hw->mac.perm_addr, perm_addr); in fm10k_read_mac_addr_pf() 273 ether_addr_copy(hw->mac.addr, perm_addr); in fm10k_read_mac_addr_pf()
|
D | fm10k_pci.c | 300 if (is_valid_ether_addr(hw->mac.perm_addr)) { in fm10k_handle_reset() 301 ether_addr_copy(hw->mac.addr, hw->mac.perm_addr); in fm10k_handle_reset() 302 ether_addr_copy(netdev->perm_addr, hw->mac.perm_addr); in fm10k_handle_reset() 303 ether_addr_copy(netdev->dev_addr, hw->mac.perm_addr); in fm10k_handle_reset() 1473 if (is_valid_ether_addr(hw->mac.perm_addr) && in fm10k_mbx_mac_addr() 1474 !ether_addr_equal(hw->mac.perm_addr, hw->mac.addr)) in fm10k_mbx_mac_addr() 2049 ether_addr_copy(netdev->perm_addr, hw->mac.addr); in fm10k_sw_init() 2051 if (!is_valid_ether_addr(netdev->perm_addr)) { in fm10k_sw_init()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_dcb_nl.c | 117 u8 *perm_addr) in i40e_dcbnl_get_perm_hw_addr() argument 122 memset(perm_addr, 0xff, MAX_ADDR_LEN); in i40e_dcbnl_get_perm_hw_addr() 125 perm_addr[i] = pf->hw.mac.perm_addr[i]; in i40e_dcbnl_get_perm_hw_addr() 128 perm_addr[i] = pf->hw.mac.san_addr[j]; in i40e_dcbnl_get_perm_hw_addr()
|
/drivers/net/ethernet/intel/igc/ |
D | igc_nvm.c | 143 hw->mac.perm_addr[i] = (u8)(rar_low >> (i * 8)); in igc_read_mac_addr() 146 hw->mac.perm_addr[i + 4] = (u8)(rar_high >> (i * 8)); in igc_read_mac_addr() 149 hw->mac.addr[i] = hw->mac.perm_addr[i]; in igc_read_mac_addr()
|
/drivers/net/wireless/ath/ath9k/ |
D | tx99.c | 71 memcpy(hdr->addr1, hw->wiphy->perm_addr, ETH_ALEN); in ath9k_build_tx99_skb() 72 memcpy(hdr->addr2, hw->wiphy->perm_addr, ETH_ALEN); in ath9k_build_tx99_skb() 73 memcpy(hdr->addr3, hw->wiphy->perm_addr, ETH_ALEN); in ath9k_build_tx99_skb()
|
D | link.c | 249 memcpy(hdr->addr1, hw->wiphy->perm_addr, ETH_ALEN); in ath_paprd_calibrate() 250 memcpy(hdr->addr2, hw->wiphy->perm_addr, ETH_ALEN); in ath_paprd_calibrate() 251 memcpy(hdr->addr3, hw->wiphy->perm_addr, ETH_ALEN); in ath_paprd_calibrate()
|
/drivers/net/ethernet/intel/igbvf/ |
D | vf.c | 138 memcpy(hw->mac.perm_addr, addr, ETH_ALEN); in e1000_reset_hw_vf() 141 eth_zero_addr(hw->mac.perm_addr); in e1000_reset_hw_vf() 328 memcpy(hw->mac.addr, hw->mac.perm_addr, ETH_ALEN); in e1000_read_mac_addr_vf()
|
D | vf.h | 173 u8 perm_addr[6]; member
|
/drivers/net/wireless/st/cw1200/ |
D | main.c | 336 if (hw->wiphy->perm_addr[3] == 0 && in cw1200_init_common() 337 hw->wiphy->perm_addr[4] == 0 && in cw1200_init_common() 338 hw->wiphy->perm_addr[5] == 0) { in cw1200_init_common() 339 get_random_bytes(&hw->wiphy->perm_addr[3], 3); in cw1200_init_common()
|
/drivers/net/ethernet/intel/ice/ |
D | ice_dcb_nl.c | 190 static void ice_dcbnl_get_perm_hw_addr(struct net_device *netdev, u8 *perm_addr) in ice_dcbnl_get_perm_hw_addr() argument 196 memset(perm_addr, 0xff, MAX_ADDR_LEN); in ice_dcbnl_get_perm_hw_addr() 199 perm_addr[i] = pi->mac.perm_addr[i]; in ice_dcbnl_get_perm_hw_addr() 202 perm_addr[i] = pi->mac.perm_addr[j]; in ice_dcbnl_get_perm_hw_addr()
|
/drivers/net/ethernet/intel/e1000e/ |
D | nvm.c | 528 hw->mac.perm_addr[i] = (u8)(rar_low >> (i * 8)); in e1000_read_mac_addr_generic() 531 hw->mac.perm_addr[i + 4] = (u8)(rar_high >> (i * 8)); in e1000_read_mac_addr_generic() 534 hw->mac.addr[i] = hw->mac.perm_addr[i]; in e1000_read_mac_addr_generic()
|
/drivers/net/ethernet/intel/ixgbevf/ |
D | vf.c | 116 ether_addr_copy(hw->mac.perm_addr, addr); in ixgbevf_reset_hw_vf() 137 &hw->mac.perm_addr[i]); in ixgbevf_hv_reset_hw_vf() 241 ether_addr_copy(mac_addr, hw->mac.perm_addr); in ixgbevf_get_mac_addr_vf() 465 if (ether_addr_equal(addr, hw->mac.perm_addr)) in ixgbevf_hv_set_rar_vf()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_dcb_nl.c | 145 u8 *perm_addr) in ixgbe_dcbnl_get_perm_hw_addr() argument 150 memset(perm_addr, 0xff, MAX_ADDR_LEN); in ixgbe_dcbnl_get_perm_hw_addr() 153 perm_addr[i] = adapter->hw.mac.perm_addr[i]; in ixgbe_dcbnl_get_perm_hw_addr() 160 perm_addr[i] = adapter->hw.mac.san_addr[j]; in ixgbe_dcbnl_get_perm_hw_addr()
|
/drivers/net/wireless/intersil/p54/ |
D | eeprom.c | 914 if (!is_valid_ether_addr(dev->wiphy->perm_addr)) { in p54_parse_eeprom() 915 u8 perm_addr[ETH_ALEN]; in p54_parse_eeprom() local 919 eth_random_addr(perm_addr); in p54_parse_eeprom() 920 SET_IEEE80211_PERM_ADDR(dev, perm_addr); in p54_parse_eeprom() 926 dev->wiphy->perm_addr, priv->version, in p54_parse_eeprom()
|
/drivers/net/ethernet/intel/igb/ |
D | e1000_nvm.c | 606 hw->mac.perm_addr[i] = (u8)(rar_low >> (i*8)); in igb_read_mac_addr() 609 hw->mac.perm_addr[i+4] = (u8)(rar_high >> (i*8)); in igb_read_mac_addr() 612 hw->mac.addr[i] = hw->mac.perm_addr[i]; in igb_read_mac_addr()
|
/drivers/net/wimax/i2400m/ |
D | driver.c | 224 if (!memcmp(net_dev->perm_addr, ddi->mac_address, in i2400m_check_mac_addr() 230 dev_warn(dev, "boot mode reported %pM\n", net_dev->perm_addr); in i2400m_check_mac_addr() 237 memcpy(net_dev->perm_addr, ddi->mac_address, ETH_ALEN); in i2400m_check_mac_addr()
|
/drivers/net/ |
D | ntb_netdev.c | 430 eth_random_addr(ndev->perm_addr); in ntb_netdev_probe() 431 memcpy(ndev->dev_addr, ndev->perm_addr, ndev->addr_len); in ntb_netdev_probe()
|
/drivers/net/wireless/admtek/ |
D | adm8211.c | 1785 u8 perm_addr[ETH_ALEN]; in adm8211_probe() local 1866 *(__le32 *)perm_addr = cpu_to_le32(ADM8211_CSR_READ(PAR0)); in adm8211_probe() 1867 *(__le16 *)&perm_addr[4] = in adm8211_probe() 1870 if (!is_valid_ether_addr(perm_addr)) { in adm8211_probe() 1873 eth_random_addr(perm_addr); in adm8211_probe() 1875 SET_IEEE80211_PERM_ADDR(dev, perm_addr); in adm8211_probe() 1923 dev->wiphy->perm_addr, pdev->revision); in adm8211_probe()
|
/drivers/net/ethernet/qlogic/qede/ |
D | qede_dcbnl.c | 28 u8 *perm_addr) in qede_dcbnl_getpermhwaddr() argument 30 memcpy(perm_addr, netdev->dev_addr, netdev->addr_len); in qede_dcbnl_getpermhwaddr()
|
/drivers/net/wireless/ath/wil6210/ |
D | main.c | 1358 ether_addr_copy(ndev->perm_addr, mac); in wil_get_bl_info() 1359 ether_addr_copy(wiphy->perm_addr, mac); in wil_get_bl_info() 1431 ether_addr_copy(ndev->perm_addr, mac); in wil_get_otp_info() 1432 ether_addr_copy(wiphy->perm_addr, mac); in wil_get_otp_info() 1611 ether_addr_copy(ndev->perm_addr, mac); in wil_reset() 1612 ether_addr_copy(ndev->dev_addr, ndev->perm_addr); in wil_reset()
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_vfr.c | 385 dev->perm_addr); in bnxt_vf_rep_netdev_init() 386 ether_addr_copy(dev->dev_addr, dev->perm_addr); in bnxt_vf_rep_netdev_init()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_dcbnl.c | 684 u8 *perm_addr) in mlx5e_dcbnl_getpermhwaddr() argument 688 if (!perm_addr) in mlx5e_dcbnl_getpermhwaddr() 691 memset(perm_addr, 0xff, MAX_ADDR_LEN); in mlx5e_dcbnl_getpermhwaddr() 693 mlx5_query_mac_address(priv->mdev, perm_addr); in mlx5e_dcbnl_getpermhwaddr()
|
/drivers/net/wireless/zydas/zd1211rw/ |
D | zd_mac.h | 290 return mac->hw->wiphy->perm_addr; in zd_mac_get_perm_addr()
|
/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | init.c | 425 mphy->hw->wiphy->perm_addr[0] |= 2; in mt7615_register_ext_phy() 426 mphy->hw->wiphy->perm_addr[0] ^= BIT(7); in mt7615_register_ext_phy()
|