/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/hcc/ |
H A D | hcc_hmac.c | 105 ext_hdr = (frw_hcc_extend_hdr_stru *)oal_netbuf_data(netbuf); in hcc_hmac_tx_adapt_extend_hdr_init() 166 hi_u8 *hcc_hdr = (hi_u8 *)oal_netbuf_data(netbuf_pos); in hcc_sort_key_frame() 208 hi_u8 *hcc_hdr = (hi_u8 *)oal_netbuf_data(netbuf); in hcc_host_tx() 336 if (memcpy_s(oal_netbuf_data(netbuf), payload_len, event_payload, payload_len) != EOK) { in hmac_hcc_tx_event_buf_to_netbuf() 397 hi_u8 *netbuf_hdr = (hi_u8 *)oal_netbuf_data(netbuf); in hcc_adjust_netbuf_data() 463 tx_ctrl->frame_header = (mac_ieee80211_frame_stru *)oal_netbuf_data(netbuf); in hcc_host_tx_data_adapt() 472 netbuf_old_addr = (uintptr_t)(oal_netbuf_data(netbuf) + HI_MAX_DEV_CB_LEN + WLAN_MAX_MAC_HDR_LEN); in hcc_host_tx_data_adapt() 483 if (memmove_s((hi_u8 *)oal_netbuf_data(netbuf) - addr_offset, oal_netbuf_len(netbuf), in hcc_host_tx_data_adapt() 484 (hi_u8 *)oal_netbuf_data(netbuf), oal_netbuf_len(netbuf)) != EOK) { in hcc_host_tx_data_adapt()
|
H A D | hcc_host.c | 291 hcc_hdr = (hcc_header_stru *)oal_netbuf_data(netbuf); 309 oal_print_hex_dump((hi_u8 *)oal_netbuf_data(netbuf), (hi_s32)oal_netbuf_len(netbuf), 32, 317 oal_print_hex_dump(oal_netbuf_data(netbuf) + HCC_HDR_TOTAL_LEN + hcc_hdr->pad_payload, hcc_hdr->pay_len, 8, 350 hcc_hdr = (hcc_header_stru *)oal_netbuf_data(netbuf); 375 oal_print_hex_dump(oal_netbuf_data(netbuf), (hi_s32)oal_netbuf_len(netbuf), 32, 431 dscr_hdr = (struct hcc_descr_header *)oal_netbuf_data(netbuf); 447 if (memcpy_s((hi_void *)((hi_u8 *)oal_netbuf_data(netbuf) + sizeof(struct hcc_descr_header)), ul_size, data, 565 buf = (hi_u8 *)oal_netbuf_data(descr_netbuf); 751 buf = oal_netbuf_data(descr_netbuf); 865 hi_u8 *hcc_hdr = (hi_u8 *)oal_netbuf_data(netbu [all...] |
H A D | hmac_hcc_adapt.c | 74 hcc_extend_hdr = oal_netbuf_data((oal_netbuf_stru *)hcc_event_payload->netbuf); in hmac_hcc_rx_event_comm_adapt() 185 if (memcpy_s((hi_u8 *)frw_get_event_payload(event_mem), revert_size, (hi_u8 *)oal_netbuf_data(hcc_netbuf), in hmac_hcc_rx_netbuf_convert_to_event()
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/hmac/ |
H A D | hmac_wapi.c | 392 if (!((oal_netbuf_data(netbuf))[1] & 0x40)) { in hmac_wapi_netbuff_rx_handle() 497 mac_ieee80211_frame_stru *mac_hdr = (mac_ieee80211_frame_stru *)oal_netbuf_data(netbuf); /* for ut,del temprarily */ in hmac_wapi_decrypt() 540 hi_u32 wapi_result = oal_netbuf_copydata(netbuf, 0, oal_netbuf_data(netbuff_des), in hmac_wapi_decrypt() 567 (oal_netbuf_data(netbuff_des) + mac_hdr_len)); in hmac_wapi_decrypt() 591 if (hmac_wapi_calc_mic_data(mac_hdr, key_index, oal_netbuf_data(netbuff_des) + mac_hdr_len, us_pdu_len, in hmac_wapi_decrypt() 613 hi_u8 *puc_mic = oal_netbuf_data(netbuff_des) + mac_hdr_len + us_pdu_len; in hmac_wapi_decrypt() 623 (oal_netbuf_data(netbuff_des))[1] &= ~0x40; in hmac_wapi_decrypt() 700 oal_netbuf_data(netbuf_des) + HMAC_WAPI_HDR_LEN + MAC_80211_QOS_HTC_4ADDR_FRAME_LEN); in hmac_wapi_encrypt_action() 712 hi_u8 *puc_wapi_hdr = oal_netbuf_data(netbuf_des) + MAC_80211_QOS_HTC_4ADDR_FRAME_LEN; in hmac_wapi_encrypt_action() 728 (mac_ieee80211_frame_stru *)oal_netbuf_data(netbuf_de in hmac_wapi_encrypt_action() [all...] |
H A D | hmac_crypto_tkip.c | 153 const hi_u8 *puc_data = oal_netbuf_data(netbuf) + offset; in hmac_crypto_tkip_michael_mic() 182 const hi_u8 *puc_data_next = oal_netbuf_data(netbuf); in hmac_crypto_tkip_michael_mic() 207 puc_data = oal_netbuf_data(netbuf); in hmac_crypto_tkip_michael_mic() 296 if (memcpy_s(tmp_buff, pktlen, oal_netbuf_data(netbuf), pktlen) != EOK) { in hmac_crypto_tkip_enmic() 302 if (memcpy_s(oal_netbuf_data(netbuf), pktlen, tmp_buff, pktlen) != EOK) { in hmac_crypto_tkip_enmic()
|
H A D | hmac_frag.c | 239 if (memcpy_s(oal_netbuf_data(new_buf), HMAC_MAX_FRAG_SIZE, oal_netbuf_data(netbuf), oal_netbuf_len(netbuf)) != EOK) { in hmac_defrag_process_frame() 284 mac_ieee80211_frame_stru *mac_hdr = (mac_ieee80211_frame_stru *)oal_netbuf_data(netbuf); in hmac_defrag_process() 295 last_hdr = (mac_ieee80211_frame_stru *)oal_netbuf_data(hmac_user->defrag_netbuf); in hmac_defrag_process()
|
H A D | hmac_main.c | 315 pst_data_rate = (mac_data_rate_stru *)(oal_netbuf_data((oal_netbuf_stru *)(pst_ctx_event->netbuf))); 317 pst_data_mac_addr = (hi_u8 *)(oal_netbuf_data((oal_netbuf_stru *)(pst_ctx_event->netbuf))) +
|
H A D | hmac_tx_data.c | 277 ether_header = (mac_ether_header_stru *)oal_netbuf_data(netbuf); in hmac_tx_classify_lan_to_wlan() 312 oal_vlan_ethhdr_stru *vlan_ethhdr = (oal_vlan_ethhdr_stru *)oal_netbuf_data(netbuf); in hmac_tx_classify_lan_to_wlan() 504 ether_header = (mac_ether_header_stru *)oal_netbuf_data(netbuf); in hmac_tx_filter_security() 1079 mac_ether_header_stru *ether_hdr = (mac_ether_header_stru *)oal_netbuf_data(netbuf); in hmac_tx_encap() 1135 hdr = (mac_ieee80211_qos_frame_addr4_stru *)oal_netbuf_data(netbuf); in hmac_tx_encap() 1197 ether_hdr = (mac_ether_header_stru *)oal_netbuf_data(netbuf); in hmac_tx_lan_mpdu_process_sta() 1266 mac_ether_header_stru *ether_hdr = (mac_ether_header_stru *)oal_netbuf_data(netbuf); in hmac_tx_lan_mpdu_process_ap() 1573 hi_u8 data_type = mac_get_data_type_from_8023((hi_u8 *)oal_netbuf_data(netbuf), MAC_NETBUFF_PAYLOAD_ETH); in hmac_tx_lan_to_wlan()
|
H A D | hmac_rx_data.c | 78 snap = (mac_llc_snap_stru *)oal_netbuf_data(netbuf); in hmac_rx_frame_80211_to_eth() 83 ether_hdr = (mac_ether_header_stru *)oal_netbuf_data(netbuf); in hmac_rx_frame_80211_to_eth() 292 mac_ether_header_stru *ether = (mac_ether_header_stru *)oal_netbuf_data(netbuf); in hmac_rx_msdu_proc() 541 mac_ether_header_stru *ether_hdr = (mac_ether_header_stru *)oal_netbuf_data(netbuf); in hmac_rx_transmit_msdu_to_lan() 739 if (memcpy_s(oal_netbuf_data(*dest_netbuf), oal_netbuf_tailroom(*dest_netbuf), oal_netbuf_data(src_netbuf), in hmac_rx_copy_netbuff() 749 rx_ctrl->pul_mac_hdr_start_addr = (hi_u32 *)oal_netbuf_data(*dest_netbuf); in hmac_rx_copy_netbuff() 750 *ppul_mac_hdr_start_addr = (mac_ieee80211_frame_stru *)oal_netbuf_data(*dest_netbuf); in hmac_rx_copy_netbuff()
|
H A D | hmac_mgmt_bss_comm.c | 486 hi_u16 us_frame_len = hmac_mgmt_encap_addba_req(hmac_vap, oal_netbuf_data(addba_req), tx_ba, addba_info->tidno); in hmac_mgmt_set_addba_req() 505 if (memcpy_s((hi_u8 *)(oal_netbuf_data(addba_req) + us_frame_len), sizeof(dmac_ctx_action_event_stru), in hmac_mgmt_set_addba_req() 741 hi_u16 us_frame_len = hmac_mgmt_encap_addba_rsp(hmac_vap, oal_netbuf_data(addba_rsp), ba_rx_info, tid, status); in hmac_mgmt_tx_addba_rsp() 761 if (memcpy_s((hi_u8 *)(oal_netbuf_data(addba_rsp) + us_frame_len), sizeof(dmac_ctx_action_event_stru), in hmac_mgmt_tx_addba_rsp() 889 if (memcpy_s((hi_u8 *)(oal_netbuf_data(delba) + us_frame_len), sizeof(dmac_ctx_action_event_stru), in hmac_mgmt_tx_delba()
|
H A D | hmac_scan.c | 948 hi_u8 *puc_mgmt_frame = (hi_u8 *)oal_netbuf_data(netbuf); in hmac_scan_update_bss_base() 1063 hi_u8 *puc_mgmt_frame = (hi_u8 *)oal_netbuf_data(netbuf); in hmac_scan_update_bss_dscr()
|
H A D | hmac_config.c | 3052 dpd_cali_data_stru *dpd_cali_data = (dpd_cali_data_stru *)(oal_netbuf_data(netbuf_dpd_data)); in hmac_dpd_data_processed_send() 3098 dpd_cali_data_read = (dpd_cali_data_stru *)oal_netbuf_data(dpd_data_netbuf); in hmac_dpd_cali_data_recv() 7271 puc_payload = (hi_u8 *)oal_netbuf_data(netbuf); in hmac_config_new_peer_candidate_event()
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/ |
H A D | oal_netbuf.h | 154 #define oal_netbuf_data(nb) NetBufGetAddress(nb, E_DATA_BUF)
macro 212 #define oal_netbuf_data(nb) ((nb)->data)
macro 274 if (memcpy_s(dst, dst_len, oal_netbuf_data(netbuf) + offset, len) != EOK) {
in oal_netbuf_copydata()
|
H A D | oal_sdio_host.c | 1387 return oal_sdio_single_transfer(bus, SDIO_WRITE, oal_netbuf_data(netbuf), oal_netbuf_len(netbuf)); in oal_sdio_transfer_tx() 1787 if (!oal_is_aligned((uintptr_t)oal_netbuf_data(netbuf), 4)) { /* 4 字节对齐 */ in oal_sdio_transfer_netbuf_list() 1799 sg_set_buf(&sg[idx], oal_netbuf_data(netbuf), oal_netbuf_len(netbuf)); in oal_sdio_transfer_netbuf_list() 2311 print_hex_dump_bytes("netbuf :", DUMP_PREFIX_ADDRESS, oal_netbuf_data(netbuf), oal_netbuf_len(netbuf)); in oal_netbuf_list_hex_dump() 2322 printk(KERN_DEBUG "==prepare to netbuf,%p,len:%d=========\n", oal_netbuf_data(netbuf), oal_netbuf_len(netbuf)); in oal_netbuf_hex_dump() 2324 print_hex_dump_bytes("netbuf :", DUMP_PREFIX_ADDRESS, oal_netbuf_data(netbuf), oal_netbuf_len(netbuf)); in oal_netbuf_hex_dump()
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/wal/ |
H A D | wal_linux_flowctl.c | 66 ether_header = (oal_ether_header_stru *)oal_netbuf_data(netbuf); in wal_netdev_select_queue()
|
H A D | wal_ioctl.c | 1700 pc_sta_list = (hi_char *)oal_netbuf_data(pst_response_netbuf); in wal_ioctl_get_assoc_list()
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/common/ |
H A D | mac_data.c | 51 snap = (mac_llc_snap_stru *)(oal_netbuf_data(netbuf) + us_mac_hdr_len); in mac_get_data_type_from_80211()
|
H A D | mac_frame.c | 2583 llc = (mac_llc_snap_stru *)(oal_netbuf_data(netbuf) + offset); in mac_set_snap()
|