/device/soc/rockchip/rk3588/kernel/drivers/net/ethernet/stmicro/stmmac/ |
H A D | hwif.h | 400 stmmac_do_void_callback(__priv, mac, core_init, __args) 402 stmmac_do_void_callback(__priv, mac, set_mac, __args) 404 stmmac_do_callback(__priv, mac, rx_ipc, __args) 406 stmmac_do_void_callback(__priv, mac, rx_queue_enable, __args) 408 stmmac_do_void_callback(__priv, mac, rx_queue_prio, __args) 410 stmmac_do_void_callback(__priv, mac, tx_queue_prio, __args) 412 stmmac_do_void_callback(__priv, mac, rx_queue_routing, __args) 414 stmmac_do_void_callback(__priv, mac, prog_mtl_rx_algorithms, __args) 416 stmmac_do_void_callback(__priv, mac, prog_mtl_tx_algorithms, __args) 418 stmmac_do_void_callback(__priv, mac, set_mtl_tx_queue_weigh [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/ |
H A D | hi_any_api.h | 63 unsigned char mac[WIFI_ANY_MAC_LEN]; /**< the MAC address for peer device. */ member 126 * 2. The memories of <mac> and <data> are requested and freed by the driver.\n 127 * CNcomment:2. <mac>和<data>由驱动申请内存,也由驱动释放,回调中不应释放.CNend 128 * @param mac [IN] Type #unsigned char *, MAC address with 6 octets length.CNcomment:6字节长度MAC地址.CNend 140 typedef void (*hi_wifi_any_recv_cb)(unsigned char *mac, unsigned char *data, unsigned short len, unsigned char seqnum); 152 * 2. The memories of <mac> are requested and freed by the driver.\n 153 * CNcomment:2. <mac>由驱动申请内存,也由驱动释放,回调中不应释放.CNend 154 * @param mac [IN] Type #unsigned char *, MAC address with 6 octets length.CNcomment:6字节长度MAC地址.CNend 165 typedef void (*hi_wifi_any_send_complete_cb)(unsigned char *mac, unsigned char status, unsigned char seqnum); 240 * @brief Send ANY frame to specific mac addres [all...] |
H A D | hi_wifi_csi_api.h | 81 unsigned char mac[HI_WIFI_MAC_LEN]; /**< Mac address. CNcomment: MAC地址.CNend */ member
|
H A D | hi_wifi_sdp_api.h | 38 typedef int (*hi_wifi_sdp_recv_cb)(unsigned char* mac, unsigned char peer_handle, unsigned char local_handle,
|
/device/soc/hisilicon/common/platform/hieth-sf/src/ |
H A D | ctrl.c | 173 int32_t HiethHwSetMacAddress(struct HiethNetdevLocal *ld, int32_t ena, const uint8_t *mac) in HiethHwSetMacAddress() argument 181 reg = mac[1] | (mac[0] << 8); in HiethHwSetMacAddress() 188 reg = mac[5] | (mac[4] << 8) | (mac[3] << 16) | (mac[2] << 24); in HiethHwSetMacAddress() 197 int32_t HiethHwGetMacAddress(struct HiethNetdevLocal *ld, uint8_t *mac) in HiethHwGetMacAddress() argument 206 mac[0] = (reg >> 8) & 0xff; in HiethHwGetMacAddress() 207 mac[ in HiethHwGetMacAddress() [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/lwip/ |
H A D | nat64.h | 41 linklayer_addr_t mac; member 153 * This API is used to add an entry of nat64 in the MBR, when receive DAO with mac: 157 * mac: mac address received from DAO 163 nat64_entry_t *nat64_entry_add(const u8_t *mac, int maclen); 166 nat64_entry_t *nat64_entry_lookup_by_mac(const linklayer_addr_t *mac);
|
H A D | dhcps.h | 67 err_t dhcps_find_client_lease(struct netif *netif, u8_t *mac, u8_t maclen, ip_addr_t *ip); 69 void dhcps_client_disconnect(struct netif *netif, const u8_t *mac, u8_t maclen);
|
H A D | lwip_rpl.h | 30 void lwip_rpl_dao_proxy(const ip6_addr_t *ip6addr, const u8_t *mac, u8_t maclen); 49 uint8_t is_connected_ap(const uint8_t *mac, uint8_t maclen);
|
H A D | nat64_v4_dhcpc.h | 18 void nat64_dhcp_ip4_event(const u8_t *mac, u8_t maclen, const ip4_addr_t *ipaddr, int event);
|
H A D | nat64_addr.h | 11 int nat64_addr_mac_to6(const linklayer_addr_t *mac, ip6_addr_t *ip6addr);
|
H A D | netifapi.h | 132 u8_t *mac; member 229 u8_t *mac; member 521 * @param from_mac_48bit specifies whether mac address is 48 bit for 64 bit format */ 1155 err_t netifapi_dhcps_get_client_ip(struct netif *netif, u8_t *mac, u8_t maclen, ip_addr_t *ip); 1725 * @param[out] mac The buffer to record the related MAC address. 1726 * @param[in/out] maclen As in parameter, indicates the length of mac buffer. 1733 err_t netifapi_ip_to_mac(const ip4_addr_t *ip, u8_t *mac, u8_t *maclen);
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/ |
H A D | poly1305.h | 8 * Bernstein https://cr.yp.to/mac/poly1305-20050329.pdf The generic 146 * \param mac The buffer to where the MAC is written. This must 153 unsigned char mac[16] ); 167 * \param mac The buffer to where the MAC is written. This must be 176 unsigned char mac[16] );
|
H A D | chachapoly.h | 258 * \param mac The buffer to where the 128-bit (16 bytes) MAC is written. 270 unsigned char mac[16] );
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/ |
H A D | Makefile | 32 MAC_PATH := $(WIFI_DRIVER_DIR)/mac/common/ 33 HMAC_PATH := $(WIFI_DRIVER_DIR)/mac/hmac/ 118 mac-objs := mac_data.o mac_device.o mac_frame.o mac_ie.o mac_user.o mac_vap.o mac_mib.o mac_resource.o mac_regdomain.o mac_pm_driver.o 119 mac-objs := $(addprefix $(MAC_PATH),$(mac-objs)) 124 wifi-objs += $(mac-objs) $(hmac-objs) $(wal-objs) $(hcc-objs)
|
/device/board/hihope/rk3568/wifi/bcmdhd_wifi6/hdfadapt/ |
H A D | net_bdh_adpater.c | 190 // set mac address in P2pInitNetdev() 282 // update mac addr to NetDevice object in hdf_bdh6_netdev_open() 395 const uint8_t *mac = (uint8_t *)addr; in hdf_bdh6_netdev_setmacaddr() local 400 if (netdev == NULL || mac == NULL) { in hdf_bdh6_netdev_setmacaddr() 405 if (!is_valid_ether_addr(mac)) { in hdf_bdh6_netdev_setmacaddr() 406 HDF_LOGE("%s: mac is invalid %02x:%02x:%02x:%02x:%02x:%02x", __func__, in hdf_bdh6_netdev_setmacaddr() 407 mac[MC0], mac[MC1], mac[MC2], mac[MC in hdf_bdh6_netdev_setmacaddr() [all...] |
H A D | hdf_bdh_mac80211.c | 148 HDF_LOGI("%s: start..., mac = %p, keyIndex = %u,pairwise = %d, cipher = 0x%x, seqlen = %d, keylen = %d", in BDH6WalAddKey() 193 HDF_LOGI("%s: start..., mac=%p, keyIndex=%u,pairwise=%d", __func__, macAddr, keyIndex, pairwise); in BDH6WalDelKey() 239 int32_t BDH6WalGetDeviceMacAddr(NetDevice *hnetDev, int32_t type, uint8_t *mac, uint8_t len) in BDH6WalGetDeviceMacAddr() argument 255 memcpy_s(mac, len, netdev->dev_addr, netdev->addr_len); in BDH6WalGetDeviceMacAddr() 260 int32_t BDH6WalSetMacAddr(NetDevice *hnetDev, uint8_t *mac, uint8_t len) in BDH6WalSetMacAddr() argument 274 if (mac == NULL || len != ETH_ALEN) { in BDH6WalSetMacAddr() 275 HDF_LOGE("%s: mac is error, len=%u", __func__, len); in BDH6WalSetMacAddr() 278 if (!is_valid_ether_addr(mac)) { in BDH6WalSetMacAddr() 279 HDF_LOGE("%s: mac is invalid %02x:%02x:%02x:%02x:%02x:%02x", __func__, in BDH6WalSetMacAddr() 280 mac[ in BDH6WalSetMacAddr() 1082 HdfSetScanningMacAddress(NetDevice *hnetDev, unsigned char *mac, uint32_t len) HdfSetScanningMacAddress() argument [all...] |
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/wal/ |
H A D | wal_mac80211.c | 417 oam_error_log0(0, OAM_SF_ANY, "{wal_cfg80211_stop_ap::can't get mac vap from netdevice priv data!}");
in WalStopAp() 471 params.mac = macAddr;
in WalDelStation() 497 int32_t WalSetMacAddr(NetDevice *netDev, uint8_t *mac, uint8_t len)
in WalSetMacAddr() argument 502 ret = wal_macaddr_check(mac);
in WalSetMacAddr() 504 oam_error_log0(0, OAM_SF_ANY, "mac addr is unavailable!");
in WalSetMacAddr() 507 ret = memcpy_s(g_macStorage.mac, ETHER_ADDR_LEN, mac, len);
in WalSetMacAddr() 516 static int32_t PreSetMac(NetDevice *netDev, hi_u8 *mac, hi_u8 len)
in PreSetMac() argument 523 ret = NetIfSetMacAddr(netDev, mac, len);
in PreSetMac() 528 if (memcpy_s(param.mac, ETHER_ADDR_LE in PreSetMac() 601 WalGetDeviceMacAddr(NetDevice *netDev, int32_t type, uint8_t *mac, uint8_t len) WalGetDeviceMacAddr() argument 736 WalSetScanningMacAddress(NetDevice *netDev, unsigned char *mac, uint32_t len) WalSetScanningMacAddress() argument [all...] |
H A D | hi_wifi_driver_api.c | 310 功能描述 : 设置起始mac地址 338 功能描述 : 获取起始mac地址 1043 if (ether_is_multicast(puc_peer_info->mac) || (memcmp(auc_mac, puc_peer_info->mac, ETH_ALEN) == 0)) { in hi_wifi_any_add_peer() 1077 输入参数 : mac 对端MAC地址数组,只取前六字节 1087 hi_s32 hi_wifi_any_del_peer(const hi_u8 *mac, hi_u8 len) in hi_wifi_any_del_peer() argument 1094 if ((mac == HI_NULL) || (len < ETH_ALEN)) { in hi_wifi_any_del_peer() 1095 oam_error_log0(0, OAM_SF_ANY, "{hi_wifi_any_del_peer:mac or length is invalid.}"); in hi_wifi_any_del_peer() 1100 if (ether_is_multicast(mac) || (memcmp(auc_mac, mac, ETH_ALE in hi_wifi_any_del_peer() 1147 hi_wifi_any_send(const hi_u8 *mac, hi_u8 mac_len, hi_u8 *data, hi_u16 data_len, hi_u8 seq) hi_wifi_any_send() argument [all...] |
/device/soc/hisilicon/hi3861v100/hi3861_adapter/hals/communication/wifi_lite/wifiservice/source/ |
H A D | wifi_hotspot.c | 266 cpyErr = memcpy_s(result[i].macAddress, WIFI_MAC_LEN, staList[i].mac, HI_WIFI_MAC_LEN); in GetStationList() 274 int ret = GetPeerSTAWifiIp(staList[i].mac, WIFI_MAC_LEN, &(result[i].ipAddress)); in GetStationList() 403 WifiErrorCode DisassociateSta(unsigned char* mac, int macLen) in DisassociateSta() argument 405 int ret = hi_wifi_softap_deauth_sta(mac, macLen); in DisassociateSta()
|
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/ |
H A D | p2p.h | 161 uint8 mac[6]; /* P2P group bssid */ member 169 uint8 mac[6]; /* P2P device address */ member 178 uint8 mac[6]; /* P2P device address */ member 237 uint8 mac[6]; /* intended P2P interface MAC address */ member 310 uint8 mac[6]; /* P2P Device MAC address */ member 445 uint8 ssn_mac[6]; /* P2P device address of the seeker - session mac */
|
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/ |
H A D | wl_cfgp2p.h | 277 wl_cfgp2p_ifadd(struct bcm_cfg80211 *cfg, struct ether_addr *mac, u8 if_type, 280 wl_cfgp2p_ifdisable(struct bcm_cfg80211 *cfg, struct ether_addr *mac); 282 wl_cfgp2p_ifdel(struct bcm_cfg80211 *cfg, struct ether_addr *mac); 284 wl_cfgp2p_ifchange(struct bcm_cfg80211 *cfg, struct ether_addr *mac, u8 if_type, 288 wl_cfgp2p_ifidx(struct bcm_cfg80211 *cfg, struct ether_addr *mac, s32 *index);
|
H A D | wl_cfgp2p.c | 422 /* In case of COB type, firmware has default mac address in wl_cfgp2p_set_firm_p2p() 423 * After Initializing firmware, we have to set current mac address to in wl_cfgp2p_set_firm_p2p() 450 * @mac : MAC address of the BSS to create 456 wl_cfgp2p_ifadd(struct bcm_cfg80211 *cfg, struct ether_addr *mac, u8 if_type, in wl_cfgp2p_ifadd() argument 465 memcpy(ifreq.addr.octet, mac->octet, sizeof(ifreq.addr.octet)); in wl_cfgp2p_ifadd() 484 * @mac : MAC address of the BSS to disable 488 wl_cfgp2p_ifdisable(struct bcm_cfg80211 *cfg, struct ether_addr *mac) in wl_cfgp2p_ifdisable() argument 494 MAC2STRDBG(mac->octet), netdev->ifindex)); in wl_cfgp2p_ifdisable() 495 ret = wldev_iovar_setbuf(netdev, "p2p_ifdis", mac, sizeof(*mac), in wl_cfgp2p_ifdisable() 509 wl_cfgp2p_ifdel(struct bcm_cfg80211 *cfg, struct ether_addr *mac) wl_cfgp2p_ifdel() argument 546 wl_cfgp2p_ifchange(struct bcm_cfg80211 *cfg, struct ether_addr *mac, u8 if_type, chanspec_t chspec, s32 conn_idx) wl_cfgp2p_ifchange() argument 581 wl_cfgp2p_ifidx(struct bcm_cfg80211 *cfg, struct ether_addr *mac, s32 *index) wl_cfgp2p_ifidx() argument [all...] |
/device/qemu/drivers/virtio/ |
H A D | virtnet.c | 38 uint8_t mac[6]; member 118 netDev->macAddr[i] = conf->mac[i]; in Feature0() 561 static int32_t FakeWalGetDeviceMacAddr(NetDevice *netDev, int32_t type, uint8_t *mac, uint8_t len) in FakeWalGetDeviceMacAddr() argument 567 mac[i] = netDev->macAddr[i]; in FakeWalGetDeviceMacAddr() 572 static int32_t FakeWalSetMacAddr(NetDevice *netDev, uint8_t *mac, uint8_t len) in FakeWalSetMacAddr() argument 577 netDev->macAddr[i] = mac[i]; in FakeWalSetMacAddr() 677 static int32_t FakeStaSetScanningMacAddress(NetDevice *netDev, unsigned char *mac, uint32_t len) in FakeStaSetScanningMacAddress() argument 680 (void)mac; in FakeStaSetScanningMacAddress()
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/include/ |
H A D | hi_wifi_csi_api.h | 85 unsigned char mac[HI_WIFI_MAC_LEN]; /* *< Mac address. CNcomment: MAC地址.CNend */ member
|
/device/qemu/arm_mps2_an386/liteos_m/board/driver/net/ |
H A D | lan9118_eth_drv.c | 841 enum lan9118_error_t lan9118_read_mac_address(const struct lan9118_eth_dev_t* dev, char* mac) in lan9118_read_mac_address() argument 846 if (!mac) { in lan9118_read_mac_address() 856 mac[0] = mac_low & 0xFF; in lan9118_read_mac_address() 857 mac[1] = (mac_low >> 8) & 0xFF; in lan9118_read_mac_address() 858 mac[2] = (mac_low >> 16) & 0xFF; in lan9118_read_mac_address() 859 mac[3] = (mac_low >> 24) & 0xFF; in lan9118_read_mac_address() 860 mac[4] = mac_high & 0xFF; in lan9118_read_mac_address() 861 mac[5] = (mac_high >> 8) & 0xFF; in lan9118_read_mac_address() 1148 PRINT_ERR("get mac addr error\n"); in LowLevelInit() 1217 /* initialize mac */ in EthernetifInit() [all...] |