/linux-6.3-rc2/net/core/ |
A D | of_net.c | 53 if (pp && pp->length == ETH_ALEN && is_valid_ether_addr(pp->value)) { in of_get_mac_addr() 87 if (len != ETH_ALEN || !is_valid_ether_addr(mac)) { in of_get_mac_address_nvmem()
|
/linux-6.3-rc2/net/ethernet/ |
A D | eth.c | 293 if (!is_valid_ether_addr(addr->sa_data)) in eth_prepare_mac_addr_change() 336 if (!is_valid_ether_addr(dev->dev_addr)) in eth_validate_addr() 563 if (len != ETH_ALEN || !is_valid_ether_addr(mac)) { in nvmem_get_mac_address() 583 if (!is_valid_ether_addr(addr)) in fwnode_get_mac_addr()
|
/linux-6.3-rc2/drivers/net/ethernet/cisco/enic/ |
A D | enic_dev.c | 39 if (!is_valid_ether_addr(enic->netdev->dev_addr)) in enic_dev_add_station_addr() 53 if (!is_valid_ether_addr(enic->netdev->dev_addr)) in enic_dev_del_station_addr()
|
/linux-6.3-rc2/drivers/net/ethernet/broadcom/bnxt/ |
A D | bnxt_sriov.c | 193 if (is_valid_ether_addr(vf->mac_addr)) in bnxt_get_vf_config() 501 if (is_valid_ether_addr(vf->mac_addr)) { in __bnxt_set_vf_params() 1007 if (is_valid_ether_addr(req->dflt_mac_addr) && in bnxt_vf_configure_mac() 1008 (trust || !is_valid_ether_addr(vf->mac_addr) || in bnxt_vf_configure_mac() 1025 if (!is_valid_ether_addr((const u8 *)req->l2_addr)) in bnxt_vf_validate_set_mac() 1035 } else if (is_valid_ether_addr(vf->mac_addr)) { in bnxt_vf_validate_set_mac() 1038 } else if (is_valid_ether_addr(vf->vf_mac_addr)) { in bnxt_vf_validate_set_mac() 1163 if (is_valid_ether_addr(bp->vf.mac_addr)) in bnxt_approve_mac() 1214 if (!is_valid_ether_addr(bp->vf.mac_addr)) in bnxt_update_vf_mac() 1219 if (is_valid_ether_addr(bp->vf.mac_addr)) in bnxt_update_vf_mac()
|
/linux-6.3-rc2/drivers/net/ethernet/intel/fm10k/ |
A D | fm10k_vf.c | 24 if (is_valid_ether_addr(perm_addr)) { in fm10k_stop_hw_vf() 283 if (!is_valid_ether_addr(mac)) in fm10k_update_uc_addr_vf() 287 if (is_valid_ether_addr(hw->mac.perm_addr) && in fm10k_update_uc_addr_vf()
|
A D | fm10k_iov.c | 97 if (is_valid_ether_addr(vf_info->mac) && in fm10k_iov_msg_queue_mac_vlan() 578 if (!is_zero_ether_addr(mac) && !is_valid_ether_addr(mac)) in fm10k_ndo_set_vf_mac()
|
A D | fm10k_pf.c | 355 if (!is_valid_ether_addr(mac)) in fm10k_update_uc_addr_pf() 908 if (is_valid_ether_addr(vf_info->mac)) { in fm10k_iov_assign_default_mac_vlan_pf() 1038 if (is_valid_ether_addr(vf_info->mac)) { in fm10k_iov_reset_resources_pf() 1255 if (is_valid_ether_addr(vf_info->mac) && in fm10k_iov_msg_mac_vlan_pf()
|
/linux-6.3-rc2/drivers/staging/most/net/ |
A D | net.c | 207 if (is_valid_ether_addr(dev->dev_addr)) in most_nd_open() 564 if (m && is_valid_ether_addr(m)) { in on_netinfo() 565 if (!is_valid_ether_addr(dev->dev_addr)) { in on_netinfo()
|
/linux-6.3-rc2/arch/mips/alchemy/common/ |
A D | platform.c | 415 if (!i && !is_valid_ether_addr(au1xxx_eth0_platform_data.mac)) in alchemy_setup_macs() 436 if (!i && !is_valid_ether_addr(au1xxx_eth1_platform_data.mac)) in alchemy_setup_macs()
|
/linux-6.3-rc2/drivers/net/ |
A D | dummy.c | 137 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in dummy_validate()
|
/linux-6.3-rc2/drivers/net/bonding/ |
A D | bond_alb.c | 399 if (is_valid_ether_addr(rx_hash_table[index].mac_dst)) { in rlb_clear_slave() 428 if (!client_info->slave || !is_valid_ether_addr(client_info->mac_dst)) in rlb_update_client() 503 is_valid_ether_addr(client_info->mac_dst)) { in rlb_req_update_slave_clients() 544 is_valid_ether_addr(client_info->mac_dst)) { in rlb_req_update_subnet_clients() 621 if (is_valid_ether_addr(client_info->mac_dst)) { in rlb_choose_channel() 1794 if (!is_valid_ether_addr(ss->__data)) in bond_alb_set_mac_address()
|
/linux-6.3-rc2/drivers/net/ethernet/atheros/atl1e/ |
A D | atl1e_hw.c | 62 if (is_valid_ether_addr(hw->perm_mac_addr)) in atl1e_get_permanent_address() 89 if (is_valid_ether_addr(eth_addr)) { in atl1e_get_permanent_address()
|
/linux-6.3-rc2/drivers/net/ethernet/sunplus/ |
A D | spl2sw_driver.c | 157 if (is_valid_ether_addr(mac->mac_addr)) { in spl2sw_ethernet_set_mac_address() 251 if (!is_valid_ether_addr(mac)) { in spl2sw_nvmem_get_mac_address()
|
/linux-6.3-rc2/drivers/net/ethernet/atheros/atlx/ |
A D | atlx.c | 69 if (!is_valid_ether_addr(addr->sa_data)) in atlx_set_mac()
|
/linux-6.3-rc2/net/batman-adv/ |
A D | routing.c | 194 if (!is_valid_ether_addr(ethhdr->h_source)) in batadv_check_management_packet() 356 if (!is_valid_ether_addr(ethhdr->h_dest)) in batadv_recv_icmp_packet() 453 if (!is_valid_ether_addr(ethhdr->h_dest)) in batadv_check_unicast_packet()
|
/linux-6.3-rc2/drivers/net/ethernet/mediatek/ |
A D | mtk_ppe_offload.c | 352 if (!is_valid_ether_addr(data.eth.h_source) || in mtk_flow_offload_replace() 353 !is_valid_ether_addr(data.eth.h_dest)) in mtk_flow_offload_replace()
|
/linux-6.3-rc2/drivers/net/usb/ |
A D | dm9601.c | 329 if (!is_valid_ether_addr(addr->sa_data)) { in dm9601_set_mac_address() 394 if (is_valid_ether_addr(mac)) in dm9601_bind()
|
/linux-6.3-rc2/drivers/net/wireless/microchip/wilc1000/ |
A D | netdev.c | 600 if (is_valid_ether_addr(ndev->dev_addr)) { in wilc_mac_open() 609 if (!is_valid_ether_addr(ndev->dev_addr)) { in wilc_mac_open() 645 if (!is_valid_ether_addr(addr->sa_data)) in wilc_set_mac_addr()
|
/linux-6.3-rc2/Documentation/networking/ |
A D | driver.rst | 87 linux/etherdevice.h:is_valid_ether_addr()
|
/linux-6.3-rc2/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
A D | pno.c | 381 if (!err && is_valid_ether_addr(ms->bssid)) in brcmf_pno_config_networks() 586 if (is_valid_ether_addr(ms->bssid) && in brcmf_pno_get_bucket_map()
|
/linux-6.3-rc2/drivers/net/wireless/ath/wil6210/ |
A D | main.c | 1353 if (!is_valid_ether_addr(mac)) { in wil_get_bl_info() 1360 if (!is_valid_ether_addr(ndev->dev_addr)) in wil_get_bl_info() 1414 if (is_valid_ether_addr(mac)) { in wil_get_otp_info() 1426 if (!is_valid_ether_addr(mac)) { in wil_get_otp_info() 1433 if (!is_valid_ether_addr(ndev->dev_addr)) in wil_get_otp_info()
|
/linux-6.3-rc2/drivers/net/ethernet/freescale/enetc/ |
A D | enetc_vf.c | 82 if (!is_valid_ether_addr(saddr->sa_data)) in enetc_vf_set_mac_addr()
|
/linux-6.3-rc2/drivers/net/ethernet/wiznet/ |
A D | w5300.c | 473 if (!is_valid_ether_addr(sock_addr->sa_data)) in w5300_set_macaddr() 536 if (data && is_valid_ether_addr(data->mac_addr)) { in w5300_hw_probe()
|
/linux-6.3-rc2/drivers/net/ethernet/tundra/ |
A D | tsi108_eth.c | 329 if (is_valid_ether_addr(dev->dev_addr) && data->txfree) in tsi108_check_phy() 627 if (is_valid_ether_addr(dev->dev_addr) && data->link_up) in tsi108_complete_tx() 1115 if (!is_valid_ether_addr(dev->dev_addr)) { in tsi108_get_mac() 1130 if (!is_valid_ether_addr(addr)) in tsi108_set_mac()
|
/linux-6.3-rc2/net/8021q/ |
A D | vlan_netlink.c | 51 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) { in vlan_validate()
|