Home
last modified time | relevance | path

Searched refs:sub_skb (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/drivers/staging/rtl8723bs/os_dep/
Drecv_linux.c68 _pkt *sub_skb; in rtw_os_alloc_msdu_pkt() local
73 sub_skb = rtw_skb_alloc(nSubframe_Length + 12); in rtw_os_alloc_msdu_pkt()
74 if (sub_skb) in rtw_os_alloc_msdu_pkt()
76 skb_reserve(sub_skb, 12); in rtw_os_alloc_msdu_pkt()
77 skb_put_data(sub_skb, (pdata + ETH_HLEN), nSubframe_Length); in rtw_os_alloc_msdu_pkt()
81 sub_skb = rtw_skb_clone(prframe->u.hdr.pkt); in rtw_os_alloc_msdu_pkt()
82 if (sub_skb) in rtw_os_alloc_msdu_pkt()
84 sub_skb->data = pdata + ETH_HLEN; in rtw_os_alloc_msdu_pkt()
85 sub_skb->len = nSubframe_Length; in rtw_os_alloc_msdu_pkt()
86 skb_set_tail_pointer(sub_skb, nSubframe_Length); in rtw_os_alloc_msdu_pkt()
[all …]
/Linux-v4.19/drivers/staging/rtl8192e/
Drtllib_rx.c493 struct sk_buff *sub_skb = prxb->subframes[i]; in rtllib_indicate_packets() local
496 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in rtllib_indicate_packets()
497 if (sub_skb->len >= 8 && in rtllib_indicate_packets()
498 ((memcmp(sub_skb->data, rfc1042_header, in rtllib_indicate_packets()
502 memcmp(sub_skb->data, bridge_tunnel_header, in rtllib_indicate_packets()
507 skb_pull(sub_skb, SNAP_SIZE); in rtllib_indicate_packets()
508 memcpy(skb_push(sub_skb, ETH_ALEN), prxb->src, ETH_ALEN); in rtllib_indicate_packets()
509 memcpy(skb_push(sub_skb, ETH_ALEN), prxb->dst, ETH_ALEN); in rtllib_indicate_packets()
513 len = sub_skb->len; in rtllib_indicate_packets()
514 memcpy(skb_push(sub_skb, 2), &len, 2); in rtllib_indicate_packets()
[all …]
/Linux-v4.19/drivers/staging/rtl8192u/ieee80211/
Dieee80211_rx.c548 struct sk_buff *sub_skb = prxb->subframes[i]; in ieee80211_indicate_packets() local
551 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in ieee80211_indicate_packets()
552 if (sub_skb->len >= 8 && in ieee80211_indicate_packets()
553 ((memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) == 0 && in ieee80211_indicate_packets()
555 memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE) == 0)) { in ieee80211_indicate_packets()
558 skb_pull(sub_skb, SNAP_SIZE); in ieee80211_indicate_packets()
559 memcpy(skb_push(sub_skb, ETH_ALEN), prxb->src, ETH_ALEN); in ieee80211_indicate_packets()
560 memcpy(skb_push(sub_skb, ETH_ALEN), prxb->dst, ETH_ALEN); in ieee80211_indicate_packets()
563 put_unaligned_be16(sub_skb->len, skb_push(sub_skb, 2)); in ieee80211_indicate_packets()
564 memcpy(skb_push(sub_skb, ETH_ALEN), prxb->src, ETH_ALEN); in ieee80211_indicate_packets()
[all …]
/Linux-v4.19/drivers/staging/rtl8712/
Drtl8712_recv.c345 _pkt *sub_skb, *subframes[MAX_SUBFRAME_COUNT]; in amsdu_to_msdu() local
371 sub_skb = dev_alloc_skb(nSubframe_Length + 12); in amsdu_to_msdu()
372 if (!sub_skb) in amsdu_to_msdu()
374 skb_reserve(sub_skb, 12); in amsdu_to_msdu()
375 skb_put_data(sub_skb, pdata, nSubframe_Length); in amsdu_to_msdu()
376 subframes[nr_subframes++] = sub_skb; in amsdu_to_msdu()
394 sub_skb = subframes[i]; in amsdu_to_msdu()
396 eth_type = (sub_skb->data[6] << 8) | sub_skb->data[7]; in amsdu_to_msdu()
397 if (sub_skb->len >= 8 && in amsdu_to_msdu()
398 ((!memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) && in amsdu_to_msdu()
[all …]
/Linux-v4.19/drivers/staging/rtl8188eu/core/
Drtw_recv.c1507 struct sk_buff *sub_skb, *subframes[MAX_SUBFRAME_COUNT]; in amsdu_to_msdu() local
1537 sub_skb = dev_alloc_skb(nSubframe_Length + 12); in amsdu_to_msdu()
1538 if (sub_skb) { in amsdu_to_msdu()
1539 skb_reserve(sub_skb, 12); in amsdu_to_msdu()
1540 skb_put_data(sub_skb, pdata, nSubframe_Length); in amsdu_to_msdu()
1542 sub_skb = skb_clone(prframe->pkt, GFP_ATOMIC); in amsdu_to_msdu()
1543 if (sub_skb) { in amsdu_to_msdu()
1544 sub_skb->data = pdata; in amsdu_to_msdu()
1545 sub_skb->len = nSubframe_Length; in amsdu_to_msdu()
1546 skb_set_tail_pointer(sub_skb, nSubframe_Length); in amsdu_to_msdu()
[all …]