Home
last modified time | relevance | path

Searched refs:oal_netbuf_len (Results 1 - 11 of 11) sorted by relevance

/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/hmac/
H A Dhmac_crypto_tkip.c154 hi_u32 space = oal_netbuf_len(netbuf) - offset; 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) - 2; /* 2 用于计算 */ in hmac_crypto_tkip_michael_mic()
198 space = oal_netbuf_len(netbuf) - 1; in hmac_crypto_tkip_michael_mic()
208 space = oal_netbuf_len(netbuf); in hmac_crypto_tkip_michael_mic()
279 hi_u32 pktlen = oal_netbuf_len(netbuf); in hmac_crypto_tkip_enmic()
352 pktlen = oal_netbuf_len(netbuf); in hmac_crypto_tkip_demic()
H A Dhmac_frag.c51 l_remainder = (hi_s32)(oal_netbuf_len(netbuf_original) - offset); in hmac_frag_process()
125 oal_netbuf_trim(netbuf_original, oal_netbuf_len(netbuf_original) - (max_tx_unit - cip_hdrsize)); in hmac_frag_process()
127 tx_ctl->us_mpdu_len = (hi_u16)(oal_netbuf_len(netbuf_original)); in hmac_frag_process()
162 last_frag = oal_netbuf_len(netbuf) % (threshold - (hi_u32)ic_header - tx_ctl->frame_header_length); in hmac_frag_process_proc()
238 oal_netbuf_init(new_buf, oal_netbuf_len(netbuf)); in hmac_defrag_process_frame()
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()
H A Dhmac_tx_data.c757 last_frag = (oal_netbuf_len(netbuf) + 8) % (threshold - tx_ctl->frame_header_length - /* 加8 */ in hmac_tx_is_need_frag()
765 (tx_ctl->mac_head_type == 1) ? oal_netbuf_len(netbuf) : (oal_netbuf_len(netbuf) + tx_ctl->frame_header_length); in hmac_tx_is_need_frag()
1074 if (oal_netbuf_len(netbuf) < sizeof(mac_ether_header_stru)) { in hmac_tx_encap()
1075 oam_error_log1(0, 0, "{hmac_tx_encap::netbuff len is invalid: %d!}", oal_netbuf_len(netbuf)); in hmac_tx_encap()
1123 tx_ctl->us_mpdu_len = (hi_u16)oal_netbuf_len(netbuf); in hmac_tx_encap()
1580 oal_netbuf_len(netbuf)); in hmac_tx_lan_to_wlan()
1584 oam_warning_log1(0, OAM_SF_TX, "{hmac_tx_lan_to_wlan:Mesh rpl msg,len=%u}", oal_netbuf_len(netbuf)); in hmac_tx_lan_to_wlan()
H A Dhmac_wapi.c494 hi_u16 netbuff_len = (hi_u16)oal_netbuf_len(netbuf); in hmac_wapi_decrypt()
541 oal_netbuf_len(netbuff_des), mac_hdr_len); in hmac_wapi_decrypt()
628 rx_ctl->us_frame_len = (hi_u16)oal_netbuf_len(netbuff_des); in hmac_wapi_decrypt()
H A Dhmac_rx_data.c208 if (oal_netbuf_len(netbuf) < ETHER_HDR_LEN) { in hmac_rx_transmit_to_wlan()
740 oal_netbuf_len(src_netbuf)) != EOK) { in hmac_rx_copy_netbuff()
746 oal_netbuf_put(*dest_netbuf, oal_netbuf_len(src_netbuf)); in hmac_rx_copy_netbuff()
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/hcc/
H A Dhmac_hcc_adapt.c81 (hi_s32)oal_netbuf_len((oal_netbuf_stru *)hcc_event_payload->netbuf), in hmac_hcc_rx_event_comm_adapt()
175 if (revert_size > oal_netbuf_len(hcc_netbuf)) { in hmac_hcc_rx_netbuf_convert_to_event()
176 revert_size = oal_netbuf_len(hcc_netbuf); in hmac_hcc_rx_netbuf_convert_to_event()
234 dmax_ctx_event->us_frame_len = oal_netbuf_len((oal_netbuf_stru *)hcc_event_payload->netbuf) - in hmac_rx_convert_netbuf_to_netbuf_default()
H A Dhcc_host.c307 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,
324 oal_netbuf_trim(netbuf, oal_netbuf_len(netbuf) - hcc_hdr->pay_len - (hi_u32)extend_len);
362 hcc_netbuf.len = (hi_s32)oal_netbuf_len(netbuf);
369 hcc_netbuf.len = (hi_s32)oal_netbuf_len(netbuf);
375 oal_print_hex_dump(oal_netbuf_data(netbuf), (hi_s32)oal_netbuf_len(netbuf), 32,
439 if (OAL_WARN_ON(ul_size + sizeof(struct hcc_descr_header) > oal_netbuf_len(netbuf))) {
441 (hi_u32)(ul_size + sizeof(struct hcc_descr_header)), (hi_u32)oal_netbuf_len(netbuf));
524 hi_u32 len = oal_netbuf_len(netbu
[all...]
H A Dhcc_hmac.c124 payload_len = oal_netbuf_len(netbuf) - param->extend_len; in hcc_hmac_tx_hcc_hdr_init()
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()
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/
H A Doal_sdio_host.c1374 tailroom = HISDIO_ALIGN_4_OR_BLK(oal_netbuf_len(netbuf)) - oal_netbuf_len(netbuf); in oal_sdio_transfer_tx()
1387 return oal_sdio_single_transfer(bus, SDIO_WRITE, oal_netbuf_data(netbuf), oal_netbuf_len(netbuf)); in oal_sdio_transfer_tx()
1791 if (OAL_WARN_ON(!oal_is_aligned(oal_netbuf_len(netbuf), HISDIO_H2D_SCATT_BUFFLEN_ALIGN))) { in oal_sdio_transfer_netbuf_list()
1795 if (!oal_is_aligned(oal_netbuf_len(netbuf), HISDIO_H2D_SCATT_BUFFLEN_ALIGN)) { 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()
1800 sum_len += oal_netbuf_len(netbuf); in oal_sdio_transfer_netbuf_list()
2309 printk(KERN_DEBUG "======netbuf pkts %d, len:%d=========\n", index, oal_netbuf_len(netbuf)); in oal_netbuf_list_hex_dump()
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(netbu in oal_netbuf_hex_dump()
[all...]
H A Doal_netbuf.h159 #define oal_netbuf_len(nb) NetBufGetDataLen(nb) macro
217 #define oal_netbuf_len(nb) ((nb)->len) macro
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/wal/
H A Dwal_ioctl.c1701 wrqu->data.length = (hi_u16)(oal_netbuf_len(pst_response_netbuf) + 1); in wal_ioctl_get_assoc_list()
1703 pc_extra[oal_netbuf_len(pst_response_netbuf)] = '\0'; in wal_ioctl_get_assoc_list()

Completed in 18 milliseconds