Home
last modified time | relevance | path

Searched refs:SNAP_SIZE (Results 1 – 25 of 26) sorted by relevance

12

/drivers/net/wireless/intel/ipw2x00/
Dlibipw_tx.c133 memcpy(data + SNAP_SIZE, &h_proto, sizeof(u16)); in libipw_copy_snap()
135 return SNAP_SIZE + sizeof(u16); in libipw_copy_snap()
275 if (unlikely(skb->len < SNAP_SIZE + sizeof(u16))) { in libipw_xmit()
334 bytes = skb->len + SNAP_SIZE + sizeof(u16); in libipw_xmit()
350 libipw_copy_snap(skb_put(skb_new, SNAP_SIZE + sizeof(u16)), in libipw_xmit()
473 (skb_frag, SNAP_SIZE + sizeof(u16)), in libipw_xmit()
475 bytes -= SNAP_SIZE + sizeof(u16); in libipw_xmit()
Dlibipw_rx.c736 ((memcmp(payload, libipw_rfc1042_header, SNAP_SIZE) == 0 && in libipw_rx()
738 memcmp(payload, libipw_bridge_tunnel_header, SNAP_SIZE) == 0)) { in libipw_rx()
741 skb_pull(skb, hdrlen + SNAP_SIZE); in libipw_rx()
Dlibipw.h147 #define SNAP_SIZE sizeof(struct libipw_snap_hdr) macro
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_tx.c159 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in ieee80211_put_snap()
161 return SNAP_SIZE + sizeof(u16); in ieee80211_put_snap()
567 if (unlikely(skb->len < SNAP_SIZE + sizeof(u16))) { in ieee80211_xmit()
589 sizeof(struct ethhdr) - SNAP_SIZE - sizeof(u16)); in ieee80211_xmit()
603 bytes = skb->len + SNAP_SIZE + sizeof(u16); in ieee80211_xmit()
749 skb_put(skb_frag, SNAP_SIZE + sizeof(u16)), in ieee80211_xmit()
751 bytes -= SNAP_SIZE + sizeof(u16); in ieee80211_xmit()
Dieee80211_rx.c539 ((memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) == 0 && in ieee80211_indicate_packets()
541 memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE) == 0)) { in ieee80211_indicate_packets()
544 skb_pull(sub_skb, SNAP_SIZE); in ieee80211_indicate_packets()
1273 ((memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) == 0 && in ieee80211_rx()
1275 memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE) == 0)) { in ieee80211_rx()
1278 skb_pull(sub_skb, SNAP_SIZE); in ieee80211_rx()
Dieee80211.h569 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
/drivers/staging/rtl8192e/
Drtllib_tx.c152 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in rtllib_put_snap()
154 return SNAP_SIZE + sizeof(u16); in rtllib_put_snap()
589 if (unlikely(skb->len < SNAP_SIZE + sizeof(u16))) { in rtllib_xmit_inter()
653 sizeof(struct ethhdr) - SNAP_SIZE - in rtllib_xmit_inter()
664 bytes = skb->len + SNAP_SIZE + sizeof(u16); in rtllib_xmit_inter()
831 skb_put(skb_frag, SNAP_SIZE + in rtllib_xmit_inter()
833 bytes -= SNAP_SIZE + sizeof(u16); in rtllib_xmit_inter()
Drtllib_rx.c491 SNAP_SIZE) == 0 && in rtllib_indicate_packets()
495 SNAP_SIZE) == 0)) { in rtllib_indicate_packets()
499 skb_pull(sub_skb, SNAP_SIZE); in rtllib_indicate_packets()
1249 ((memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) == 0 && in rtllib_rx_indicate_pkt_legacy()
1251 memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE) == 0)) { in rtllib_rx_indicate_pkt_legacy()
1255 skb_pull(sub_skb, SNAP_SIZE); in rtllib_rx_indicate_pkt_legacy()
Drtllib.h495 #define SNAP_SIZE sizeof(struct rtllib_snap_hdr) macro
/drivers/staging/rtl8723bs/os_dep/
Drecv_linux.c80 ((!memcmp(sub_skb->data, rtw_rfc1042_header, SNAP_SIZE) && in rtw_os_alloc_msdu_pkt()
82 !memcmp(sub_skb->data, rtw_bridge_tunnel_header, SNAP_SIZE))) { in rtw_os_alloc_msdu_pkt()
84 skb_pull(sub_skb, SNAP_SIZE); in rtw_os_alloc_msdu_pkt()
/drivers/staging/rtl8712/
Drtl871x_recv.c606 psnap_type = ptr + pattrib->hdrlen + pattrib->iv_len + SNAP_SIZE; in r8712_wlanhdr_to_ethhdr()
608 if ((!memcmp(psnap, (void *)rfc1042_header, SNAP_SIZE) && in r8712_wlanhdr_to_ethhdr()
611 !memcmp(psnap, (void *)bridge_tunnel_header, SNAP_SIZE)) { in r8712_wlanhdr_to_ethhdr()
621 (bsnaphdr ? SNAP_SIZE : 0); in r8712_wlanhdr_to_ethhdr()
Drtl871x_recv.h15 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
Drtl8712_recv.c382 ((!memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) && in amsdu_to_msdu()
384 !memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE))) { in amsdu_to_msdu()
388 skb_pull(sub_skb, SNAP_SIZE); in amsdu_to_msdu()
Dieee80211.h273 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
Drtl871x_xmit.c569 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in r8712_put_snap()
570 return SNAP_SIZE + sizeof(u16); in r8712_put_snap()
/drivers/staging/rtl8188eu/core/
Drtw_recv.c1278 psnap_type = ptr+pattrib->hdrlen + pattrib->iv_len+SNAP_SIZE; in wlanhdr_to_ethhdr()
1280 if ((!memcmp(psnap, rtw_rfc1042_header, SNAP_SIZE) && in wlanhdr_to_ethhdr()
1283 !memcmp(psnap, rtw_bridge_tunnel_header, SNAP_SIZE)) { in wlanhdr_to_ethhdr()
1291 rmv_len = pattrib->hdrlen + pattrib->iv_len + (bsnaphdr ? SNAP_SIZE : 0); in wlanhdr_to_ethhdr()
1570 ((!memcmp(sub_skb->data, rtw_rfc1042_header, SNAP_SIZE) && in amsdu_to_msdu()
1572 !memcmp(sub_skb->data, rtw_bridge_tunnel_header, SNAP_SIZE))) { in amsdu_to_msdu()
1574 skb_pull(sub_skb, SNAP_SIZE); in amsdu_to_msdu()
Drtw_xmit.c1082 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in rtw_put_snap()
1084 return SNAP_SIZE + sizeof(u16); in rtw_put_snap()
/drivers/staging/rtl8188eu/include/
Drtw_recv.h23 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
Dieee80211.h334 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
/drivers/staging/rtl8723bs/include/
Drtw_recv.h34 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
Dieee80211.h337 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
/drivers/staging/rtl8723bs/core/
Drtw_recv.c1628 psnap_type = ptr+pattrib->hdrlen + pattrib->iv_len+SNAP_SIZE; in wlanhdr_to_ethhdr()
1631 if ((!memcmp(psnap, rtw_rfc1042_header, SNAP_SIZE) && in wlanhdr_to_ethhdr()
1635 !memcmp(psnap, rtw_bridge_tunnel_header, SNAP_SIZE)) { in wlanhdr_to_ethhdr()
1642 rmv_len = pattrib->hdrlen + pattrib->iv_len + (bsnaphdr?SNAP_SIZE:0); in wlanhdr_to_ethhdr()
Drtw_xmit.c1174 len += SNAP_SIZE + sizeof(u16); /* LLC */ in rtw_calculate_wlan_pkt_size_by_attribue()
1546 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in rtw_put_snap()
1548 return SNAP_SIZE + sizeof(u16); in rtw_put_snap()
/drivers/staging/rtl8188eu/hal/
Drtl8188eu_xmit.c405 SNAP_SIZE + sizeof(u16) + in xmitframe_need_length()
/drivers/net/wireless/realtek/rtlwifi/
Dwifi.h90 #define SNAP_SIZE 6 macro

12