/kernel/linux/linux-5.10/arch/mips/cavium-octeon/ |
H A D | octeon-platform.c | 568 u8 new_mac[6]; in octeon_fdt_set_mac_addr() local 577 new_mac[0] = (mac >> 40) & 0xff; in octeon_fdt_set_mac_addr() 578 new_mac[1] = (mac >> 32) & 0xff; in octeon_fdt_set_mac_addr() 579 new_mac[2] = (mac >> 24) & 0xff; in octeon_fdt_set_mac_addr() 580 new_mac[3] = (mac >> 16) & 0xff; in octeon_fdt_set_mac_addr() 581 new_mac[4] = (mac >> 8) & 0xff; in octeon_fdt_set_mac_addr() 582 new_mac[5] = mac & 0xff; in octeon_fdt_set_mac_addr() 585 new_mac, sizeof(new_mac)); in octeon_fdt_set_mac_addr()
|
/kernel/linux/linux-6.6/arch/mips/cavium-octeon/ |
H A D | octeon-platform.c | 569 u8 new_mac[6]; in octeon_fdt_set_mac_addr() local 578 new_mac[0] = (mac >> 40) & 0xff; in octeon_fdt_set_mac_addr() 579 new_mac[1] = (mac >> 32) & 0xff; in octeon_fdt_set_mac_addr() 580 new_mac[2] = (mac >> 24) & 0xff; in octeon_fdt_set_mac_addr() 581 new_mac[3] = (mac >> 16) & 0xff; in octeon_fdt_set_mac_addr() 582 new_mac[4] = (mac >> 8) & 0xff; in octeon_fdt_set_mac_addr() 583 new_mac[5] = mac & 0xff; in octeon_fdt_set_mac_addr() 586 new_mac, sizeof(new_mac)); in octeon_fdt_set_mac_addr()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_sriov.h | 65 u8 new_mac[ETH_ALEN]; member
|
H A D | hinic_main.c | 640 unsigned char new_mac[ETH_ALEN]; in hinic_set_mac_addr() local 644 memcpy(new_mac, saddr->sa_data, ETH_ALEN); in hinic_set_mac_addr() 646 err = change_mac_addr(netdev, new_mac); in hinic_set_mac_addr() 648 memcpy(netdev->dev_addr, new_mac, ETH_ALEN); in hinic_set_mac_addr()
|
H A D | hinic_sriov.c | 516 u8 *new_mac, u16 vlan_id, u16 func_id) in hinic_update_mac() 522 if (!hwdev || !old_mac || !new_mac) in hinic_update_mac() 534 memcpy(mac_info.new_mac, new_mac, ETH_ALEN); in hinic_update_mac() 515 hinic_update_mac(struct hinic_hwdev *hwdev, u8 *old_mac, u8 *new_mac, u16 vlan_id, u16 func_id) hinic_update_mac() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_sriov.h | 65 u8 new_mac[ETH_ALEN]; member
|
H A D | hinic_main.c | 633 unsigned char new_mac[ETH_ALEN]; in hinic_set_mac_addr() local 637 memcpy(new_mac, saddr->sa_data, ETH_ALEN); in hinic_set_mac_addr() 639 err = change_mac_addr(netdev, new_mac); in hinic_set_mac_addr() 641 eth_hw_addr_set(netdev, new_mac); in hinic_set_mac_addr()
|
H A D | hinic_sriov.c | 536 u8 *new_mac, u16 vlan_id, u16 func_id) in hinic_update_mac() 542 if (!hwdev || !old_mac || !new_mac) in hinic_update_mac() 554 memcpy(mac_info.new_mac, new_mac, ETH_ALEN); in hinic_update_mac() 535 hinic_update_mac(struct hinic_hwdev *hwdev, u8 *old_mac, u8 *new_mac, u16 vlan_id, u16 func_id) hinic_update_mac() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_netdev.c | 699 unsigned char *new_mac, unsigned char *prev_mac) in mlx4_en_replace_mac() 704 u64 new_mac_u64 = mlx4_mac_to_u64(new_mac); in mlx4_en_replace_mac() 722 memcpy(entry->mac, new_mac, ETH_ALEN); in mlx4_en_replace_mac() 724 mac_hash = new_mac[MLX4_EN_MAC_HASH_IDX]; in mlx4_en_replace_mac() 728 err = mlx4_en_uc_steer_add(priv, new_mac, in mlx4_en_replace_mac() 737 err = mlx4_en_tunnel_steer_add(priv, new_mac, qpn, in mlx4_en_replace_mac() 749 unsigned char new_mac[ETH_ALEN + 2]) in mlx4_en_update_user_mac() 757 err = mlx4_SET_PORT_user_mac(mdev->dev, priv->port, new_mac); in mlx4_en_update_user_mac() 760 new_mac, priv->port, err); in mlx4_en_update_user_mac() 764 unsigned char new_mac[ETH_ALE in mlx4_en_do_set_mac() 698 mlx4_en_replace_mac(struct mlx4_en_priv *priv, int qpn, unsigned char *new_mac, unsigned char *prev_mac) mlx4_en_replace_mac() argument 788 unsigned char new_mac[ETH_ALEN + 2]; mlx4_en_set_mac() local [all...] |
H A D | port.c | 474 int __mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac) in __mlx4_replace_mac() argument 501 table->entries[index] = cpu_to_be64(new_mac | MLX4_MAC_VALID); in __mlx4_replace_mac() 506 (unsigned long long) new_mac); in __mlx4_replace_mac() 510 dup_table->entries[index] = cpu_to_be64(new_mac | MLX4_MAC_VALID); in __mlx4_replace_mac() 515 (unsigned long long)new_mac); in __mlx4_replace_mac()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_netdev.c | 700 unsigned char *new_mac, unsigned char *prev_mac) in mlx4_en_replace_mac() 705 u64 new_mac_u64 = ether_addr_to_u64(new_mac); in mlx4_en_replace_mac() 723 memcpy(entry->mac, new_mac, ETH_ALEN); in mlx4_en_replace_mac() 725 mac_hash = new_mac[MLX4_EN_MAC_HASH_IDX]; in mlx4_en_replace_mac() 729 err = mlx4_en_uc_steer_add(priv, new_mac, in mlx4_en_replace_mac() 738 err = mlx4_en_tunnel_steer_add(priv, new_mac, qpn, in mlx4_en_replace_mac() 750 unsigned char new_mac[ETH_ALEN + 2]) in mlx4_en_update_user_mac() 758 err = mlx4_SET_PORT_user_mac(mdev->dev, priv->port, new_mac); in mlx4_en_update_user_mac() 761 new_mac, priv->port, err); in mlx4_en_update_user_mac() 765 unsigned char new_mac[ETH_ALE in mlx4_en_do_set_mac() 699 mlx4_en_replace_mac(struct mlx4_en_priv *priv, int qpn, unsigned char *new_mac, unsigned char *prev_mac) mlx4_en_replace_mac() argument 789 unsigned char new_mac[ETH_ALEN + 2]; mlx4_en_set_mac() local [all...] |
H A D | port.c | 474 int __mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac) in __mlx4_replace_mac() argument 501 table->entries[index] = cpu_to_be64(new_mac | MLX4_MAC_VALID); in __mlx4_replace_mac() 506 (unsigned long long) new_mac); in __mlx4_replace_mac() 510 dup_table->entries[index] = cpu_to_be64(new_mac | MLX4_MAC_VALID); in __mlx4_replace_mac() 515 (unsigned long long)new_mac); in __mlx4_replace_mac()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_sriov.c | 952 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_mac_addr() local 954 if (!is_valid_ether_addr(new_mac)) { in ixgbe_set_vf_mac_addr() 960 !ether_addr_equal(adapter->vfinfo[vf].vf_mac_addresses, new_mac)) { in ixgbe_set_vf_mac_addr() 968 return ixgbe_set_vf_mac(adapter, vf, new_mac) < 0; in ixgbe_set_vf_mac_addr() 996 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_macvlan_msg() local 1011 if (!is_valid_ether_addr(new_mac)) { in ixgbe_set_vf_macvlan_msg() 1028 err = ixgbe_set_vf_macvlan(adapter, vf, index, new_mac); in ixgbe_set_vf_macvlan_msg()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_sriov.c | 952 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_mac_addr() local 954 if (!is_valid_ether_addr(new_mac)) { in ixgbe_set_vf_mac_addr() 960 !ether_addr_equal(adapter->vfinfo[vf].vf_mac_addresses, new_mac)) { in ixgbe_set_vf_mac_addr() 968 return ixgbe_set_vf_mac(adapter, vf, new_mac) < 0; in ixgbe_set_vf_mac_addr() 996 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_macvlan_msg() local 1011 if (!is_valid_ether_addr(new_mac)) { in ixgbe_set_vf_macvlan_msg() 1028 err = ixgbe_set_vf_macvlan(adapter, vf, index, new_mac); in ixgbe_set_vf_macvlan_msg()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_npc_hash.c | 1387 * @new_mac: New MAC address entry. 1395 u8 *old_mac, u8 *new_mac, u32 *seq_id) in rvu_npc_exact_update_table_entry() 1422 new_mac, table->mem_table.mask, in rvu_npc_exact_update_table_entry() 1433 mdata = rvu_exact_prepare_table_entry(rvu, true, entry->ctype, entry->chan, new_mac); in rvu_npc_exact_update_table_entry() 1441 ether_addr_copy(entry->mac, new_mac); in rvu_npc_exact_update_table_entry() 1448 dev_dbg(rvu->dev, "%s: Successfully updated entry (old mac=%pM new_mac=%pM\n", in rvu_npc_exact_update_table_entry() 1449 __func__, old_mac, new_mac); in rvu_npc_exact_update_table_entry() 1394 rvu_npc_exact_update_table_entry(struct rvu *rvu, u8 cgx_id, u8 lmac_id, u8 *old_mac, u8 *new_mac, u32 *seq_id) rvu_npc_exact_update_table_entry() argument
|
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/ |
H A D | main.c | 946 u8 *new_mac) in mwifiex_set_mac_address() 954 mac_addr = ether_addr_to_u64(new_mac); in mwifiex_set_mac_address() 944 mwifiex_set_mac_address(struct mwifiex_private *priv, struct net_device *dev, bool external, u8 *new_mac) mwifiex_set_mac_address() argument
|
H A D | main.h | 1707 bool external, u8 *new_mac);
|
/kernel/linux/linux-6.6/drivers/net/wireless/marvell/mwifiex/ |
H A D | main.c | 968 u8 *new_mac) in mwifiex_set_mac_address() 976 mac_addr = ether_addr_to_u64(new_mac); in mwifiex_set_mac_address() 966 mwifiex_set_mac_address(struct mwifiex_private *priv, struct net_device *dev, bool external, u8 *new_mac) mwifiex_set_mac_address() argument
|
H A D | main.h | 1687 bool external, u8 *new_mac);
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_main.c | 1456 * @new_mac: new mac filter to be added 1457 * @f: existing mac filter, replaced with new_mac->f if new_mac is not NULL 1468 struct i40e_new_mac_filter *new_mac, in i40e_get_vf_new_vlan() 1477 if (new_mac) in i40e_get_vf_new_vlan() 1478 f = new_mac->f; in i40e_get_vf_new_vlan() 1524 struct i40e_new_mac_filter *new_mac; in i40e_correct_vf_mac_vlan_filters() local 1528 hlist_for_each_entry(new_mac, tmp_add_list, hlist) { in i40e_correct_vf_mac_vlan_filters() 1529 new_mac->f->vlan = i40e_get_vf_new_vlan(vsi, new_mac, NUL in i40e_correct_vf_mac_vlan_filters() 1467 i40e_get_vf_new_vlan(struct i40e_vsi *vsi, struct i40e_new_mac_filter *new_mac, struct i40e_mac_filter *f, int vlan_filters, bool trusted) i40e_get_vf_new_vlan() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_main.c | 1008 * @new_mac: new MAC address to be applied 1017 const u8 *new_mac) in iavf_replace_primary_mac() 1025 new_f = iavf_add_filter(adapter, new_mac); in iavf_replace_primary_mac() 1043 ether_addr_copy(hw->mac.addr, new_mac); in iavf_replace_primary_mac() 1016 iavf_replace_primary_mac(struct iavf_adapter *adapter, const u8 *new_mac) iavf_replace_primary_mac() argument
|
/kernel/linux/linux-5.10/include/linux/mlx4/ |
H A D | device.h | 1382 int __mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac);
|
/kernel/linux/linux-6.6/include/linux/mlx4/ |
H A D | device.h | 1401 int __mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac);
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_router.c | 8853 const char *new_mac) in mlxsw_sp_rif_mac_profile_edit() 8863 ether_addr_copy(profile->mac_prefix, new_mac); in mlxsw_sp_rif_mac_profile_edit() 8870 const char *new_mac, in mlxsw_sp_rif_mac_profile_replace() 8877 !mlxsw_sp_rif_mac_profile_find(mlxsw_sp, new_mac)) in mlxsw_sp_rif_mac_profile_replace() 8878 return mlxsw_sp_rif_mac_profile_edit(rif, new_mac); in mlxsw_sp_rif_mac_profile_replace() 8880 err = mlxsw_sp_rif_mac_profile_get(mlxsw_sp, new_mac, in mlxsw_sp_rif_mac_profile_replace() 8852 mlxsw_sp_rif_mac_profile_edit(struct mlxsw_sp_rif *rif, const char *new_mac) mlxsw_sp_rif_mac_profile_edit() argument 8868 mlxsw_sp_rif_mac_profile_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_rif *rif, const char *new_mac, struct netlink_ext_ack *extack) mlxsw_sp_rif_mac_profile_replace() argument
|