Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/staging/rtl8723bs/os_dep/
Drecv_linux.c57 struct sk_buff *sub_skb; in rtw_os_alloc_msdu_pkt() local
62 sub_skb = rtw_skb_alloc(nSubframe_Length + 12); in rtw_os_alloc_msdu_pkt()
63 if (!sub_skb) in rtw_os_alloc_msdu_pkt()
66 skb_reserve(sub_skb, 12); in rtw_os_alloc_msdu_pkt()
67 skb_put_data(sub_skb, (pdata + ETH_HLEN), nSubframe_Length); in rtw_os_alloc_msdu_pkt()
69 eth_type = get_unaligned_be16(&sub_skb->data[6]); in rtw_os_alloc_msdu_pkt()
71 if (sub_skb->len >= 8 && in rtw_os_alloc_msdu_pkt()
72 ((!memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) && in rtw_os_alloc_msdu_pkt()
74 !memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE))) { in rtw_os_alloc_msdu_pkt()
79 skb_pull(sub_skb, SNAP_SIZE); in rtw_os_alloc_msdu_pkt()
[all …]
/linux-5.19.10/drivers/staging/rtl8192e/
Drtllib_rx.c485 struct sk_buff *sub_skb = prxb->subframes[i]; in rtllib_indicate_packets() local
488 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in rtllib_indicate_packets()
489 if (sub_skb->len >= 8 && in rtllib_indicate_packets()
490 ((memcmp(sub_skb->data, rfc1042_header, in rtllib_indicate_packets()
494 memcmp(sub_skb->data, bridge_tunnel_header, in rtllib_indicate_packets()
499 skb_pull(sub_skb, SNAP_SIZE); in rtllib_indicate_packets()
500 memcpy(skb_push(sub_skb, ETH_ALEN), prxb->src, ETH_ALEN); in rtllib_indicate_packets()
501 memcpy(skb_push(sub_skb, ETH_ALEN), prxb->dst, ETH_ALEN); in rtllib_indicate_packets()
505 len = sub_skb->len; in rtllib_indicate_packets()
506 memcpy(skb_push(sub_skb, 2), &len, 2); in rtllib_indicate_packets()
[all …]
/linux-5.19.10/drivers/staging/rtl8712/
Drtl8712_recv.c320 _pkt *sub_skb, *subframes[MAX_SUBFRAME_COUNT]; in amsdu_to_msdu() local
346 sub_skb = dev_alloc_skb(nSubframe_Length + 12); in amsdu_to_msdu()
347 if (!sub_skb) in amsdu_to_msdu()
349 skb_reserve(sub_skb, 12); in amsdu_to_msdu()
350 skb_put_data(sub_skb, pdata, nSubframe_Length); in amsdu_to_msdu()
351 subframes[nr_subframes++] = sub_skb; in amsdu_to_msdu()
369 sub_skb = subframes[i]; in amsdu_to_msdu()
371 eth_type = (sub_skb->data[6] << 8) | sub_skb->data[7]; in amsdu_to_msdu()
372 if (sub_skb->len >= 8 && in amsdu_to_msdu()
373 ((!memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) && in amsdu_to_msdu()
[all …]
/linux-5.19.10/drivers/staging/r8188eu/core/
Drtw_recv.c1315 struct sk_buff *sub_skb, *subframes[MAX_SUBFRAME_COUNT]; in amsdu_to_msdu() local
1344 sub_skb = dev_alloc_skb(nSubframe_Length + 12); in amsdu_to_msdu()
1345 if (sub_skb) { in amsdu_to_msdu()
1346 skb_reserve(sub_skb, 12); in amsdu_to_msdu()
1347 data_ptr = (u8 *)skb_put(sub_skb, nSubframe_Length); in amsdu_to_msdu()
1350 sub_skb = skb_clone(prframe->pkt, GFP_ATOMIC); in amsdu_to_msdu()
1351 if (sub_skb) { in amsdu_to_msdu()
1352 sub_skb->data = pdata; in amsdu_to_msdu()
1353 sub_skb->len = nSubframe_Length; in amsdu_to_msdu()
1354 skb_set_tail_pointer(sub_skb, nSubframe_Length); in amsdu_to_msdu()
[all …]
/linux-5.19.10/drivers/staging/rtl8192u/ieee80211/
Dieee80211_rx.c532 struct sk_buff *sub_skb = rxb->subframes[i]; in indicate_packets() local
534 if (!sub_skb) in indicate_packets()
538 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in indicate_packets()
539 if (sub_skb->len >= 8 && in indicate_packets()
540 ((!memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) && in indicate_packets()
543 !memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE))) { in indicate_packets()
546 skb_pull(sub_skb, SNAP_SIZE); in indicate_packets()
549 put_unaligned_be16(sub_skb->len, skb_push(sub_skb, 2)); in indicate_packets()
551 memcpy(skb_push(sub_skb, ETH_ALEN), rxb->src, ETH_ALEN); in indicate_packets()
552 memcpy(skb_push(sub_skb, ETH_ALEN), rxb->dst, ETH_ALEN); in indicate_packets()
[all …]