Home
last modified time | relevance | path

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

/drivers/net/wireless/ipw2x00/
Dlibipw_tx.c147 memcpy(data + SNAP_SIZE, &h_proto, sizeof(u16)); in libipw_copy_snap()
149 return SNAP_SIZE + sizeof(u16); in libipw_copy_snap()
289 if (unlikely(skb->len < SNAP_SIZE + sizeof(u16))) { in libipw_xmit()
348 bytes = skb->len + SNAP_SIZE + sizeof(u16); in libipw_xmit()
364 libipw_copy_snap(skb_put(skb_new, SNAP_SIZE + sizeof(u16)), in libipw_xmit()
490 (skb_frag, SNAP_SIZE + sizeof(u16)), in libipw_xmit()
492 bytes -= SNAP_SIZE + sizeof(u16); in libipw_xmit()
Dlibipw_rx.c740 ((memcmp(payload, libipw_rfc1042_header, SNAP_SIZE) == 0 && in libipw_rx()
742 memcmp(payload, libipw_bridge_tunnel_header, SNAP_SIZE) == 0)) { in libipw_rx()
745 skb_pull(skb, hdrlen + SNAP_SIZE); in libipw_rx()
Dlibipw.h151 #define SNAP_SIZE sizeof(struct libipw_snap_hdr) macro
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_tx.c175 *(u16 *)(data + SNAP_SIZE) = htons(h_proto); in ieee80211_put_snap()
177 return SNAP_SIZE + sizeof(u16); in ieee80211_put_snap()
633 if (unlikely(skb->len < SNAP_SIZE + sizeof(u16))) { in ieee80211_xmit()
655 sizeof(struct ethhdr) - SNAP_SIZE - sizeof(u16)); in ieee80211_xmit()
669 bytes = skb->len + SNAP_SIZE + sizeof(u16); in ieee80211_xmit()
816 skb_put(skb_frag, SNAP_SIZE + sizeof(u16)), in ieee80211_xmit()
818 bytes -= SNAP_SIZE + sizeof(u16); in ieee80211_xmit()
Dieee80211_rx.c555 ((memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) == 0 && in ieee80211_indicate_packets()
557 memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE) == 0)) { in ieee80211_indicate_packets()
560 skb_pull(sub_skb, SNAP_SIZE); in ieee80211_indicate_packets()
1307 ((memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) == 0 && in ieee80211_rx()
1309 memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE) == 0)) { in ieee80211_rx()
1312 skb_pull(sub_skb, SNAP_SIZE); in ieee80211_rx()
Dieee80211.h577 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
/drivers/staging/rtl8192e/
Drtllib_tx.c168 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in rtllib_put_snap()
170 return SNAP_SIZE + sizeof(u16); in rtllib_put_snap()
605 if (unlikely(skb->len < SNAP_SIZE + sizeof(u16))) { in rtllib_xmit_inter()
670 sizeof(struct ethhdr) - SNAP_SIZE - in rtllib_xmit_inter()
681 bytes = skb->len + SNAP_SIZE + sizeof(u16); in rtllib_xmit_inter()
848 skb_put(skb_frag, SNAP_SIZE + in rtllib_xmit_inter()
850 bytes -= SNAP_SIZE + sizeof(u16); in rtllib_xmit_inter()
Drtllib_rx.c499 SNAP_SIZE) == 0 && in rtllib_indicate_packets()
503 SNAP_SIZE) == 0)) { in rtllib_indicate_packets()
507 skb_pull(sub_skb, SNAP_SIZE); in rtllib_indicate_packets()
1263 ((memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) == 0 && in rtllib_rx_indicate_pkt_legacy()
1265 memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE) == 0)) { in rtllib_rx_indicate_pkt_legacy()
1269 skb_pull(sub_skb, SNAP_SIZE); in rtllib_rx_indicate_pkt_legacy()
Drtllib.h552 #define SNAP_SIZE sizeof(struct rtllib_snap_hdr) macro
/drivers/staging/rtl8712/
Drtl871x_recv.c621 psnap_type = ptr + pattrib->hdrlen + pattrib->iv_len + SNAP_SIZE; in r8712_wlanhdr_to_ethhdr()
623 if ((!memcmp(psnap, (void *)rfc1042_header, SNAP_SIZE) && in r8712_wlanhdr_to_ethhdr()
626 !memcmp(psnap, (void *)bridge_tunnel_header, SNAP_SIZE)) { in r8712_wlanhdr_to_ethhdr()
635 (bsnaphdr ? SNAP_SIZE : 0); in r8712_wlanhdr_to_ethhdr()
Drtl871x_recv.h14 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
Drtl8712_recv.c390 ((!memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) && in amsdu_to_msdu()
392 !memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE))) { in amsdu_to_msdu()
395 skb_pull(sub_skb, SNAP_SIZE); in amsdu_to_msdu()
Dieee80211.h292 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
Drtl871x_xmit.c572 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in r8712_put_snap()
573 return SNAP_SIZE + sizeof(u16); in r8712_put_snap()
/drivers/staging/rtl8188eu/core/
Drtw_recv.c1371 psnap_type = ptr+pattrib->hdrlen + pattrib->iv_len+SNAP_SIZE; in wlanhdr_to_ethhdr()
1373 if ((!memcmp(psnap, rtw_rfc1042_header, SNAP_SIZE) && in wlanhdr_to_ethhdr()
1376 !memcmp(psnap, rtw_bridge_tunnel_header, SNAP_SIZE)) { in wlanhdr_to_ethhdr()
1384 rmv_len = pattrib->hdrlen + pattrib->iv_len + (bsnaphdr ? SNAP_SIZE : 0); in wlanhdr_to_ethhdr()
1683 ((!memcmp(sub_skb->data, rtw_rfc1042_header, SNAP_SIZE) && in amsdu_to_msdu()
1685 !memcmp(sub_skb->data, rtw_bridge_tunnel_header, SNAP_SIZE))) { in amsdu_to_msdu()
1687 skb_pull(sub_skb, SNAP_SIZE); in amsdu_to_msdu()
Drtw_xmit.c950 len += SNAP_SIZE + sizeof(u16); /* LLC */ in rtw_calculate_wlan_pkt_size_by_attribue()
1154 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in rtw_put_snap()
1157 return SNAP_SIZE + sizeof(u16); in rtw_put_snap()
/drivers/staging/rtl8723au/include/
Drtw_recv.h28 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
Dieee80211.h169 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
/drivers/staging/rtl8188eu/include/
Drtw_recv.h36 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
Dieee80211.h470 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
/drivers/staging/rtl8188eu/hal/
Drtl8188eu_xmit.c422 SNAP_SIZE + sizeof(u16) + in xmitframe_need_length()
/drivers/net/wireless/realtek/rtlwifi/
Dbase.c1351 offset = mac_hdr_len + SNAP_SIZE; in rtl_is_special_data()
Dwifi.h111 #define SNAP_SIZE 6 macro
/drivers/staging/rtl8723au/core/
Drtw_recv.c1523 hdrlen += SNAP_SIZE; in wlanhdr_to_ethhdr()