Home
last modified time | relevance | path

Searched refs:head_len (Results 1 – 24 of 24) sorted by relevance

/linux/arch/riscv/lib/
H A Dcrc32.c182 size_t offset, head_len, tail_len; in crc32_le_generic() local
193 head_len = min(STEP - offset, len); in crc32_le_generic()
194 crc = crc32_le_unaligned(crc, p, head_len, poly, poly_qt); in crc32_le_generic()
195 p += head_len; in crc32_le_generic()
196 len -= head_len; in crc32_le_generic()
258 size_t offset, head_len, tail_len; in crc32_be() local
269 head_len = min(STEP - offset, len); in crc32_be()
270 crc = crc32_be_unaligned(crc, p, head_len); in crc32_be()
271 p += head_len; in crc32_be()
272 len -= head_len; in crc32_be()
/linux/drivers/net/wireless/ath/ath10k/
H A Dbmi.c459 u32 head_len = rounddown(length, 4); in ath10k_bmi_fast_download() local
460 u32 trailer_len = length - head_len; in ath10k_bmi_fast_download()
473 memcpy(trailer, buffer + head_len, trailer_len); in ath10k_bmi_fast_download()
476 ret = ath10k_bmi_lz_data_large(ar, buffer, head_len); in ath10k_bmi_fast_download()
478 ret = ath10k_bmi_lz_data(ar, buffer, head_len); in ath10k_bmi_fast_download()
H A Dhtt_rx.c2685 u16 head_len, in ath10k_htt_rx_frag_tkip_decap_nomic() argument
2691 ivp = orig_hdr + hdr_len + head_len; in ath10k_htt_rx_frag_tkip_decap_nomic()
2697 memmove(orig_hdr + IEEE80211_TKIP_IV_LEN, orig_hdr, head_len + hdr_len); in ath10k_htt_rx_frag_tkip_decap_nomic()
2704 u16 head_len, in ath10k_htt_rx_frag_tkip_decap_withmic() argument
2710 ivp = orig_hdr + hdr_len + head_len; in ath10k_htt_rx_frag_tkip_decap_withmic()
2716 memmove(orig_hdr + IEEE80211_TKIP_IV_LEN, orig_hdr, head_len + hdr_len); in ath10k_htt_rx_frag_tkip_decap_withmic()
2723 u16 head_len, in ath10k_htt_rx_frag_ccmp_decap() argument
2729 ivp = orig_hdr + hdr_len + head_len; in ath10k_htt_rx_frag_ccmp_decap()
2736 memmove(orig_hdr + IEEE80211_CCMP_HDR_LEN, orig_hdr, head_len + hdr_len); in ath10k_htt_rx_frag_ccmp_decap()
2742 u16 head_len, in ath10k_htt_rx_frag_wep_decap() argument
[all …]
/linux/drivers/net/wireless/mediatek/mt76/
H A Dtestmode.c110 u32 max_len, head_len; in mt76_testmode_alloc_skb() local
120 head_len = nfrags ? MT_TXP_MAX_LEN : len; in mt76_testmode_alloc_skb()
125 head = alloc_skb(head_len, GFP_KERNEL); in mt76_testmode_alloc_skb()
135 get_random_bytes(__skb_put(head, head_len - sizeof(*hdr)), in mt76_testmode_alloc_skb()
136 head_len - sizeof(*hdr)); in mt76_testmode_alloc_skb()
/linux/include/trace/events/
H A Dsunrpc.h64 __field(size_t, head_len)
77 __entry->head_len = xdr->head[0].iov_len;
88 __entry->head_base, __entry->head_len,
683 __field(size_t, head_len)
714 __entry->head_len = xdr->buf->head[0].iov_len,
726 __entry->head_base, __entry->head_len,
749 __field(size_t, head_len)
772 __entry->head_len = xdr->buf->head[0].iov_len,
784 __entry->head_base, __entry->head_len,
1582 __field(size_t, head_len)
[all …]
/linux/net/ipv4/
H A Dicmp.c113 int head_len; member
375 icmp_param->data_len+icmp_param->head_len, in icmp_push_reply()
376 icmp_param->head_len, in icmp_push_reply()
387 icmp_param->head_len); in icmp_push_reply()
771 icmp_param.head_len = sizeof(struct icmphdr); in __icmp_send()
1024 icmp_param.head_len = sizeof(struct icmphdr); in icmp_echo()
1180 icmp_param.head_len = sizeof(struct icmphdr) + 12; in icmp_timestamp()
/linux/net/mac80211/
H A Dmesh.c950 int head_len, tail_len; in ieee80211_mesh_build_beacon() local
969 head_len = hdr_len + in ieee80211_mesh_build_beacon()
997 bcn = kzalloc(sizeof(*bcn) + head_len + tail_len, GFP_KERNEL); in ieee80211_mesh_build_beacon()
999 skb = __dev_alloc_skb(max(head_len, tail_len), GFP_KERNEL); in ieee80211_mesh_build_beacon()
1098 bcn->head_len = skb->len; in ieee80211_mesh_build_beacon()
1099 memcpy(bcn->head, skb->data, bcn->head_len); in ieee80211_mesh_build_beacon()
1103 bcn->tail = bcn->head + bcn->head_len; in ieee80211_mesh_build_beacon()
1437 bcn->head_len + bcn->tail_len); in ieee80211_mesh_rx_probe_req()
1442 skb_put_data(presp, bcn->head, bcn->head_len); in ieee80211_mesh_rx_probe_req()
H A Dtx.c5003 beacon_data_len = beacon->head_len; in ieee80211_set_beacon_cntdwn()
5007 beacon_data_len = beacon->head_len; in ieee80211_set_beacon_cntdwn()
5140 beacon_data_len = beacon->head_len; in ieee80211_beacon_cntdwn_is_complete()
5149 beacon_data_len = beacon->head_len; in ieee80211_beacon_cntdwn_is_complete()
5325 skb = dev_alloc_skb(local->tx_headroom + beacon->head_len + in ieee80211_beacon_get_ap()
5332 skb_put_data(skb, beacon->head, beacon->head_len); in ieee80211_beacon_get_ap()
5337 offs->tim_offset = beacon->head_len; in ieee80211_beacon_get_ap()
5338 offs->tim_length = skb->len - beacon->head_len; in ieee80211_beacon_get_ap()
5474 skb = dev_alloc_skb(local->tx_headroom + beacon->head_len + in __ieee80211_beacon_get()
5479 skb_put_data(skb, beacon->head, beacon->head_len); in __ieee80211_beacon_get()
[all …]
H A Dcfg.c1143 new_head_len = params->head_len; in ieee80211_assign_beacon()
1145 new_head_len = old->head_len; in ieee80211_assign_beacon()
1189 new->head_len = new_head_len; in ieee80211_assign_beacon()
3586 len = beacon->head_len + beacon->tail_len + beacon->beacon_ies_len + in cfg80211_beacon_dup()
3623 if (beacon->head_len) { in cfg80211_beacon_dup()
3624 new_beacon->head_len = beacon->head_len; in cfg80211_beacon_dup()
3626 memcpy(pos, beacon->head, beacon->head_len); in cfg80211_beacon_dup()
3627 pos += beacon->head_len; in cfg80211_beacon_dup()
H A Dieee80211_i.h273 int head_len, tail_len; member
/linux/drivers/net/ethernet/cisco/enic/
H A Denic_main.c578 unsigned int head_len = skb_headlen(skb); in enic_queue_wq_skb_vlan() local
579 unsigned int len_left = skb->len - head_len; in enic_queue_wq_skb_vlan()
584 dma_addr = dma_map_single(&enic->pdev->dev, skb->data, head_len, in enic_queue_wq_skb_vlan()
594 enic_queue_wq_desc(wq, skb, dma_addr, head_len, vlan_tag_insert, in enic_queue_wq_skb_vlan()
612 unsigned int head_len = skb_headlen(skb); in enic_queue_wq_skb_csum_l4() local
613 unsigned int len_left = skb->len - head_len; in enic_queue_wq_skb_csum_l4()
620 dma_addr = dma_map_single(&enic->pdev->dev, skb->data, head_len, in enic_queue_wq_skb_csum_l4()
630 enic_queue_wq_desc_csum_l4(wq, skb, dma_addr, head_len, csum_offset, in enic_queue_wq_skb_csum_l4()
771 unsigned int head_len = skb_headlen(skb); in enic_queue_wq_skb_encap() local
772 unsigned int len_left = skb->len - head_len; in enic_queue_wq_skb_encap()
[all …]
/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_mbx.h267 u16 head, head_len, pushed; member
H A Dfm10k_mbx.c432 len = mbx->head_len; in fm10k_mbx_read_copy()
485 mbx->head_len = len; in fm10k_mbx_push_tail()
641 u16 len = mbx->head_len; in fm10k_mbx_verify_remote_crc()
1084 mbx->head_len = 0; in fm10k_mbx_reset_work()
1252 mbx->head_len = 0; in fm10k_mbx_process_disconnect()
/linux/net/ceph/
H A Dmessenger_v2.c392 int head_len; in head_onwire_len() local
398 head_len = CEPH_PREAMBLE_SECURE_LEN; in head_onwire_len()
401 head_len += padded_len(rem_len) + CEPH_GCM_TAG_LEN; in head_onwire_len()
404 head_len = CEPH_PREAMBLE_PLAIN_LEN; in head_onwire_len()
406 head_len += ctrl_len + CEPH_CRC_LEN; in head_onwire_len()
408 return head_len; in head_onwire_len()
1807 int head_len; in prepare_read_control() local
1813 head_len = head_onwire_len(ctrl_len, false); in prepare_read_control()
1814 buf = alloc_conn_buf(con, head_len); in prepare_read_control()
1823 add_in_sign_kvec(con, buf, head_len); in prepare_read_control()
/linux/drivers/net/wireless/microchip/wilc1000/
H A Dhif.c1773 wid.size = params->head_len + params->tail_len + 16; in wilc_add_beacon()
1783 put_unaligned_le32(params->head_len, cur_byte); in wilc_add_beacon()
1786 if (params->head_len > 0) in wilc_add_beacon()
1787 memcpy(cur_byte, params->head, params->head_len); in wilc_add_beacon()
1788 cur_byte += params->head_len; in wilc_add_beacon()
/linux/drivers/net/ethernet/atheros/atl1e/
H A Datl1e_main.c1361 u16 head_len = ETH_HLEN; in atl1e_rx_checksum() local
1372 head_len += 8; in atl1e_rx_checksum()
1373 iph = (struct iphdr *) (packet + head_len); in atl1e_rx_checksum()
/linux/drivers/net/wireless/ath/ath12k/
H A Ddp_rx.c2848 int head_len, tail_len, ret; in ath12k_dp_rx_h_verify_tkip_mic() local
2859 head_len = hdr_len + hal_rx_desc_sz + IEEE80211_TKIP_IV_LEN; in ath12k_dp_rx_h_verify_tkip_mic()
2869 data = msdu->data + head_len; in ath12k_dp_rx_h_verify_tkip_mic()
2870 data_len = msdu->len - head_len - tail_len; in ath12k_dp_rx_h_verify_tkip_mic()
/linux/drivers/net/wireless/marvell/mwifiex/
H A Duap_cmd.c247 int len = params->beacon.head_len - var_offset; in mwifiex_set_uap_rates()
/linux/drivers/net/wireless/ath/ath11k/
H A Ddp_rx.c3281 int head_len, tail_len, ret; in ath11k_dp_rx_h_verify_tkip_mic() local
3293 head_len = hdr_len + hal_rx_desc_sz + IEEE80211_TKIP_IV_LEN; in ath11k_dp_rx_h_verify_tkip_mic()
3303 data = msdu->data + head_len; in ath11k_dp_rx_h_verify_tkip_mic()
3304 data_len = msdu->len - head_len - tail_len; in ath11k_dp_rx_h_verify_tkip_mic()
/linux/net/wireless/
H A Dtrace.h706 __dynamic_array(u8, head, info->beacon.head_len)
720 info->beacon.head_len);
H A Dnl80211.c5676 bcn->head_len = nla_len(attrs[NL80211_ATTR_BEACON_HEAD]); in nl80211_parse_beacon()
5677 if (!bcn->head_len) in nl80211_parse_beacon()
/linux/drivers/net/wireless/ath/ath6kl/
H A Dcfg80211.c2804 if (ies > info->beacon.head + info->beacon.head_len) in ath6kl_start_ap()
/linux/include/net/
H A Dcfg80211.h1379 size_t head_len, tail_len; member
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dcfg80211.c5144 settings->beacon.head_len - ie_offset, in brcmf_cfg80211_start_ap()