Searched refs:perm_addr (Results 1 - 25 of 128) sorted by relevance

123456

/linux-master/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_vf.c14 u8 *perm_addr = hw->mac.perm_addr; local
25 if (is_valid_ether_addr(perm_addr)) {
26 bal = (((u32)perm_addr[3]) << 24) |
27 (((u32)perm_addr[4]) << 16) |
28 (((u32)perm_addr[5]) << 8);
30 (((u32)perm_addr[0]) << 16) |
31 (((u32)perm_addr[1]) << 8) |
32 ((u32)perm_addr[2]);
203 u8 perm_addr[ETH_ALE local
229 u8 perm_addr[ETH_ALEN]; local
[all...]
H A Dfm10k_pf.c250 u8 perm_addr[ETH_ALEN]; local
259 perm_addr[0] = (u8)(serial_num >> 24);
260 perm_addr[1] = (u8)(serial_num >> 16);
261 perm_addr[2] = (u8)(serial_num >> 8);
269 perm_addr[3] = (u8)(serial_num >> 16);
270 perm_addr[4] = (u8)(serial_num >> 8);
271 perm_addr[5] = (u8)(serial_num);
273 ether_addr_copy(hw->mac.perm_addr, perm_addr);
274 ether_addr_copy(hw->mac.addr, perm_addr);
[all...]
H A Dfm10k_pci.c297 /* update hardware address for VFs if perm_addr has changed */
299 if (is_valid_ether_addr(hw->mac.perm_addr)) {
300 ether_addr_copy(hw->mac.addr, hw->mac.perm_addr);
301 ether_addr_copy(netdev->perm_addr, hw->mac.perm_addr);
302 eth_hw_addr_set(netdev, hw->mac.perm_addr);
1472 if (is_valid_ether_addr(hw->mac.perm_addr) &&
1473 !ether_addr_equal(hw->mac.perm_addr, hw->mac.addr))
2048 ether_addr_copy(netdev->perm_addr, hw->mac.addr);
2050 if (!is_valid_ether_addr(netdev->perm_addr)) {
[all...]
/linux-master/net/core/
H A Dfailover.c28 if (ether_addr_equal(failover_dev->perm_addr, mac)) {
58 failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops);
114 failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops);
145 failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops);
170 failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops);
224 if (ether_addr_equal(failover_dev->perm_addr, dev->perm_addr))
/linux-master/drivers/net/ethernet/intel/igc/
H A Digc_nvm.c143 hw->mac.perm_addr[i] = (u8)(rar_low >> (i * 8));
146 hw->mac.perm_addr[i + 4] = (u8)(rar_high >> (i * 8));
149 hw->mac.addr[i] = hw->mac.perm_addr[i];
/linux-master/net/wireless/
H A Dsysfs.c37 SHOW_FMT(macaddress, "%pM", wiphy.perm_addr);
59 return sprintf(buf, "%pM\n", wiphy->perm_addr);
/linux-master/drivers/net/ethernet/wangxun/ngbe/
H A Dngbe_hw.c91 wx_get_mac_addr(wx, wx->mac.perm_addr);
/linux-master/drivers/net/ethernet/intel/igbvf/
H A Dvf.c133 /* set our "perm_addr" based on info provided by PF */
138 memcpy(hw->mac.perm_addr, addr, ETH_ALEN);
141 eth_zero_addr(hw->mac.perm_addr);
316 /* if nacked the address was rejected, use "perm_addr" */
328 memcpy(hw->mac.addr, hw->mac.perm_addr, ETH_ALEN);
H A Dvf.h173 u8 perm_addr[6]; member in struct:e1000_mac_info
/linux-master/drivers/net/wireless/ath/ath9k/
H A Dtx99.c71 memcpy(hdr->addr1, hw->wiphy->perm_addr, ETH_ALEN);
72 memcpy(hdr->addr2, hw->wiphy->perm_addr, ETH_ALEN);
73 memcpy(hdr->addr3, hw->wiphy->perm_addr, ETH_ALEN);
H A Dlink.c249 memcpy(hdr->addr1, hw->wiphy->perm_addr, ETH_ALEN);
250 memcpy(hdr->addr2, hw->wiphy->perm_addr, ETH_ALEN);
251 memcpy(hdr->addr3, hw->wiphy->perm_addr, ETH_ALEN);
/linux-master/drivers/net/ethernet/intel/e1000e/
H A Dnvm.c528 hw->mac.perm_addr[i] = (u8)(rar_low >> (i * 8));
531 hw->mac.perm_addr[i + 4] = (u8)(rar_high >> (i * 8));
534 hw->mac.addr[i] = hw->mac.perm_addr[i];
/linux-master/drivers/net/ethernet/sfc/
H A Def100_netdev.c482 rc = ef100_get_mac_address(efx, net_dev->perm_addr, CLIENT_HANDLE_SELF,
487 eth_hw_addr_set(net_dev, net_dev->perm_addr);
488 ether_addr_copy(nic_data->port_id, net_dev->perm_addr);
/linux-master/drivers/net/wireless/purelifi/plfxlc/
H A Dmac.h167 return mac->hw->wiphy->perm_addr;
/linux-master/drivers/net/ethernet/intel/ixgbevf/
H A Dvf.c101 /* set our "perm_addr" based on info provided by PF
118 ether_addr_copy(hw->mac.perm_addr, addr);
141 &hw->mac.perm_addr[i]);
245 ether_addr_copy(mac_addr, hw->mac.perm_addr);
447 /* if nacked the address was rejected, use "perm_addr" */
471 if (ether_addr_equal(addr, hw->mac.perm_addr))
/linux-master/drivers/net/ethernet/wangxun/txgbe/
H A Dtxgbe_hw.c204 wx_get_mac_addr(wx, wx->mac.perm_addr);
/linux-master/drivers/net/wireless/st/cw1200/
H A Dmain.c341 if (hw->wiphy->perm_addr[3] == 0 &&
342 hw->wiphy->perm_addr[4] == 0 &&
343 hw->wiphy->perm_addr[5] == 0) {
344 get_random_bytes(&hw->wiphy->perm_addr[3], 3);
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_dcb_nl.c203 * @perm_addr: buffer to return permanent MAC address
205 static void ice_dcbnl_get_perm_hw_addr(struct net_device *netdev, u8 *perm_addr) argument
211 memset(perm_addr, 0xff, MAX_ADDR_LEN);
214 perm_addr[i] = pi->mac.perm_addr[i];
217 perm_addr[i] = pi->mac.perm_addr[j];
/linux-master/drivers/net/wireless/intersil/p54/
H A Deeprom.c914 if (!is_valid_ether_addr(dev->wiphy->perm_addr)) {
915 u8 perm_addr[ETH_ALEN]; local
919 eth_random_addr(perm_addr);
920 SET_IEEE80211_PERM_ADDR(dev, perm_addr);
926 dev->wiphy->perm_addr, priv->version,
/linux-master/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_dcb_nl.c143 u8 *perm_addr)
148 memset(perm_addr, 0xff, MAX_ADDR_LEN);
151 perm_addr[i] = adapter->hw.mac.perm_addr[i];
158 perm_addr[i] = adapter->hw.mac.san_addr[j];
142 ixgbe_dcbnl_get_perm_hw_addr(struct net_device *netdev, u8 *perm_addr) argument
/linux-master/drivers/net/ethernet/intel/igb/
H A De1000_nvm.c606 hw->mac.perm_addr[i] = (u8)(rar_low >> (i*8));
609 hw->mac.perm_addr[i+4] = (u8)(rar_high >> (i*8));
612 hw->mac.addr[i] = hw->mac.perm_addr[i];
/linux-master/net/mac80211/
H A Diface.c1301 eth_hw_addr_set(dev, local->hw.wiphy->perm_addr);
1302 memcpy(dev->perm_addr, dev->dev_addr, ETH_ALEN);
1925 u8 *perm_addr, enum nl80211_iftype type)
1936 memcpy(perm_addr, local->hw.wiphy->perm_addr, ETH_ALEN);
1951 memcpy(perm_addr, sdata->vif.addr, ETH_ALEN);
1964 memcpy(perm_addr, sdata->vif.addr, ETH_ALEN);
1983 memcpy(perm_addr,
2007 * MAC address manually, default to perm_addr.
2009 m = local->hw.wiphy->perm_addr;
1924 ieee80211_assign_perm_addr(struct ieee80211_local *local, u8 *perm_addr, enum nl80211_iftype type) argument
[all...]
/linux-master/drivers/net/ethernet/qlogic/qede/
H A Dqede_dcbnl.c28 u8 *perm_addr)
30 memcpy(perm_addr, netdev->dev_addr, netdev->addr_len);
27 qede_dcbnl_getpermhwaddr(struct net_device *netdev, u8 *perm_addr) argument
/linux-master/drivers/net/
H A Dntb_netdev.c430 eth_random_addr(ndev->perm_addr);
431 dev_addr_set(ndev, ndev->perm_addr);
/linux-master/drivers/net/wireless/zydas/zd1211rw/
H A Dzd_mac.h290 return mac->hw->wiphy->perm_addr;

Completed in 259 milliseconds

123456