Home
last modified time | relevance | path

Searched refs:mac_mask (Results 1 - 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
H A Dethtool_common.c656 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_get_class_rule() local
735 eth_broadcast_addr(mac_mask->h_dest); in efx_ethtool_get_class_rule()
737 ether_addr_copy(mac_mask->h_dest, in efx_ethtool_get_class_rule()
742 eth_broadcast_addr(mac_mask->h_source); in efx_ethtool_get_class_rule()
746 mac_mask->h_proto = ETHER_TYPE_FULL_MASK; in efx_ethtool_get_class_rule()
929 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_set_class_rule() local
1084 if (!is_zero_ether_addr(mac_mask->h_dest)) { in efx_ethtool_set_class_rule()
1085 if (ether_addr_equal(mac_mask->h_dest, in efx_ethtool_set_class_rule()
1088 else if (is_broadcast_ether_addr(mac_mask->h_dest)) in efx_ethtool_set_class_rule()
1094 if (!is_zero_ether_addr(mac_mask in efx_ethtool_set_class_rule()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
H A Dethtool.c794 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_get_class_rule() local
873 eth_broadcast_addr(mac_mask->h_dest); in ef4_ethtool_get_class_rule()
875 ether_addr_copy(mac_mask->h_dest, in ef4_ethtool_get_class_rule()
880 eth_broadcast_addr(mac_mask->h_source); in ef4_ethtool_get_class_rule()
884 mac_mask->h_proto = ETHER_TYPE_FULL_MASK; in ef4_ethtool_get_class_rule()
1030 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_set_class_rule() local
1177 if (!is_zero_ether_addr(mac_mask->h_dest)) { in ef4_ethtool_set_class_rule()
1178 if (ether_addr_equal(mac_mask->h_dest, in ef4_ethtool_set_class_rule()
1181 else if (is_broadcast_ether_addr(mac_mask->h_dest)) in ef4_ethtool_set_class_rule()
1187 if (!is_zero_ether_addr(mac_mask in ef4_ethtool_set_class_rule()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
H A Dethtool_common.c657 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_get_class_rule() local
736 eth_broadcast_addr(mac_mask->h_dest); in efx_ethtool_get_class_rule()
738 ether_addr_copy(mac_mask->h_dest, in efx_ethtool_get_class_rule()
743 eth_broadcast_addr(mac_mask->h_source); in efx_ethtool_get_class_rule()
747 mac_mask->h_proto = ETHER_TYPE_FULL_MASK; in efx_ethtool_get_class_rule()
930 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_set_class_rule() local
1085 if (!is_zero_ether_addr(mac_mask->h_dest)) { in efx_ethtool_set_class_rule()
1086 if (ether_addr_equal(mac_mask->h_dest, in efx_ethtool_set_class_rule()
1089 else if (is_broadcast_ether_addr(mac_mask->h_dest)) in efx_ethtool_set_class_rule()
1095 if (!is_zero_ether_addr(mac_mask in efx_ethtool_set_class_rule()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/falcon/
H A Dethtool.c804 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_get_class_rule() local
883 eth_broadcast_addr(mac_mask->h_dest); in ef4_ethtool_get_class_rule()
885 ether_addr_copy(mac_mask->h_dest, in ef4_ethtool_get_class_rule()
890 eth_broadcast_addr(mac_mask->h_source); in ef4_ethtool_get_class_rule()
894 mac_mask->h_proto = ETHER_TYPE_FULL_MASK; in ef4_ethtool_get_class_rule()
1040 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_set_class_rule() local
1187 if (!is_zero_ether_addr(mac_mask->h_dest)) { in ef4_ethtool_set_class_rule()
1188 if (ether_addr_equal(mac_mask->h_dest, in ef4_ethtool_set_class_rule()
1191 else if (is_broadcast_ether_addr(mac_mask->h_dest)) in ef4_ethtool_set_class_rule()
1197 if (!is_zero_ether_addr(mac_mask in ef4_ethtool_set_class_rule()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/
H A Dethtool_common.c657 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_get_class_rule() local
736 eth_broadcast_addr(mac_mask->h_dest); in efx_ethtool_get_class_rule()
738 ether_addr_copy(mac_mask->h_dest, in efx_ethtool_get_class_rule()
743 eth_broadcast_addr(mac_mask->h_source); in efx_ethtool_get_class_rule()
747 mac_mask->h_proto = ETHER_TYPE_FULL_MASK; in efx_ethtool_get_class_rule()
931 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_set_class_rule() local
1086 if (!is_zero_ether_addr(mac_mask->h_dest)) { in efx_ethtool_set_class_rule()
1087 if (ether_addr_equal(mac_mask->h_dest, in efx_ethtool_set_class_rule()
1090 else if (is_broadcast_ether_addr(mac_mask->h_dest)) in efx_ethtool_set_class_rule()
1096 if (!is_zero_ether_addr(mac_mask in efx_ethtool_set_class_rule()
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dpno.c160 u8 *mac_mask = NULL; in brcmf_pno_set_random() local
166 mac_mask = pi->reqs[ri]->mac_addr_mask; in brcmf_pno_set_random()
179 pfn_mac.mac[i] &= mac_mask[i]; in brcmf_pno_set_random()
180 pfn_mac.mac[i] |= get_random_int() & ~(mac_mask[i]); in brcmf_pno_set_random()
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dpno.c160 u8 *mac_mask = NULL; in brcmf_pno_set_random() local
166 mac_mask = pi->reqs[ri]->mac_addr_mask; in brcmf_pno_set_random()
179 pfn_mac.mac[i] &= mac_mask[i]; in brcmf_pno_set_random()
180 pfn_mac.mac[i] |= get_random_u8() & ~(mac_mask[i]); in brcmf_pno_set_random()
/kernel/linux/linux-5.10/drivers/media/dvb-core/
H A Ddvb_net.c1011 u8 *mac, u8 *mac_mask)
1038 (*secfilter)->filter_mask[3] = mac_mask[5];
1039 (*secfilter)->filter_mask[4] = mac_mask[4];
1040 (*secfilter)->filter_mask[8] = mac_mask[3];
1041 (*secfilter)->filter_mask[9] = mac_mask[2];
1042 (*secfilter)->filter_mask[10] = mac_mask[1];
1043 (*secfilter)->filter_mask[11]=mac_mask[0];
1045 netdev_dbg(dev, "filter mac=%pM mask=%pM\n", mac, mac_mask);
1009 dvb_net_filter_sec_set(struct net_device *dev, struct dmx_section_filter **secfilter, u8 *mac, u8 *mac_mask) global() argument
/kernel/linux/linux-6.6/drivers/media/dvb-core/
H A Ddvb_net.c1011 const u8 *mac, u8 *mac_mask)
1038 (*secfilter)->filter_mask[3] = mac_mask[5];
1039 (*secfilter)->filter_mask[4] = mac_mask[4];
1040 (*secfilter)->filter_mask[8] = mac_mask[3];
1041 (*secfilter)->filter_mask[9] = mac_mask[2];
1042 (*secfilter)->filter_mask[10] = mac_mask[1];
1043 (*secfilter)->filter_mask[11]=mac_mask[0];
1045 netdev_dbg(dev, "filter mac=%pM mask=%pM\n", mac, mac_mask);
1009 dvb_net_filter_sec_set(struct net_device *dev, struct dmx_section_filter **secfilter, const u8 *mac, u8 *mac_mask) global() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
H A Dmcg.c1064 __be64 mac_mask = cpu_to_be64(MLX4_MAC_MASK << 16); in mlx4_tunnel_steer_add() local
1073 memcpy(spec_eth_outer.eth.dst_mac_msk, &mac_mask, ETH_ALEN); in mlx4_tunnel_steer_add()
1373 __be64 mac_mask = cpu_to_be64(MLX4_MAC_MASK << 16); in mlx4_trans_to_dmfs_attach() local
1391 memcpy(spec.eth.dst_mac_msk, &mac_mask, ETH_ALEN); in mlx4_trans_to_dmfs_attach()
H A Den_netdev.c239 __be64 mac_mask = cpu_to_be64(MLX4_MAC_MASK << 16); in mlx4_en_filter_work() local
252 memcpy(spec_eth.eth.dst_mac_msk, &mac_mask, ETH_ALEN); in mlx4_en_filter_work()
582 __be64 mac_mask = cpu_to_be64(MLX4_MAC_MASK << 16); in mlx4_en_uc_steer_add() local
598 memcpy(spec_eth.eth.dst_mac_msk, &mac_mask, ETH_ALEN); in mlx4_en_uc_steer_add()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/
H A Dmcg.c1064 __be64 mac_mask = cpu_to_be64(MLX4_MAC_MASK << 16); in mlx4_tunnel_steer_add() local
1073 memcpy(spec_eth_outer.eth.dst_mac_msk, &mac_mask, ETH_ALEN); in mlx4_tunnel_steer_add()
1373 __be64 mac_mask = cpu_to_be64(MLX4_MAC_MASK << 16); in mlx4_trans_to_dmfs_attach() local
1391 memcpy(spec.eth.dst_mac_msk, &mac_mask, ETH_ALEN); in mlx4_trans_to_dmfs_attach()
H A Den_netdev.c240 __be64 mac_mask = cpu_to_be64(MLX4_MAC_MASK << 16); in mlx4_en_filter_work() local
253 memcpy(spec_eth.eth.dst_mac_msk, &mac_mask, ETH_ALEN); in mlx4_en_filter_work()
582 __be64 mac_mask = cpu_to_be64(MLX4_MAC_MASK << 16); in mlx4_en_uc_steer_add() local
598 memcpy(spec_eth.eth.dst_mac_msk, &mac_mask, ETH_ALEN); in mlx4_en_uc_steer_add()
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/
H A Dchip.c1748 struct ethhdr *mac_mask = &fs->m_u.ether_spec; in mv88e6xxx_policy_insert() local
1767 if (!is_zero_ether_addr(mac_mask->h_dest) && in mv88e6xxx_policy_insert()
1768 is_zero_ether_addr(mac_mask->h_source)) { in mv88e6xxx_policy_insert()
1771 } else if (is_zero_ether_addr(mac_mask->h_dest) && in mv88e6xxx_policy_insert()
1772 !is_zero_ether_addr(mac_mask->h_source)) { in mv88e6xxx_policy_insert()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/
H A Dwmi-tlv.h1858 struct wmi_mac_addr mac_mask; member
2652 struct wmi_mac_addr mac_mask; member
H A Dwmi-tlv.c2006 ether_addr_copy(cmd->mac_mask.addr, arg->mac_mask.addr); in ath10k_wmi_tlv_op_gen_start_scan()
3905 ether_addr_copy(cmd->mac_mask.addr, pno->mac_addr_mask); in ath10k_wmi_tlv_op_gen_config_pno_start()
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath10k/
H A Dwmi-tlv.h1858 struct wmi_mac_addr mac_mask; member
2652 struct wmi_mac_addr mac_mask; member
H A Dwmi-tlv.c2017 ether_addr_copy(cmd->mac_mask.addr, arg->mac_mask.addr); in ath10k_wmi_tlv_op_gen_start_scan()
3916 ether_addr_copy(cmd->mac_mask.addr, pno->mac_addr_mask); in ath10k_wmi_tlv_op_gen_config_pno_start()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum.c2748 mlxsw_sp->mac_mask = mlxsw_sp1_mac_mask; in mlxsw_sp1_init()
2777 mlxsw_sp->mac_mask = mlxsw_sp2_mac_mask; in mlxsw_sp2_init()
2804 mlxsw_sp->mac_mask = mlxsw_sp2_mac_mask; in mlxsw_sp3_init()
H A Dspectrum.h148 const unsigned char *mac_mask; member
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath6kl/
H A Dcfg80211.c2044 u8 mac_mask[ETH_ALEN]; in ath6kl_wow_sta() local
2048 eth_broadcast_addr(mac_mask); in ath6kl_wow_sta()
2052 mac_mask); in ath6kl_wow_sta()
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath6kl/
H A Dcfg80211.c2044 u8 mac_mask[ETH_ALEN]; in ath6kl_wow_sta() local
2048 eth_broadcast_addr(mac_mask); in ath6kl_wow_sta()
2052 mac_mask); in ath6kl_wow_sta()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum.c3336 mlxsw_sp->mac_mask = mlxsw_sp1_mac_mask; in mlxsw_sp1_init()
3370 mlxsw_sp->mac_mask = mlxsw_sp2_mac_mask; in mlxsw_sp2_init()
3404 mlxsw_sp->mac_mask = mlxsw_sp2_mac_mask; in mlxsw_sp3_init()
3438 mlxsw_sp->mac_mask = mlxsw_sp2_mac_mask; in mlxsw_sp4_init()
/kernel/linux/linux-6.6/drivers/net/dsa/mv88e6xxx/
H A Dchip.c2181 struct ethhdr *mac_mask = &fs->m_u.ether_spec; in mv88e6xxx_policy_insert() local
2200 if (!is_zero_ether_addr(mac_mask->h_dest) && in mv88e6xxx_policy_insert()
2201 is_zero_ether_addr(mac_mask->h_source)) { in mv88e6xxx_policy_insert()
2204 } else if (is_zero_ether_addr(mac_mask->h_dest) && in mv88e6xxx_policy_insert()
2205 !is_zero_ether_addr(mac_mask->h_source)) { in mv88e6xxx_policy_insert()
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath11k/
H A Dwmi.h3243 struct wmi_mac_addr mac_mask; member
3389 struct wmi_mac_addr mac_mask; member
6157 struct wmi_mac_addr mac_mask; member

Completed in 106 milliseconds

12