Lines Matching refs:mac

274 static int be_dev_mac_add(struct be_adapter *adapter, const u8 *mac)  in be_dev_mac_add()  argument
280 if (ether_addr_equal(adapter->uc_list[i].mac, mac)) { in be_dev_mac_add()
287 return be_cmd_pmac_add(adapter, mac, adapter->if_handle, in be_dev_mac_add()
311 u8 mac[ETH_ALEN]; in be_mac_addr_set() local
355 status = be_cmd_get_active_mac(adapter, adapter->pmac_id[0], mac, in be_mac_addr_set()
363 if (!ether_addr_equal(addr->sa_data, mac)) { in be_mac_addr_set()
1714 ether_addr_copy(adapter->mc_list[i].mac, ha->addr); in be_set_mc_list()
1745 if (ether_addr_equal(adapter->uc_list[uc_idx].mac, adapter->dev_mac)) { in be_uc_mac_add()
1750 return be_cmd_pmac_add(adapter, adapter->uc_list[uc_idx].mac, in be_uc_mac_add()
1789 ether_addr_copy(adapter->uc_list[i].mac, ha->addr); in be_set_uc_list()
1855 static int be_set_vf_mac(struct net_device *netdev, int vf, u8 *mac) in be_set_vf_mac() argument
1864 if (!is_valid_ether_addr(mac) || vf >= adapter->num_vfs) in be_set_vf_mac()
1870 if (ether_addr_equal(mac, vf_cfg->mac_addr)) in be_set_vf_mac()
1877 status = be_cmd_pmac_add(adapter, mac, vf_cfg->if_handle, in be_set_vf_mac()
1880 status = be_cmd_set_mac(adapter, mac, vf_cfg->if_handle, in be_set_vf_mac()
1886 mac, vf, status); in be_set_vf_mac()
1890 ether_addr_copy(vf_cfg->mac_addr, mac); in be_set_vf_mac()
1912 memcpy(&vi->mac, vf_cfg->mac_addr, ETH_ALEN); in be_get_vf_config()
3842 static void be_vf_eth_addr_generate(struct be_adapter *adapter, u8 *mac) in be_vf_eth_addr_generate() argument
3848 mac[5] = (u8)(addr & 0xFF); in be_vf_eth_addr_generate()
3849 mac[4] = (u8)((addr >> 8) & 0xFF); in be_vf_eth_addr_generate()
3850 mac[3] = (u8)((addr >> 16) & 0xFF); in be_vf_eth_addr_generate()
3852 memcpy(mac, adapter->netdev->dev_addr, 3); in be_vf_eth_addr_generate()
3865 u8 mac[ETH_ALEN]; in be_vf_eth_addr_config() local
3868 be_vf_eth_addr_generate(adapter, mac); in be_vf_eth_addr_config()
3872 status = be_cmd_pmac_add(adapter, mac, in be_vf_eth_addr_config()
3876 status = be_cmd_set_mac(adapter, mac, vf_cfg->if_handle, in be_vf_eth_addr_config()
3884 memcpy(vf_cfg->mac_addr, mac, ETH_ALEN); in be_vf_eth_addr_config()
3886 mac[5] += 1; in be_vf_eth_addr_config()
3894 u8 mac[ETH_ALEN]; in be_vfs_mac_query() local
3899 mac, vf_cfg->if_handle, in be_vfs_mac_query()
3903 memcpy(vf_cfg->mac_addr, mac, ETH_ALEN); in be_vfs_mac_query()
4595 u8 mac[ETH_ALEN]; in be_mac_setup() local
4599 status = be_cmd_get_perm_mac(adapter, mac); in be_mac_setup()
4603 eth_hw_addr_set(adapter->netdev, mac); in be_mac_setup()
4604 memcpy(adapter->netdev->perm_addr, mac, ETH_ALEN); in be_mac_setup()
4608 memcpy(adapter->dev_mac, mac, ETH_ALEN); in be_mac_setup()