Home
last modified time | relevance | path

Searched refs:sa_data (Results 1 – 25 of 244) sorted by relevance

12345678910

/kernel/linux/linux-5.10/net/rose/
Drose_dev.c61 if (!memcmp(dev->dev_addr, sa->sa_data, dev->addr_len)) in rose_set_mac_address()
65 err = rose_add_loopback_node((rose_address *)sa->sa_data); in rose_set_mac_address()
72 memcpy(dev->dev_addr, sa->sa_data, dev->addr_len); in rose_set_mac_address()
/kernel/linux/linux-5.10/net/netrom/
Dnr_dev.c103 if (!memcmp(dev->dev_addr, sa->sa_data, dev->addr_len)) in nr_set_mac_address()
107 err = ax25_listen_register((ax25_address *)sa->sa_data, NULL); in nr_set_mac_address()
114 memcpy(dev->dev_addr, sa->sa_data, dev->addr_len); in nr_set_mac_address()
/kernel/linux/linux-5.10/net/wireless/
Dwext-spy.c57 memcpy(spydata->spy_address[i], address[i].sa_data, in iw_handler_set_spy()
91 memcpy(address[i].sa_data, spydata->spy_address[i], ETH_ALEN); in iw_handler_get_spy()
173 memcpy(threshold.addr.sa_data, address, ETH_ALEN); in iw_send_thrspy_event()
Dibss.c54 memcpy(wrqu.ap_addr.sa_data, bssid, ETH_ALEN); in __cfg80211_ibss_joined()
467 u8 *bssid = ap_addr->sa_data; in cfg80211_ibss_wext_siwap()
532 memcpy(ap_addr->sa_data, wdev->current_bss->pub.bssid, ETH_ALEN); in cfg80211_ibss_wext_giwap()
534 memcpy(ap_addr->sa_data, wdev->wext.ibss.bssid, ETH_ALEN); in cfg80211_ibss_wext_giwap()
536 eth_zero_addr(ap_addr->sa_data); in cfg80211_ibss_wext_giwap()
Dwext-sme.c245 u8 *bssid = ap_addr->sa_data; in cfg80211_mgd_wext_siwap()
304 memcpy(ap_addr->sa_data, wdev->current_bss->pub.bssid, ETH_ALEN); in cfg80211_mgd_wext_giwap()
306 eth_zero_addr(ap_addr->sa_data); in cfg80211_mgd_wext_giwap()
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/
Dnet_socket_test_010.cpp141 …02hhX:%02hhX:%02hhX:XX:XX:XX", ifr.ifr_hwaddr.sa_data[0], ifr.ifr_hwaddr.sa_data[1], ifr.ifr_hwadd… in IoctlTestInternal()
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/atlx/
Datlx.c69 if (!is_valid_ether_addr(addr->sa_data)) in atlx_set_mac()
72 memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); in atlx_set_mac()
73 memcpy(adapter->hw.mac_addr, addr->sa_data, netdev->addr_len); in atlx_set_mac()
/kernel/linux/linux-5.10/net/core/
Ddev_ioctl.c247 memcpy(dev->broadcast, ifr->ifr_hwaddr.sa_data, in dev_ifsioc()
248 min(sizeof(ifr->ifr_hwaddr.sa_data), in dev_ifsioc()
267 return dev_mc_add_global(dev, ifr->ifr_hwaddr.sa_data); in dev_ifsioc()
275 return dev_mc_del_global(dev, ifr->ifr_hwaddr.sa_data); in dev_ifsioc()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dmcg.c282 struct ib_sa_mcmember_data *sa_data = (struct ib_sa_mcmember_data *)&mad.data; in send_leave_to_wire() local
301 *sa_data = group->rec; in send_leave_to_wire()
302 sa_data->scope_join_state = join_state; in send_leave_to_wire()
322 struct ib_sa_mcmember_data *sa_data = (struct ib_sa_mcmember_data *)&mad.data; in send_reply_to_slave() local
341 *sa_data = group->rec; in send_reply_to_slave()
344 sa_data->scope_join_state &= 0xf0; in send_reply_to_slave()
345 sa_data->scope_join_state |= (group->func[slave].join_state & 0x0f); in send_reply_to_slave()
346 memcpy(&sa_data->port_gid, &req_sa_data->port_gid, sizeof req_sa_data->port_gid); in send_reply_to_slave()
611 struct ib_sa_mcmember_data *sa_data = (struct ib_sa_mcmember_data *)req->sa_mad.data; in handle_join_req() local
615 status = cmp_rec(&group->rec, sa_data, req->sa_mad.sa_hdr.comp_mask); in handle_join_req()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8192e/
Drtllib_softmac_wx.c120 eth_zero_addr(wrqu->ap_addr.sa_data); in rtllib_wx_get_wap()
122 memcpy(wrqu->ap_addr.sa_data, in rtllib_wx_get_wap()
158 if (is_zero_ether_addr(temp->sa_data)) { in rtllib_wx_set_wap()
160 ether_addr_copy(ieee->current_network.bssid, temp->sa_data); in rtllib_wx_set_wap()
177 ether_addr_copy(ieee->current_network.bssid, temp->sa_data); in rtllib_wx_set_wap()
178 ieee->wap_set = !is_zero_ether_addr(temp->sa_data); in rtllib_wx_set_wap()
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/os_dep/
Dmlme_linux.c145 memcpy(wrqu.addr.sa_data, psta->hwaddr, ETH_ALEN); in rtw_indicate_sta_assoc_event()
168 memcpy(wrqu.addr.sa_data, psta->hwaddr, ETH_ALEN); in rtw_indicate_sta_disassoc_event()
/kernel/uniproton/src/net/lwip-2.1/include/lwip/
Dsockets.h48 #define sa_len sa_data[0] * 0 + SA_LEN(naddr, _)
/kernel/liteos_m/components/net/lwip-2.1/porting/include/lwip/
Dsockets.h68 #define sa_len sa_data[0] * 0 + SA_LEN(naddr, _)
/kernel/liteos_a/net/lwip-2.1/porting/include/lwip/
Dsockets.h68 #define sa_len sa_data[0] * 0 + SA_LEN(naddr, _)
/kernel/linux/linux-5.10/drivers/staging/rtl8192u/ieee80211/
Dieee80211_softmac_wx.c122 eth_zero_addr(wrqu->ap_addr.sa_data); in ieee80211_wx_get_wap()
124 memcpy(wrqu->ap_addr.sa_data, in ieee80211_wx_get_wap()
167 memcpy(ieee->current_network.bssid, temp->sa_data, ETH_ALEN); in ieee80211_wx_set_wap()
168 ieee->wap_set = !is_zero_ether_addr(temp->sa_data); in ieee80211_wx_set_wap()
/kernel/linux/linux-5.10/drivers/staging/ks7010/
Dks_wlan_net.c322 ether_addr_copy(priv->reg.bssid, awrq->ap_addr.sa_data); in ks_wlan_set_wap()
346 ether_addr_copy(awrq->ap_addr.sa_data, priv->current_ap.bssid); in ks_wlan_get_wap()
348 eth_zero_addr(awrq->ap_addr.sa_data); in ks_wlan_get_wap()
1100 ether_addr_copy(address[i].sa_data, priv->aplist.ap[i].bssid); in ks_wlan_get_aplist()
1195 ether_addr_copy(iwe.u.ap_addr.sa_data, ap->bssid); in ks_wlan_translate_scan()
1569 ether_addr_copy(&key->addr.sa_data[0], &enc->addr.sa_data[0]); in ks_wlan_set_encode_ext()
1675 ether_addr_copy(pmk->bssid, pmksa->bssid.sa_data); in ks_wlan_set_pmksa()
1684 if (ether_addr_equal(pmksa->bssid.sa_data, pmk->bssid)) { in ks_wlan_set_pmksa()
1700 ether_addr_copy(pmk->bssid, pmksa->bssid.sa_data); in ks_wlan_set_pmksa()
1707 ether_addr_copy(pmk->bssid, pmksa->bssid.sa_data); in ks_wlan_set_pmksa()
[all …]
/kernel/linux/linux-5.10/drivers/net/usb/
Dsr9700.c293 if (!is_valid_ether_addr(addr->sa_data)) { in sr9700_set_mac_address()
295 addr->sa_data); in sr9700_set_mac_address()
299 memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); in sr9700_set_mac_address()
Dmcs7830.c161 if (!is_valid_ether_addr(addr->sa_data)) in mcs7830_set_mac_address()
164 ret = mcs7830_hif_set_mac_address(dev, addr->sa_data); in mcs7830_set_mac_address()
170 memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); in mcs7830_set_mac_address()
Ddm9601.c328 if (!is_valid_ether_addr(addr->sa_data)) { in dm9601_set_mac_address()
330 addr->sa_data); in dm9601_set_mac_address()
334 memcpy(net->dev_addr, addr->sa_data, net->addr_len); in dm9601_set_mac_address()
/kernel/linux/linux-5.10/net/bridge/
Dbr_device.c242 if (!is_valid_ether_addr(addr->sa_data)) in br_set_mac_address()
252 if (!ether_addr_equal(dev->dev_addr, addr->sa_data)) { in br_set_mac_address()
254 br_stp_change_bridge_id(br, addr->sa_data); in br_set_mac_address()
/kernel/liteos_a/testsuites/unittest/container/smoke/
DIt_net_container_001.cpp54 inet_pton(AF_INET, ip, ifr.ifr_addr.sa_data + 2); /* 2: offset */ in SetIP()
DIt_net_container_002.cpp54 inet_pton(AF_INET, ip, ifr.ifr_addr.sa_data + 2); /* 2: offset */ in SetIP()
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/orinoco/
Dwext.c168 if (is_zero_ether_addr(ap_addr->sa_data) || in orinoco_ioctl_setwap()
169 is_broadcast_ether_addr(ap_addr->sa_data)) { in orinoco_ioctl_setwap()
174 if (ap_addr->sa_data[0] == 0) { in orinoco_ioctl_setwap()
207 memcpy(priv->desired_bssid, &ap_addr->sa_data, ETH_ALEN); in orinoco_ioctl_setwap()
228 err = orinoco_hw_get_current_bssid(priv, ap_addr->sa_data); in orinoco_ioctl_getwap()
1086 ret = orinoco_hw_disassociate(priv, mlme->addr.sa_data, in orinoco_ioctl_set_mlme()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_main.c137 err = prestera_is_valid_mac_addr(port, addr->sa_data); in prestera_port_set_mac_address()
141 err = prestera_hw_port_mac_set(port, addr->sa_data); in prestera_port_set_mac_address()
145 ether_addr_copy(dev->dev_addr, addr->sa_data); in prestera_port_set_mac_address()
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/hostap/
Dhostap_ioctl.c694 memcpy(local->preferred_ap, &ap_addr->sa_data, ETH_ALEN); in prism2_ioctl_siwap()
734 memcpy(&ap_addr->sa_data, dev->dev_addr, ETH_ALEN); in prism2_ioctl_giwap()
737 memcpy(&ap_addr->sa_data, local->assoc_ap_addr, ETH_ALEN); in prism2_ioctl_giwap()
740 memcpy(&ap_addr->sa_data, iface->u.wds.remote_addr, ETH_ALEN); in prism2_ioctl_giwap()
744 &ap_addr->sa_data, ETH_ALEN, 1) < 0) in prism2_ioctl_giwap()
749 memcpy(local->bssid, &ap_addr->sa_data, ETH_ALEN); in prism2_ioctl_giwap()
1806 memcpy(iwe.u.ap_addr.sa_data, bssid, ETH_ALEN); in __prism2_translate_scan()
3220 addr = ext->addr.sa_data; in prism2_ioctl_siwencodeext()
3392 addr = ext->addr.sa_data; in prism2_ioctl_giwencodeext()
3738 return prism2_sta_send_mgmt(local, mlme->addr.sa_data, in prism2_ioctl_siwmlme()
[all …]

12345678910