Home
last modified time | relevance | path

Searched refs:head_need (Results 1 – 2 of 2) sorted by relevance

/net/wireless/
Dutil.c542 int head_need; in ieee80211_data_from_8023() local
614 head_need = hdrlen + encaps_len - skb_headroom(skb); in ieee80211_data_from_8023()
616 if (head_need > 0 || skb_cloned(skb)) { in ieee80211_data_from_8023()
617 head_need = max(head_need, 0); in ieee80211_data_from_8023()
618 if (head_need) in ieee80211_data_from_8023()
621 if (pskb_expand_head(skb, head_need, 0, GFP_ATOMIC)) in ieee80211_data_from_8023()
624 skb->truesize += head_need; in ieee80211_data_from_8023()
/net/mac80211/
Dtx.c1852 int head_need, bool may_encrypt) in ieee80211_skb_resize() argument
1868 else if (head_need || tail_need) in ieee80211_skb_resize()
1873 if (pskb_expand_head(skb, head_need, tail_need, GFP_ATOMIC)) { in ieee80211_skb_resize()
2353 int head_need; in ieee80211_build_hdr() local
2667 head_need = hdrlen + encaps_len + meshhdrlen - skb_headroom(skb); in ieee80211_build_hdr()
2681 if (head_need > 0 || skb_cloned(skb)) { in ieee80211_build_hdr()
2682 head_need += sdata->encrypt_headroom; in ieee80211_build_hdr()
2683 head_need += local->tx_headroom; in ieee80211_build_hdr()
2684 head_need = max_t(int, 0, head_need); in ieee80211_build_hdr()
2685 if (ieee80211_skb_resize(sdata, skb, head_need, true)) { in ieee80211_build_hdr()