Home
last modified time | relevance | path

Searched refs:new_mac (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/arch/mips/cavium-octeon/
Docteon-platform.c567 u8 new_mac[6]; in octeon_fdt_set_mac_addr() local
576 new_mac[0] = (mac >> 40) & 0xff; in octeon_fdt_set_mac_addr()
577 new_mac[1] = (mac >> 32) & 0xff; in octeon_fdt_set_mac_addr()
578 new_mac[2] = (mac >> 24) & 0xff; in octeon_fdt_set_mac_addr()
579 new_mac[3] = (mac >> 16) & 0xff; in octeon_fdt_set_mac_addr()
580 new_mac[4] = (mac >> 8) & 0xff; in octeon_fdt_set_mac_addr()
581 new_mac[5] = mac & 0xff; in octeon_fdt_set_mac_addr()
584 new_mac, sizeof(new_mac)); in octeon_fdt_set_mac_addr()
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_sriov.h65 u8 new_mac[ETH_ALEN]; member
Dhinic_main.c658 unsigned char new_mac[ETH_ALEN]; in hinic_set_mac_addr() local
662 memcpy(new_mac, saddr->sa_data, ETH_ALEN); in hinic_set_mac_addr()
664 err = change_mac_addr(netdev, new_mac); in hinic_set_mac_addr()
666 memcpy(netdev->dev_addr, new_mac, ETH_ALEN); in hinic_set_mac_addr()
Dhinic_sriov.c516 u8 *new_mac, u16 vlan_id, u16 func_id) in hinic_update_mac() argument
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Den_netdev.c699 unsigned char *new_mac, unsigned char *prev_mac) in mlx4_en_replace_mac() argument
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_ALEN + 2]) in mlx4_en_do_set_mac()
[all …]
Dport.c474 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/
Dixgbe_sriov.c948 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_mac_addr() local
950 if (!is_valid_ether_addr(new_mac)) { in ixgbe_set_vf_mac_addr()
956 !ether_addr_equal(adapter->vfinfo[vf].vf_mac_addresses, new_mac)) { in ixgbe_set_vf_mac_addr()
964 return ixgbe_set_vf_mac(adapter, vf, new_mac) < 0; in ixgbe_set_vf_mac_addr()
992 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_macvlan_msg() local
1007 if (!is_valid_ether_addr(new_mac)) { in ixgbe_set_vf_macvlan_msg()
1024 err = ixgbe_set_vf_macvlan(adapter, vf, index, new_mac); in ixgbe_set_vf_macvlan_msg()
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/
Dmain.c946 u8 *new_mac) in mwifiex_set_mac_address() argument
954 mac_addr = ether_addr_to_u64(new_mac); in mwifiex_set_mac_address()
Dmain.h1705 bool external, u8 *new_mac);
/kernel/linux/linux-5.10/include/linux/mlx4/
Ddevice.h1382 int __mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac);