Home
last modified time | relevance | path

Searched refs:perm_addr (Results 1 – 25 of 129) sorted by relevance

123456

/linux-6.6.21/drivers/net/ethernet/intel/fm10k/
Dfm10k_vf.c13 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 …]
Dfm10k_pf.c249 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()
Dfm10k_pci.c299 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()
/linux-6.6.21/net/core/
Dfailover.c28 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-6.6.21/drivers/net/ethernet/intel/igc/
Digc_nvm.c143 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-6.6.21/drivers/net/wireless/ath/ath9k/
Dtx99.c71 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()
Dlink.c249 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-6.6.21/net/wireless/
Dsysfs.c37 SHOW_FMT(macaddress, "%pM", wiphy.perm_addr);
59 return sprintf(buf, "%pM\n", wiphy->perm_addr); in addresses_show()
/linux-6.6.21/drivers/net/ethernet/intel/igbvf/
Dvf.c138 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()
Dvf.h173 u8 perm_addr[6]; member
/linux-6.6.21/drivers/net/wireless/st/cw1200/
Dmain.c337 if (hw->wiphy->perm_addr[3] == 0 && in cw1200_init_common()
338 hw->wiphy->perm_addr[4] == 0 && in cw1200_init_common()
339 hw->wiphy->perm_addr[5] == 0) { in cw1200_init_common()
340 get_random_bytes(&hw->wiphy->perm_addr[3], 3); in cw1200_init_common()
/linux-6.6.21/drivers/net/ethernet/intel/e1000e/
Dnvm.c528 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-6.6.21/drivers/net/ethernet/sfc/
Def100_netdev.c482 rc = ef100_get_mac_address(efx, net_dev->perm_addr, CLIENT_HANDLE_SELF, in ef100_probe_netdev()
487 eth_hw_addr_set(net_dev, net_dev->perm_addr); in ef100_probe_netdev()
488 ether_addr_copy(nic_data->port_id, net_dev->perm_addr); in ef100_probe_netdev()
/linux-6.6.21/drivers/net/ethernet/intel/ixgbevf/
Dvf.c118 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()
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_dcb_nl.c205 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()
/linux-6.6.21/net/mac80211/
Diface.c1309 eth_hw_addr_set(dev, local->hw.wiphy->perm_addr); in ieee80211_do_open()
1310 memcpy(dev->perm_addr, dev->dev_addr, ETH_ALEN); in ieee80211_do_open()
1931 u8 *perm_addr, enum nl80211_iftype type) in ieee80211_assign_perm_addr() argument
1940 memcpy(perm_addr, local->hw.wiphy->perm_addr, ETH_ALEN); in ieee80211_assign_perm_addr()
1957 memcpy(perm_addr, sdata->vif.addr, ETH_ALEN); in ieee80211_assign_perm_addr()
1970 memcpy(perm_addr, sdata->vif.addr, ETH_ALEN); in ieee80211_assign_perm_addr()
1989 memcpy(perm_addr, in ieee80211_assign_perm_addr()
2015 m = local->hw.wiphy->perm_addr; in ieee80211_assign_perm_addr()
2049 memcpy(perm_addr, tmp_addr, ETH_ALEN); in ieee80211_assign_perm_addr()
2129 ieee80211_assign_perm_addr(local, ndev->perm_addr, type); in ieee80211_if_add()
[all …]
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb_nl.c143 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()
158 perm_addr[i] = adapter->hw.mac.san_addr[j]; in ixgbe_dcbnl_get_perm_hw_addr()
/linux-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_dcb_nl.c827 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-6.6.21/drivers/net/ethernet/wangxun/ngbe/
Dngbe_hw.c89 wx_get_mac_addr(wx, wx->mac.perm_addr); in ngbe_reset_hw()
/linux-6.6.21/drivers/net/wireless/intersil/p54/
Deeprom.c914 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-6.6.21/drivers/net/ethernet/intel/igb/
De1000_nvm.c606 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-6.6.21/drivers/net/
Dntb_netdev.c430 eth_random_addr(ndev->perm_addr); in ntb_netdev_probe()
431 dev_addr_set(ndev, ndev->perm_addr); in ntb_netdev_probe()
/linux-6.6.21/drivers/net/wireless/purelifi/plfxlc/
Dmac.h167 return mac->hw->wiphy->perm_addr; in plfxlc_mac_get_perm_addr()
/linux-6.6.21/drivers/net/wireless/admtek/
Dadm8211.c1785 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()
/linux-6.6.21/drivers/net/ethernet/qlogic/qede/
Dqede_dcbnl.c28 u8 *perm_addr) in qede_dcbnl_getpermhwaddr() argument
30 memcpy(perm_addr, netdev->dev_addr, netdev->addr_len); in qede_dcbnl_getpermhwaddr()

123456