Home
last modified time | relevance | path

Searched refs:netbuf (Results 1 - 25 of 51) sorted by relevance

123

/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/hmac/
H A Dhmac_frag.c43 oal_netbuf_stru *netbuf = HI_NULL; in hmac_frag_process() local
66 netbuf = oal_netbuf_alloc(frag_size + MAC_80211_QOS_HTC_4ADDR_FRAME_LEN, MAC_80211_QOS_HTC_4ADDR_FRAME_LEN, in hmac_frag_process()
68 if (netbuf == HI_NULL) { in hmac_frag_process()
74 hmac_tx_ctl_stru *tx_ctl_copy = (hmac_tx_ctl_stru *)oal_netbuf_cb(netbuf); in hmac_frag_process()
77 oal_netbuf_free(netbuf); in hmac_frag_process()
82 /* netbuf的headroom大于802.11 mac头长度 */ in hmac_frag_process()
83 frag_header = (mac_ieee80211_frame_stru *)(oal_netbuf_payload(netbuf) - mac_hdr_size); in hmac_frag_process()
88 oal_netbuf_free(netbuf); in hmac_frag_process()
100 hi_u32 ret = oal_netbuf_copydata(netbuf_original, copy_offset, oal_netbuf_payload(netbuf), in hmac_frag_process()
103 oal_netbuf_free(netbuf); in hmac_frag_process()
139 hmac_frag_process_proc(const hmac_vap_stru *hmac_vap, const hmac_user_stru *hmac_user, oal_netbuf_stru *netbuf, hmac_tx_ctl_stru *tx_ctl) hmac_frag_process_proc() argument
185 oal_netbuf_stru *netbuf = HI_NULL; hmac_defrag_timeout_fn() local
199 hmac_defrag_process_frame(hmac_user_stru *hmac_user, oal_netbuf_stru *netbuf, hi_u8 frag_num, const mac_ieee80211_frame_stru *mac_hdr, hi_u8 more_frag) hmac_defrag_process_frame() argument
254 oal_netbuf_stru *netbuf = hmac_user->defrag_netbuf; hmac_get_defraged_netbuf() local
280 hmac_defrag_process(hmac_user_stru *hmac_user, oal_netbuf_stru *netbuf, hi_u32 hrdsize) hmac_defrag_process() argument
[all...]
H A Dhmac_rx_data.c63 输入参数 : pst_netbuf : 指向含有MSDU的netbuf的指针
71 static hi_void hmac_rx_frame_80211_to_eth(oal_netbuf_stru *netbuf, const hi_u8 *da_mac_addr, hi_u8 da_addr_len, in hmac_rx_frame_80211_to_eth() argument
78 snap = (mac_llc_snap_stru *)oal_netbuf_data(netbuf); in hmac_rx_frame_80211_to_eth()
82 oal_netbuf_push(netbuf, HMAC_RX_DATA_ETHER_OFFSET_LENGTH); 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()
95 功能描述 : 释放指定个数的netbuf
96 输入参数 : (1)期望删除的netbuf的起始指针
97 (2)需要删除的netbuf的个数
104 hi_void hmac_rx_free_netbuf(oal_netbuf_stru *netbuf, hi_u16 us_nums) in hmac_rx_free_netbuf() argument
109 if (oal_unlikely(netbuf in hmac_rx_free_netbuf()
143 oal_netbuf_stru *netbuf = HI_NULL; hmac_rx_free_netbuf_list() local
174 oal_netbuf_stru *netbuf = HI_NULL; /* 从netbuf链上取下来的指向netbuf的指针 */ hmac_rx_transmit_to_wlan() local
239 hmac_rx_set_msdu_state(oal_netbuf_stru *netbuf, hmac_msdu_proc_state_stru *msdu_state) hmac_rx_set_msdu_state() argument
253 hmac_rx_msdu_proc(const hmac_vap_stru *hmac_vap, oal_netbuf_head_stru *netbuf_header, oal_netbuf_stru *netbuf, mac_ieee80211_frame_stru *frame_hdr, const hmac_rx_ctl_stru *rx_ctrl) hmac_rx_msdu_proc() argument
323 hmac_rx_prepare_msdu_list_to_wlan(const hmac_vap_stru *hmac_vap, oal_netbuf_head_stru *netbuf_header, oal_netbuf_stru *netbuf, mac_ieee80211_frame_stru *frame_hdr) hmac_rx_prepare_msdu_list_to_wlan() argument
534 oal_netbuf_stru *netbuf = msdu->netbuf; hmac_rx_transmit_msdu_to_lan() local
598 hmac_rx_msdu_frame_classify(const hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf, mac_ieee80211_frame_stru *frame_hdr, hmac_msdu_stru *msdu, hmac_user_stru *hmac_user) hmac_rx_msdu_frame_classify() argument
669 hmac_rx_lan_frame_classify(const hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf, mac_ieee80211_frame_stru *frame_hdr) hmac_rx_lan_frame_classify() argument
758 oal_netbuf_stru *netbuf = HI_NULL; hmac_rx_netbuf_add_to_list_tail() local
798 oal_netbuf_stru *netbuf = temp_netbuf; hmac_rx_process_data_filter() local
859 oal_netbuf_stru *netbuf = HI_NULL; hmac_rx_lan_frame() local
900 oal_netbuf_stru *netbuf = HI_NULL; /* 用于保存当前处理的MPDU的第一个netbuf指针 */ hmac_rx_process_data_insert_list() local
1001 hmac_rx_process_no_multicast_proc(const hmac_vap_stru *hmac_vap, const hi_u8 *mac_addr, oal_netbuf_stru *netbuf, oal_netbuf_head_stru *w2w_netbuf_hdr) hmac_rx_process_no_multicast_proc() argument
1083 oal_netbuf_stru *netbuf = temp_netbuf; hmac_rx_process_data_ap_tcp_ack_opt() local
1203 oal_netbuf_stru *netbuf = HI_NULL; /* 用于保存当前处理的MPDU的第一个netbuf指针 */ hmac_rx_process_data_mesh_tcp_ack_opt() local
[all...]
H A Dhmac_crypto_tkip.c130 static hi_u32 hmac_crypto_tkip_michael_mic(const hi_u8 *puc_key, const oal_netbuf_stru *netbuf, in hmac_crypto_tkip_michael_mic() argument
153 const hi_u8 *puc_data = oal_netbuf_data(netbuf) + offset; in hmac_crypto_tkip_michael_mic()
154 hi_u32 space = oal_netbuf_len(netbuf) - offset; in hmac_crypto_tkip_michael_mic()
173 netbuf = oal_netbuf_list_next(netbuf); in hmac_crypto_tkip_michael_mic()
174 if (netbuf == NULL) { in hmac_crypto_tkip_michael_mic()
182 const hi_u8 *puc_data_next = oal_netbuf_data(netbuf); in hmac_crypto_tkip_michael_mic()
183 if ((sizeof(hi_u32) - space) > oal_netbuf_len(netbuf)) { in hmac_crypto_tkip_michael_mic()
190 space = oal_netbuf_len(netbuf) - 3; /* 3 用于计算 */ in hmac_crypto_tkip_michael_mic()
194 space = oal_netbuf_len(netbuf) in hmac_crypto_tkip_michael_mic()
233 hmac_crypto_tkip_enmic_key(wlan_priv_key_param_stru *key, oal_netbuf_stru *netbuf, const hmac_tx_ctl_stru *cb, hi_u32 pktlen) hmac_crypto_tkip_enmic_key() argument
272 hmac_crypto_tkip_enmic(wlan_priv_key_param_stru *key, oal_netbuf_stru *netbuf) hmac_crypto_tkip_enmic() argument
336 hmac_crypto_tkip_demic(wlan_priv_key_param_stru *key, oal_netbuf_stru *netbuf) hmac_crypto_tkip_demic() argument
[all...]
H A Dhmac_tx_data.c58 hi_u32 hmac_tx_data(hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf);
62 功能描述 : 释放一个netbuf链,此链中的skb或者都来自lan,或者都来自wlan
75 hi_u16 hmac_free_netbuf_list(oal_netbuf_stru *netbuf) in hmac_free_netbuf_list() argument
81 if (netbuf != HI_NULL) { in hmac_free_netbuf_list()
82 while (netbuf != HI_NULL) { in hmac_free_netbuf_list()
83 buf_tmp = oal_netbuf_list_next(netbuf); in hmac_free_netbuf_list()
85 set_oal_netbuf_next(netbuf, HI_NULL); in hmac_free_netbuf_list()
86 tx_cb = (hmac_tx_ctl_stru *)oal_netbuf_cb(netbuf); in hmac_free_netbuf_list()
93 oal_netbuf_free(netbuf); in hmac_free_netbuf_list()
95 netbuf in hmac_free_netbuf_list()
269 hmac_tx_classify_lan_to_wlan(oal_netbuf_stru *netbuf, hi_u8 *puc_tid) hmac_tx_classify_lan_to_wlan() argument
433 hmac_tx_classify(const hmac_vap_stru *hmac_vap, const mac_user_stru *user, oal_netbuf_stru *netbuf) hmac_tx_classify() argument
490 hmac_tx_filter_security(const hmac_vap_stru *hmac_vap, const oal_netbuf_stru *netbuf, const hmac_user_stru *hmac_user) hmac_tx_filter_security() argument
613 hmac_tid_need_ba_session(hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user, hi_u8 tidno, const oal_netbuf_stru *netbuf) hmac_tid_need_ba_session() argument
684 hmac_tx_ucast_process(hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf, hmac_user_stru *hmac_user, const hmac_tx_ctl_stru *tx_ctl) hmac_tx_ucast_process() argument
729 hmac_tx_is_need_frag(const hmac_vap_stru *hmac_vap, const hmac_user_stru *hmac_user, const oal_netbuf_stru *netbuf, const hmac_tx_ctl_stru *tx_ctl) hmac_tx_is_need_frag() argument
1059 hmac_tx_encap(const hmac_vap_stru *hmac_vap, const hmac_user_stru *hmac_user, oal_netbuf_stru *netbuf) hmac_tx_encap() argument
1187 hmac_tx_lan_mpdu_process_sta(hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf, hmac_tx_ctl_stru *tx_ctl) hmac_tx_lan_mpdu_process_sta() argument
1259 hmac_tx_lan_mpdu_process_ap(hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf, hmac_tx_ctl_stru *tx_ctl) hmac_tx_lan_mpdu_process_ap() argument
1328 hmac_tx_lan_to_wlan_no_tcp_opt_vap(const mac_vap_stru *mac_vap, oal_netbuf_stru *netbuf, hmac_vap_stru *hmac_vap, hmac_tx_ctl_stru **tx_ctl_ptr, hmac_tx_return_type_enum_uint8 *hmac_tx_ret) hmac_tx_lan_to_wlan_no_tcp_opt_vap() argument
1410 hmac_tx_lan_to_wlan_no_tcp_opt_to_dmac(const mac_vap_stru *mac_vap, oal_netbuf_stru *netbuf, const hmac_tx_ctl_stru *tx_ctl, hmac_tx_return_type_enum_uint8 hmac_tx_ret) hmac_tx_lan_to_wlan_no_tcp_opt_to_dmac() argument
1469 oal_netbuf_stru *netbuf = HI_NULL; /* 从netbuf链上取下来的指向netbuf的指针 */ hmac_tx_wlan_to_wlan_ap() local
1534 hmac_tx_lan_to_wlan(mac_vap_stru *mac_vap, oal_netbuf_stru *netbuf) hmac_tx_lan_to_wlan() argument
[all...]
H A Dhmac_wapi.c327 oal_netbuf_stru *hmac_wapi_netbuff_tx_handle(hmac_wapi_stru *wapi, oal_netbuf_stru *netbuf) in hmac_wapi_netbuff_tx_handle() argument
335 if (MAC_DATA_WAPI == mac_get_data_type_from_80211(netbuf, MAC_80211_QOS_HTC_4ADDR_FRAME_LEN)) { in hmac_wapi_netbuff_tx_handle()
337 return netbuf; in hmac_wapi_netbuff_tx_handle()
340 ret = wapi->wapi_encrypt(wapi, netbuf); in hmac_wapi_netbuff_tx_handle()
342 hmac_free_netbuf_list(netbuf); in hmac_wapi_netbuff_tx_handle()
346 netbuf_tmp = netbuf; in hmac_wapi_netbuff_tx_handle()
349 netbuf_prev = oal_netbuf_next(netbuf); in hmac_wapi_netbuff_tx_handle()
354 netbuf = oal_netbuf_next(netbuf_prev); in hmac_wapi_netbuff_tx_handle()
358 while (netbuf != HI_NULL) { in hmac_wapi_netbuff_tx_handle()
359 ret = wapi->wapi_encrypt(wapi, netbuf); in hmac_wapi_netbuff_tx_handle()
386 hmac_wapi_netbuff_rx_handle(hmac_wapi_stru *wapi, oal_netbuf_stru *netbuf) hmac_wapi_netbuff_rx_handle() argument
483 hmac_wapi_decrypt(hmac_wapi_stru *wapi, oal_netbuf_stru *netbuf) hmac_wapi_decrypt() argument
691 hmac_wapi_encrypt_action(hmac_wapi_stru *wapi, oal_netbuf_stru *netbuf, hmac_wapi_encrypt_stru *hmac_wapi, hi_u8 *puc_datain, oal_netbuf_stru *netbuf_des) hmac_wapi_encrypt_action() argument
754 hmac_wapi_encrypt(hmac_wapi_stru *wapi, oal_netbuf_stru *netbuf) hmac_wapi_encrypt() argument
[all...]
H A Dhmac_tx_data.h91 hi_u32 hmac_tx_lan_to_wlan(mac_vap_stru *mac_vap, oal_netbuf_stru *netbuf);
96 hi_u16 hmac_free_netbuf_list(oal_netbuf_stru *netbuf);
97 hi_u32 hmac_tx_encap(const hmac_vap_stru *hmac_vap, const hmac_user_stru *hmac_user, oal_netbuf_stru *netbuf);
98 hmac_tx_return_type_enum_uint8 hmac_tx_ucast_process(hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf,
107 const oal_netbuf_stru *netbuf);
H A Dhmac_mgmt_classifier.c198 hi_u32 hmac_rx_process_others_bss_management(const oal_netbuf_stru *netbuf) in hmac_rx_process_others_bss_management() argument
204 ret = hwal_send_others_bss_data(netbuf); in hmac_rx_process_others_bss_management()
265 oal_netbuf_stru *netbuf = (oal_netbuf_stru *)crx_event->netbuf; in hmac_rx_process_mgmt_event() local
267 if (netbuf == HI_NULL) { in hmac_rx_process_mgmt_event()
268 oam_error_log0(0, OAM_SF_ANY, "hmac_rx_process_mgmt_event netbuf NULL."); in hmac_rx_process_mgmt_event()
280 hmac_rx_ctl_stru *rx_ctrl = (hmac_rx_ctl_stru *)oal_netbuf_cb(netbuf); in hmac_rx_process_mgmt_event()
288 ret = hmac_any_proc_rx_mgmt(hmac_vap, rx_ctrl->channel_number, netbuf, rx_ctrl->us_frame_len); in hmac_rx_process_mgmt_event()
289 oal_netbuf_free(netbuf); in hmac_rx_process_mgmt_event()
298 oal_netbuf_free(netbuf); in hmac_rx_process_mgmt_event()
310 oal_netbuf_stru *netbuf = (oal_netbuf_stru *)crx_event->netbuf; hmac_rx_process_mgmt_promis() local
[all...]
H A Dhmac_blockack.c286 oal_netbuf_stru *netbuf = HI_NULL; in hmac_ba_send_frames_with_gap() local
297 netbuf = oal_netbuf_peek(&rx_buf->netbuf_head); in hmac_ba_send_frames_with_gap()
298 if (oal_unlikely(netbuf == HI_NULL) && (mac_vap != HI_NULL)) { in hmac_ba_send_frames_with_gap()
306 netbuf = oal_netbuf_delist(&rx_buf->netbuf_head); in hmac_ba_send_frames_with_gap()
307 if (netbuf != HI_NULL) { in hmac_ba_send_frames_with_gap()
308 oal_netbuf_add_to_list_tail(netbuf, netbuf_header); in hmac_ba_send_frames_with_gap()
338 oal_netbuf_stru *netbuf = HI_NULL; in hmac_ba_send_frames_in_order() local
346 netbuf = oal_netbuf_peek(&rx_buf->netbuf_head); in hmac_ba_send_frames_in_order()
347 if ((netbuf == HI_NULL) && (mac_vap != HI_NULL)) { in hmac_ba_send_frames_in_order()
356 netbuf in hmac_ba_send_frames_in_order()
401 oal_netbuf_stru *netbuf = HI_NULL; hmac_ba_buffer_rx_frame() local
643 oal_netbuf_stru *netbuf = HI_NULL; hmac_ba_rx_prepare_bufflist() local
[all...]
H A Dhmac_main.c282 hi_void hmac_rxdata_netbuf_enqueue(oal_netbuf_stru *netbuf)
286 oal_netbuf_free(netbuf);
290 oal_netbuf_list_tail(&g_st_rxdata_thread.rxdata_netbuf_head, netbuf);
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))) +
324 oal_netbuf_free((oal_netbuf_stru *)pst_ctx_event->netbuf);
333 /* 释放掉02同步消息所用的netbuf信息 */
334 oal_netbuf_free((oal_netbuf_stru *)pst_ctx_event->netbuf);
H A Dhmac_frag.h43 oal_netbuf_stru *hmac_defrag_process(hmac_user_stru *hmac_user, oal_netbuf_stru *netbuf, hi_u32 hrdsize);
44 hi_u32 hmac_frag_process_proc(const hmac_vap_stru *hmac_vap, const hmac_user_stru *hmac_user, oal_netbuf_stru *netbuf,
H A Dhmac_mgmt_bss_comm.h83 hi_void hmac_rx_sa_query_req(hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf, hi_u8 is_protected);
84 hi_void hmac_rx_sa_query_rsp(hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf, hi_u8 is_protected);
87 hi_u32 hmac_mgmt_rx_opmode_notify_frame(hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf);
89 hi_void hmac_send_mgmt_to_host(const hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf, hi_u16 us_len, hi_s32 l_freq);
90 hi_void hmac_rx_mgmt_send_to_host(const hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf);
H A Dhmac_crypto_tkip.h67 hi_u32 hmac_crypto_tkip_enmic(wlan_priv_key_param_stru *key, oal_netbuf_stru *netbuf);
68 hi_u32 hmac_crypto_tkip_demic(wlan_priv_key_param_stru *key, oal_netbuf_stru *netbuf);
H A Dhmac_mgmt_ap.c1682 static hi_void hmac_ap_up_rx_action_category_public(const hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf, in hmac_ap_up_rx_action_category_public() argument
1691 hmac_rx_mgmt_send_to_host(hmac_vap, netbuf); in hmac_ap_up_rx_action_category_public()
1695 hi_unref_param(netbuf); in hmac_ap_up_rx_action_category_public()
1704 static hi_void hmac_ap_up_rx_action_category_vht(hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf, in hmac_ap_up_rx_action_category_vht() argument
1710 hmac_mgmt_rx_opmode_notify_frame(hmac_vap, netbuf); in hmac_ap_up_rx_action_category_vht()
1714 hi_unref_param(netbuf); in hmac_ap_up_rx_action_category_vht()
1725 static hi_void hmac_ap_up_rx_action_category_sa_query(hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf, in hmac_ap_up_rx_action_category_sa_query() argument
1730 hmac_rx_sa_query_rsp(hmac_vap, netbuf, is_protected); in hmac_ap_up_rx_action_category_sa_query()
1733 hmac_rx_sa_query_req(hmac_vap, netbuf, is_protected); in hmac_ap_up_rx_action_category_sa_query()
1743 mac_ieee80211_frame_stru *frame_hdr, oal_netbuf_stru *netbuf, hi_u in hmac_ap_up_rx_action_self_protected()
1742 hmac_ap_up_rx_action_self_protected(const hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user, mac_ieee80211_frame_stru *frame_hdr, oal_netbuf_stru *netbuf, hi_u8 *puc_data) hmac_ap_up_rx_action_self_protected() argument
1806 hmac_ap_up_rx_action(hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf, hi_u8 is_protected) hmac_ap_up_rx_action() argument
1864 hmac_ap_up_rx_probe_req(const hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf) hmac_ap_up_rx_probe_req() argument
[all...]
H A Dhmac_rx_data.h55 oal_netbuf_stru *netbuf; /* MSDU对应的netbuf指针(可以使clone的netbuf) */ member
60 oal_netbuf_stru *curr_netbuf; /* 当前处理的netbuf指针 */
61 hi_u8 *puc_curr_netbuf_data; /* 当前处理的netbuf的data指针 */
63 hi_u8 msdu_nums_in_netbuf; /* 当前netbuf包含的总的msdu数目 */
64 hi_u8 procd_msdu_in_netbuf; /* 当前netbuf中已处理的msdu数目 */
84 hi_void hmac_rx_free_netbuf(oal_netbuf_stru *netbuf, hi_u16 us_nums);
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/hcc/
H A Dhcc_hmac.c98 const oal_netbuf_stru *netbuf, hi_u8 config_frame) in hcc_hmac_tx_adapt_extend_hdr_init()
105 ext_hdr = (frw_hcc_extend_hdr_stru *)oal_netbuf_data(netbuf); in hcc_hmac_tx_adapt_extend_hdr_init()
113 hi_u32 hcc_hmac_tx_hcc_hdr_init(oal_netbuf_stru *netbuf, const hcc_transfer_param *param) in hcc_hmac_tx_hcc_hdr_init() argument
116 oal_netbuf_stru *netbuf_temp = netbuf; in hcc_hmac_tx_hcc_hdr_init()
124 payload_len = oal_netbuf_len(netbuf) - param->extend_len; in hcc_hmac_tx_hcc_hdr_init()
141 hcc_hdr->pad_payload = 0; /* Device alloc netbuf's payload all 4B aligned! */ in hcc_hmac_tx_hcc_hdr_init()
153 hi_void hcc_sort_key_frame(hcc_trans_queue_stru *hcc_queue, oal_netbuf_stru *netbuf) in hcc_sort_key_frame() argument
170 oal_netbuf_append(head, netbuf, netbuf_pos); in hcc_sort_key_frame()
178 oal_netbuf_list_tail(head, netbuf); in hcc_sort_key_frame()
183 hi_u32 hcc_host_tx(hcc_handler_stru *hcc_handler, oal_netbuf_stru *netbuf, cons argument
97 hcc_hmac_tx_adapt_extend_hdr_init(const frw_event_mem_stru *hcc_event_mem, const oal_netbuf_stru *netbuf, hi_u8 config_frame) hcc_hmac_tx_adapt_extend_hdr_init() argument
260 hcc_tx_netbuf_normal(const frw_event_mem_stru *event_mem, oal_netbuf_stru *netbuf, hi_u32 hdr_len) hcc_tx_netbuf_normal() argument
321 oal_netbuf_stru *netbuf = HI_NULL; hmac_hcc_tx_event_buf_to_netbuf() local
393 hcc_adjust_netbuf_data(oal_netbuf_stru *netbuf) hcc_adjust_netbuf_data() argument
438 hcc_host_tx_data_adapt(const frw_event_mem_stru *event_mem, oal_netbuf_stru *netbuf) hcc_host_tx_data_adapt() argument
540 hcc_hmac_tx_data_event(frw_event_mem_stru *event_mem, oal_netbuf_stru *netbuf, hi_bool mgmt) hcc_hmac_tx_data_event() argument
[all...]
H A Dhcc_host.c285 static hi_s32 hcc_host_rx(const hcc_handler_stru *hcc_handler, oal_netbuf_stru *netbuf) argument
291 hcc_hdr = (hcc_header_stru *)oal_netbuf_data(netbuf);
307 if (HCC_HDR_LEN + hcc_hdr->pad_hdr + hcc_hdr->pad_payload > oal_netbuf_len(netbuf)) {
308 oam_error_log1(0, 0, "hcc_host_rx:: hcc_hdr too long, netbuf_len[%d]", (hi_s32)oal_netbuf_len(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,
321 oal_netbuf_pull(netbuf, HCC_HDR_LEN + hcc_hdr->pad_hdr + hcc_hdr->pad_payload);
323 /* 传出去的netbuf len 包含extend_len长度! */
324 oal_netbuf_trim(netbuf, oal_netbuf_le
339 oal_netbuf_stru *netbuf = HI_NULL; global() local
404 hcc_tx_assem_descr_put(hcc_handler_stru *hcc_handler, oal_netbuf_stru *netbuf) global() argument
409 hcc_send_single_descr(hcc_handler_stru *hcc_handler, oal_netbuf_stru *netbuf) global() argument
424 oal_netbuf_stru *netbuf = HI_NULL; global() local
520 hcc_netbuf_len_align(oal_netbuf_stru *netbuf, hi_u32 align_size) global() argument
561 oal_netbuf_stru *netbuf = HI_NULL; global() local
682 oal_netbuf_stru *netbuf = HI_NULL; global() local
860 oal_netbuf_stru *netbuf = HI_NULL; global() local
1042 hcc_transfer_rx_handler(hcc_handler_stru *hcc_handler, oal_netbuf_stru *netbuf) global() argument
1091 oal_netbuf_stru *netbuf = HI_NULL; global() local
1243 oal_netbuf_stru *netbuf = HI_NULL; global() local
1483 oal_netbuf_stru *netbuf = HI_NULL; global() local
1583 oal_netbuf_stru *netbuf = HI_NULL; global() local
1937 oal_netbuf_stru *netbuf = oal_netbuf_delist(head); global() local
[all...]
H A Dhmac_hcc_adapt.c70 if (OAL_WARN_ON(hcc_event_payload->netbuf == HI_NULL)) { in hmac_hcc_rx_event_comm_adapt()
71 oam_error_log0(0, OAM_SF_ANY, "hmac_hcc_rx_event_comm_adapt: did't found netbuf!"); in hmac_hcc_rx_event_comm_adapt()
74 hcc_extend_hdr = oal_netbuf_data((oal_netbuf_stru *)hcc_event_payload->netbuf); in hmac_hcc_rx_event_comm_adapt()
81 (hi_s32)oal_netbuf_len((oal_netbuf_stru *)hcc_event_payload->netbuf), in hmac_hcc_rx_event_comm_adapt()
86 pst_rx_ctrl = (hmac_rx_ctl_stru *)oal_netbuf_cb((oal_netbuf_stru *)hcc_event_payload->netbuf); in hmac_hcc_rx_event_comm_adapt()
102 oal_netbuf_pull(hcc_event_payload->netbuf, in hmac_hcc_rx_event_comm_adapt()
105 oal_netbuf_pull(hcc_event_payload->netbuf, (HI_MAX_DEV_CB_LEN + WLAN_MAX_MAC_HDR_LEN)); in hmac_hcc_rx_event_comm_adapt()
124 hcc_netbuf = hcc_event_payload->netbuf; in hmac_hcc_expand_rx_adpat_event()
133 /* 释放hcc事件中申请的netbuf内存 */ in hmac_hcc_expand_rx_adpat_event()
149 /* Hmac 模块将netbuf中的事件内容还原到事件内存中 */
[all...]
H A Dhcc_slave.c262 hcc_hdr->pad_payload = 0; /* Device alloc netbuf's payload all 4B aligned! */ in hcc_slave_build_header()
293 if (g_tx_aggr_info.hcc_tx_aggr[i].netbuf == dev_netbuf) { in hcc_device2host_netbuf_multi_post_check()
295 hi_diag_log_msg_i3(0, "[ERROR][d2h]netbuf[%d], num: %d[%p]multi post!\r\n", i, num, in hcc_device2host_netbuf_multi_post_check()
296 g_tx_aggr_info.hcc_tx_aggr[i].netbuf); in hcc_device2host_netbuf_multi_post_check()
338 功能描述 : 从netbuf创建DMA表
377 g_rx_aggr_info.hcc_rx_aggr[i].netbuf = HI_NULL; in hcc_rx_assem_info_reset()
428 ret = hi_sdio_procmem_alloc_fail(g_current_queue_type, (hi_void**) &(g_rx_aggr_info.hcc_rx_aggr[0].netbuf), in hcc_process_single_package()
434 g_rx_aggr_info.hcc_rx_aggr[0].netbuf = dev_netbuf; in hcc_process_single_package()
440 g_rx_aggr_info.hcc_rx_aggr[1].netbuf = g_reserve_netbuff; in hcc_process_single_package()
470 (hi_void**) &(g_rx_aggr_info.hcc_rx_aggr[i].netbuf), in hcc_process_multi_package()
[all...]
H A Dhcc_hmac_if.h48 typedef hi_u32 (*hcc_hmac_rx_data_event)(frw_event_mem_stru *event_mem, oal_netbuf_stru *netbuf, hi_u16 netbuf_num);
74 hi_u32 hcc_hmac_tx_data_event(frw_event_mem_stru *event_mem, oal_netbuf_stru *netbuf, hi_bool mgmt);
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/lwip/
H A Dnetbuf.h3 * netbuf API (for netconn API)
54 /** This netbuf has dest-addr/port set */
56 /** This netbuf includes a checksum */
60 * This netbuf includes the destination mac addr only
67 struct netbuf { struct
93 struct netbuf *netbuf_new (void);
94 void netbuf_delete (struct netbuf *buf);
95 void *netbuf_alloc (struct netbuf *buf, u16_t size, u8_t netconn_type);
96 void netbuf_free (struct netbuf *buf);
97 err_t netbuf_ref (struct netbuf *bu
[all...]
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/
H A Doal_net.c95 hi_void oal_dev_netlink_rev(oal_netbuf_stru *netbuf) in oal_dev_netlink_rev() argument
102 if (netbuf == NULL) { in oal_dev_netlink_rev()
114 skb_info = oal_netbuf_get(netbuf); in oal_dev_netlink_rev()
170 oal_netbuf_stru *netbuf = HI_NULL; in oal_dev_netlink_send() local
176 netbuf = alloc_skb(len, GFP_KERNEL); in oal_dev_netlink_send()
177 if (netbuf == HI_NULL) { in oal_dev_netlink_send()
181 nlh = oal_nlmsg_put(netbuf, 0, 0, 0, data_len, 0); in oal_dev_netlink_send()
187 kfree_skb(netbuf); in oal_dev_netlink_send()
191 oal_netlink_cb(netbuf).portid = 0; /* from kernel */ in oal_dev_netlink_send()
195 kfree_skb(netbuf); in oal_dev_netlink_send()
560 oal_eth_header(oal_netbuf_stru *netbuf, oal_net_device_stru *netdev, oal_eth_header_info_stru *eth_header_info) oal_eth_header() argument
603 oal_netbuf_stru *netbuf = oal_netbuf_alloc(oal_arp_hdr_len(netdev) + oal_ll_allocated_space(netdev), 0); oal_arp_create() local
[all...]
H A Doal_sdio_host.c645 oal_netbuf_stru *netbuf = HI_NULL; in oal_sdio_build_rx_netbuf_list() local
649 oam_error_log0(0, OAM_SF_ANY, "oal_sdio_build_rx_netbuf_list: oal netbuf list empty"); in oal_sdio_build_rx_netbuf_list()
661 netbuf = oal_sdio_alloc_rx_netbuf(buff_len_t); in oal_sdio_build_rx_netbuf_list()
662 if (netbuf == HI_NULL) { in oal_sdio_build_rx_netbuf_list()
667 oal_netbuf_put(netbuf, buff_len_t); in oal_sdio_build_rx_netbuf_list()
675 __skb_queue_tail(head, netbuf); in oal_sdio_build_rx_netbuf_list()
677 oal_netbuf_list_tail(head, netbuf); in oal_sdio_build_rx_netbuf_list()
688 netbuf = oal_sdio_alloc_rx_netbuf(hi_sdio->sdio_extend->xfer_count); in oal_sdio_build_rx_netbuf_list()
689 if (netbuf == HI_NULL) { in oal_sdio_build_rx_netbuf_list()
694 oal_netbuf_put(netbuf, hi_sdi in oal_sdio_build_rx_netbuf_list()
1365 oal_sdio_transfer_tx(struct BusDev *bus, oal_netbuf_stru *netbuf) oal_sdio_transfer_tx() argument
1740 oal_netbuf_stru *netbuf = HI_NULL; oal_sdio_transfer_netbuf_list() local
2301 oal_netbuf_stru *netbuf = HI_NULL; oal_netbuf_list_hex_dump() local
2319 oal_netbuf_hex_dump(const oal_netbuf_stru *netbuf) oal_netbuf_hex_dump() argument
[all...]
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/wal/
H A Dwal_linux_flowctl.c54 hi_u16 wal_netdev_select_queue(oal_net_device_stru *netdev, oal_netbuf_stru *netbuf, hi_void *accel_priv, in wal_netdev_select_queue() argument
66 ether_header = (oal_ether_header_stru *)oal_netbuf_data(netbuf); in wal_netdev_select_queue()
82 oal_netbuf_get_txtid(netbuf, &tos); in wal_netdev_select_queue()
183 hi_u16 wal_netdev_select_queue(oal_net_device_stru *netdev, oal_netbuf_stru *netbuf, hi_void *accel_priv, in wal_netdev_select_queue() argument
186 return oal_netbuf_select_queue(netbuf); in wal_netdev_select_queue()
H A Dwal_linux_flowctl.h70 hi_u16 wal_netdev_select_queue(oal_net_device_stru *netdev, oal_netbuf_stru *netbuf);
76 hi_u16 wal_netdev_select_queue(oal_net_device_stru *netdev, oal_netbuf_stru *netbuf, hi_void *accel_priv,
/device/soc/hisilicon/common/platform/hieth-sf/adapter/
H A Dnet_adapter.c37 static NetDevTxResult EthXmit(struct NetDevice *netDev, NetBuf *netbuf) in EthXmit() argument
39 EthDrvSend((struct EthDevice *)netDev->mlPriv, netbuf); in EthXmit()

Completed in 18 milliseconds

123