| /drivers/net/ethernet/intel/fm10k/ |
| A D | fm10k_vf.c | 14 u8 *perm_addr = hw->mac.perm_addr; in fm10k_stop_hw_vf() local 26 bal = (((u32)perm_addr[3]) << 24) | in fm10k_stop_hw_vf() 27 (((u32)perm_addr[4]) << 16) | in fm10k_stop_hw_vf() 28 (((u32)perm_addr[5]) << 8); in fm10k_stop_hw_vf() 31 (((u32)perm_addr[1]) << 8) | in fm10k_stop_hw_vf() 32 ((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() 214 ether_addr_copy(hw->mac.perm_addr, perm_addr); in fm10k_msg_mac_vlan_vf() 229 u8 perm_addr[ETH_ALEN]; in fm10k_read_mac_addr_vf() local [all …]
|
| A D | fm10k_pf.c | 250 u8 perm_addr[ETH_ALEN]; in fm10k_read_mac_addr_pf() local 259 perm_addr[0] = (u8)(serial_num >> 24); in fm10k_read_mac_addr_pf() 260 perm_addr[1] = (u8)(serial_num >> 16); in fm10k_read_mac_addr_pf() 261 perm_addr[2] = (u8)(serial_num >> 8); in fm10k_read_mac_addr_pf() 269 perm_addr[3] = (u8)(serial_num >> 16); in fm10k_read_mac_addr_pf() 270 perm_addr[4] = (u8)(serial_num >> 8); in fm10k_read_mac_addr_pf() 271 perm_addr[5] = (u8)(serial_num); in fm10k_read_mac_addr_pf() 273 ether_addr_copy(hw->mac.perm_addr, perm_addr); in fm10k_read_mac_addr_pf() 274 ether_addr_copy(hw->mac.addr, perm_addr); in fm10k_read_mac_addr_pf()
|
| A D | fm10k_pci.c | 299 if (is_valid_ether_addr(hw->mac.perm_addr)) { in fm10k_handle_reset() 300 ether_addr_copy(hw->mac.addr, hw->mac.perm_addr); in fm10k_handle_reset() 301 ether_addr_copy(netdev->perm_addr, hw->mac.perm_addr); in fm10k_handle_reset() 302 eth_hw_addr_set(netdev, hw->mac.perm_addr); in fm10k_handle_reset() 1472 if (is_valid_ether_addr(hw->mac.perm_addr) && in fm10k_mbx_mac_addr() 1473 !ether_addr_equal(hw->mac.perm_addr, hw->mac.addr)) in fm10k_mbx_mac_addr() 2048 ether_addr_copy(netdev->perm_addr, hw->mac.addr); in fm10k_sw_init() 2050 if (!is_valid_ether_addr(netdev->perm_addr)) { in fm10k_sw_init()
|
| /drivers/net/ethernet/intel/igc/ |
| A D | igc_nvm.c | 93 hw->mac.perm_addr[i] = (u8)(rar_low >> (i * 8)); in igc_read_mac_addr() 96 hw->mac.perm_addr[i + 4] = (u8)(rar_high >> (i * 8)); in igc_read_mac_addr() 99 hw->mac.addr[i] = hw->mac.perm_addr[i]; in igc_read_mac_addr()
|
| /drivers/net/ethernet/wangxun/ngbevf/ |
| A D | ngbevf_main.c | 97 ether_addr_copy(wx->mac.perm_addr, netdev->dev_addr); in ngbevf_sw_init() 197 eth_hw_addr_set(netdev, wx->mac.perm_addr); in ngbevf_probe() 198 ether_addr_copy(netdev->perm_addr, wx->mac.addr); in ngbevf_probe()
|
| /drivers/net/ethernet/wangxun/txgbevf/ |
| A D | txgbevf_main.c | 141 ether_addr_copy(wx->mac.perm_addr, netdev->dev_addr); in txgbevf_sw_init() 250 eth_hw_addr_set(netdev, wx->mac.perm_addr); in txgbevf_probe() 251 ether_addr_copy(netdev->perm_addr, wx->mac.addr); in txgbevf_probe()
|
| /drivers/net/wireless/ath/ath9k/ |
| A 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()
|
| A D | link.c | 278 memcpy(hdr->addr1, hw->wiphy->perm_addr, ETH_ALEN); in ath_paprd_calibrate() 279 memcpy(hdr->addr2, hw->wiphy->perm_addr, ETH_ALEN); in ath_paprd_calibrate() 280 memcpy(hdr->addr3, hw->wiphy->perm_addr, ETH_ALEN); in ath_paprd_calibrate()
|
| /drivers/net/ethernet/intel/igbvf/ |
| A 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()
|
| /drivers/net/wireless/st/cw1200/ |
| A D | main.c | 341 if (hw->wiphy->perm_addr[3] == 0 && in cw1200_init_common() 342 hw->wiphy->perm_addr[4] == 0 && in cw1200_init_common() 343 hw->wiphy->perm_addr[5] == 0) { in cw1200_init_common() 344 get_random_bytes(&hw->wiphy->perm_addr[3], 3); in cw1200_init_common()
|
| /drivers/net/ethernet/intel/e1000e/ |
| A 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/ice/ |
| A D | ice_dcb_nl.c | 205 static void ice_dcbnl_get_perm_hw_addr(struct net_device *netdev, u8 *perm_addr) in ice_dcbnl_get_perm_hw_addr() argument 211 memset(perm_addr, 0xff, MAX_ADDR_LEN); in ice_dcbnl_get_perm_hw_addr() 214 perm_addr[i] = pi->mac.perm_addr[i]; in ice_dcbnl_get_perm_hw_addr() 217 perm_addr[i] = pi->mac.perm_addr[j]; in ice_dcbnl_get_perm_hw_addr()
|
| /drivers/net/ethernet/intel/ixgbevf/ |
| A D | vf.c | 118 ether_addr_copy(hw->mac.perm_addr, addr); in ixgbevf_reset_hw_vf() 141 &hw->mac.perm_addr[i]); in ixgbevf_hv_reset_hw_vf() 245 ether_addr_copy(mac_addr, hw->mac.perm_addr); in ixgbevf_get_mac_addr_vf() 471 if (ether_addr_equal(addr, hw->mac.perm_addr)) in ixgbevf_hv_set_rar_vf()
|
| /drivers/net/ethernet/sfc/ |
| A D | ef100_netdev.c | 481 rc = ef100_get_mac_address(efx, net_dev->perm_addr, CLIENT_HANDLE_SELF, in ef100_probe_netdev() 486 eth_hw_addr_set(net_dev, net_dev->perm_addr); in ef100_probe_netdev() 487 ether_addr_copy(nic_data->port_id, net_dev->perm_addr); in ef100_probe_netdev()
|
| /drivers/net/ethernet/intel/ixgbe/ |
| A D | ixgbe_dcb_nl.c | 143 u8 *perm_addr) in ixgbe_dcbnl_get_perm_hw_addr() argument 148 memset(perm_addr, 0xff, MAX_ADDR_LEN); in ixgbe_dcbnl_get_perm_hw_addr() 151 perm_addr[i] = adapter->hw.mac.perm_addr[i]; in ixgbe_dcbnl_get_perm_hw_addr() 159 perm_addr[i] = adapter->hw.mac.san_addr[j]; in ixgbe_dcbnl_get_perm_hw_addr()
|
| /drivers/net/wireless/intersil/p54/ |
| A 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/netdevsim/ |
| A D | netdevsim.h | 148 u8 perm_addr[ETH_ALEN]); 368 u8 perm_addr[ETH_ALEN]);
|
| /drivers/net/ethernet/intel/igb/ |
| A 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/ethernet/wangxun/ngbe/ |
| A D | ngbe_hw.c | 91 wx_get_mac_addr(wx, wx->mac.perm_addr); in ngbe_reset_hw()
|
| /drivers/net/ethernet/intel/i40e/ |
| A D | i40e_dcb_nl.c | 826 u8 *perm_addr) in i40e_dcbnl_get_perm_hw_addr() argument 831 memset(perm_addr, 0xff, MAX_ADDR_LEN); in i40e_dcbnl_get_perm_hw_addr() 834 perm_addr[i] = pf->hw.mac.perm_addr[i]; in i40e_dcbnl_get_perm_hw_addr()
|
| /drivers/net/wireless/admtek/ |
| A D | adm8211.c | 1789 u8 perm_addr[ETH_ALEN]; in adm8211_probe() local 1870 *(__le32 *)perm_addr = cpu_to_le32(ADM8211_CSR_READ(PAR0)); in adm8211_probe() 1871 *(__le16 *)&perm_addr[4] = in adm8211_probe() 1874 if (!is_valid_ether_addr(perm_addr)) { in adm8211_probe() 1877 eth_random_addr(perm_addr); in adm8211_probe() 1879 SET_IEEE80211_PERM_ADDR(dev, perm_addr); in adm8211_probe() 1927 dev->wiphy->perm_addr, pdev->revision); in adm8211_probe()
|
| /drivers/net/ |
| A D | ntb_netdev.c | 430 eth_random_addr(ndev->perm_addr); in ntb_netdev_probe() 431 dev_addr_set(ndev, ndev->perm_addr); in ntb_netdev_probe()
|
| /drivers/net/ethernet/wangxun/libwx/ |
| A D | wx_vf_common.c | 150 ether_addr_copy(netdev->perm_addr, wx->mac.addr); in wx_reset_vf() 241 memcpy(wx->mac.perm_addr, addr->sa_data, netdev->addr_len); in wx_set_mac_vf()
|
| /drivers/net/ethernet/qlogic/qede/ |
| A 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/ |
| A 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 eth_hw_addr_set(ndev, ndev->perm_addr); in wil_reset()
|