Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/wireless/intersil/hostap/
Dhostap_80211_rx.c68 int hdrlen, phdrlen, head_need, tail_need; in prism2_rx_80211() local
106 head_need = phdrlen; in prism2_rx_80211()
112 head_need -= skb_headroom(skb); in prism2_rx_80211()
115 if (head_need > 0 || tail_need > 0) { in prism2_rx_80211()
116 if (pskb_expand_head(skb, head_need > 0 ? head_need : 0, in prism2_rx_80211()
/Linux-v4.19/net/mac80211/
Dtx.c1913 int head_need, bool may_encrypt) in ieee80211_skb_resize() argument
1929 else if (head_need || tail_need) in ieee80211_skb_resize()
1934 if (pskb_expand_head(skb, head_need, tail_need, GFP_ATOMIC)) { in ieee80211_skb_resize()
2415 int head_need; in ieee80211_build_hdr() local
2729 head_need = hdrlen + encaps_len + meshhdrlen - skb_headroom(skb); in ieee80211_build_hdr()
2743 if (head_need > 0 || skb_cloned(skb)) { in ieee80211_build_hdr()
2744 head_need += sdata->encrypt_headroom; in ieee80211_build_hdr()
2745 head_need += local->tx_headroom; in ieee80211_build_hdr()
2746 head_need = max_t(int, 0, head_need); in ieee80211_build_hdr()
2747 if (ieee80211_skb_resize(sdata, skb, head_need, true)) { in ieee80211_build_hdr()