/linux/drivers/net/ethernet/intel/fm10k/ |
A D | fm10k_vf.c | 13 u8 *perm_addr = hw->mac.perm_addr; in fm10k_stop_hw_vf() local 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() 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() 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 | 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()
|
A 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 eth_hw_addr_set(netdev, 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()
|
/linux/net/core/ |
A D | failover.c | 28 if (ether_addr_equal(failover_dev->perm_addr, mac)) { in failover_get_bymac() 58 failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops); in failover_slave_register() 114 failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops); in failover_slave_unregister() 145 failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops); in failover_slave_link_change() 170 failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops); in failover_slave_name_change() 224 if (ether_addr_equal(failover_dev->perm_addr, dev->perm_addr)) in failover_existing_slave_register()
|
/linux/drivers/net/ethernet/intel/igc/ |
A 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()
|
/linux/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 | 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()
|
/linux/net/wireless/ |
A D | sysfs.c | 37 SHOW_FMT(macaddress, "%pM", wiphy.perm_addr); 59 return sprintf(buf, "%pM\n", wiphy->perm_addr); in addresses_show()
|
/linux/drivers/net/wireless/st/cw1200/ |
A 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()
|
/linux/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()
|
/linux/net/mac80211/ |
A D | iface.c | 1142 eth_hw_addr_set(dev, local->hw.wiphy->perm_addr); in ieee80211_do_open() 1143 memcpy(dev->perm_addr, dev->dev_addr, ETH_ALEN); in ieee80211_do_open() 1783 u8 *perm_addr, enum nl80211_iftype type) in ieee80211_assign_perm_addr() argument 1792 memcpy(perm_addr, local->hw.wiphy->perm_addr, ETH_ALEN); in ieee80211_assign_perm_addr() 1809 memcpy(perm_addr, sdata->vif.addr, ETH_ALEN); in ieee80211_assign_perm_addr() 1822 memcpy(perm_addr, sdata->vif.addr, ETH_ALEN); in ieee80211_assign_perm_addr() 1841 memcpy(perm_addr, in ieee80211_assign_perm_addr() 1867 m = local->hw.wiphy->perm_addr; in ieee80211_assign_perm_addr() 1901 memcpy(perm_addr, tmp_addr, ETH_ALEN); in ieee80211_assign_perm_addr() 1994 ieee80211_assign_perm_addr(local, ndev->perm_addr, type); in ieee80211_if_add() [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_dcb_nl.c | 195 static void ice_dcbnl_get_perm_hw_addr(struct net_device *netdev, u8 *perm_addr) in ice_dcbnl_get_perm_hw_addr() argument 201 memset(perm_addr, 0xff, MAX_ADDR_LEN); in ice_dcbnl_get_perm_hw_addr() 204 perm_addr[i] = pi->mac.perm_addr[i]; in ice_dcbnl_get_perm_hw_addr() 207 perm_addr[i] = pi->mac.perm_addr[j]; in ice_dcbnl_get_perm_hw_addr()
|
/linux/drivers/net/ethernet/intel/ixgbevf/ |
A D | vf.c | 116 ether_addr_copy(hw->mac.perm_addr, addr); in ixgbevf_reset_hw_vf() 139 &hw->mac.perm_addr[i]); in ixgbevf_hv_reset_hw_vf() 243 ether_addr_copy(mac_addr, hw->mac.perm_addr); in ixgbevf_get_mac_addr_vf() 467 if (ether_addr_equal(addr, hw->mac.perm_addr)) in ixgbevf_hv_set_rar_vf()
|
/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e_dcb_nl.c | 827 u8 *perm_addr) in i40e_dcbnl_get_perm_hw_addr() argument 832 memset(perm_addr, 0xff, MAX_ADDR_LEN); in i40e_dcbnl_get_perm_hw_addr() 835 perm_addr[i] = pf->hw.mac.perm_addr[i]; in i40e_dcbnl_get_perm_hw_addr() 838 perm_addr[i] = pf->hw.mac.san_addr[j]; in i40e_dcbnl_get_perm_hw_addr()
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
A 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()
|
/linux/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()
|
/linux/drivers/net/ethernet/intel/igbvf/ |
A D | vf.c | 136 memcpy(hw->mac.perm_addr, addr, ETH_ALEN); in e1000_reset_hw_vf() 321 memcpy(hw->mac.addr, hw->mac.perm_addr, ETH_ALEN); in e1000_read_mac_addr_vf()
|
A D | vf.h | 173 u8 perm_addr[6]; member
|
/linux/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()
|
/linux/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()
|
/linux/drivers/net/wireless/admtek/ |
A D | adm8211.c | 1784 u8 perm_addr[ETH_ALEN]; in adm8211_probe() local 1865 *(__le32 *)perm_addr = cpu_to_le32(ADM8211_CSR_READ(PAR0)); in adm8211_probe() 1866 *(__le16 *)&perm_addr[4] = in adm8211_probe() 1869 if (!is_valid_ether_addr(perm_addr)) { in adm8211_probe() 1872 eth_random_addr(perm_addr); in adm8211_probe() 1874 SET_IEEE80211_PERM_ADDR(dev, perm_addr); in adm8211_probe() 1922 dev->wiphy->perm_addr, pdev->revision); in adm8211_probe()
|
/linux/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()
|
/linux/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()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_dcbnl.c | 682 u8 *perm_addr) in mlx5e_dcbnl_getpermhwaddr() argument 686 if (!perm_addr) in mlx5e_dcbnl_getpermhwaddr() 689 memset(perm_addr, 0xff, MAX_ADDR_LEN); in mlx5e_dcbnl_getpermhwaddr() 691 mlx5_query_mac_address(priv->mdev, perm_addr); in mlx5e_dcbnl_getpermhwaddr()
|
/linux/drivers/net/wireless/zydas/zd1211rw/ |
A D | zd_mac.h | 290 return mac->hw->wiphy->perm_addr; in zd_mac_get_perm_addr()
|