Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/staging/rtl8723bs/os_dep/
Drecv_linux.c56 struct sk_buff *sub_skb; in rtw_os_alloc_msdu_pkt() local
61 sub_skb = rtw_skb_alloc(nSubframe_Length + 12); in rtw_os_alloc_msdu_pkt()
62 if (!sub_skb) in rtw_os_alloc_msdu_pkt()
65 skb_reserve(sub_skb, 12); in rtw_os_alloc_msdu_pkt()
66 skb_put_data(sub_skb, (pdata + ETH_HLEN), nSubframe_Length); in rtw_os_alloc_msdu_pkt()
68 eth_type = get_unaligned_be16(&sub_skb->data[6]); in rtw_os_alloc_msdu_pkt()
70 if (sub_skb->len >= 8 && in rtw_os_alloc_msdu_pkt()
71 ((!memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) && in rtw_os_alloc_msdu_pkt()
73 !memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE))) { in rtw_os_alloc_msdu_pkt()
78 skb_pull(sub_skb, SNAP_SIZE); in rtw_os_alloc_msdu_pkt()
[all …]
/linux-6.12.1/drivers/staging/rtl8192e/
Drtllib_rx.c441 struct sk_buff *sub_skb = prxb->subframes[i]; in rtllib_indicate_packets() local
444 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in rtllib_indicate_packets()
445 if (sub_skb->len >= 8 && in rtllib_indicate_packets()
446 ((memcmp(sub_skb->data, rfc1042_header, in rtllib_indicate_packets()
450 memcmp(sub_skb->data, bridge_tunnel_header, in rtllib_indicate_packets()
455 skb_pull(sub_skb, SNAP_SIZE); in rtllib_indicate_packets()
456 memcpy(skb_push(sub_skb, ETH_ALEN), prxb->src, ETH_ALEN); in rtllib_indicate_packets()
457 memcpy(skb_push(sub_skb, ETH_ALEN), prxb->dst, ETH_ALEN); in rtllib_indicate_packets()
461 len = sub_skb->len; in rtllib_indicate_packets()
462 memcpy(skb_push(sub_skb, 2), &len, 2); in rtllib_indicate_packets()
[all …]
/linux-6.12.1/drivers/staging/rtl8712/
Drtl8712_recv.c316 _pkt *sub_skb, *subframes[MAX_SUBFRAME_COUNT]; in amsdu_to_msdu() local
342 sub_skb = dev_alloc_skb(nSubframe_Length + 12); in amsdu_to_msdu()
343 if (!sub_skb) in amsdu_to_msdu()
345 skb_reserve(sub_skb, 12); in amsdu_to_msdu()
346 skb_put_data(sub_skb, pdata, nSubframe_Length); in amsdu_to_msdu()
347 subframes[nr_subframes++] = sub_skb; in amsdu_to_msdu()
365 sub_skb = subframes[i]; in amsdu_to_msdu()
367 eth_type = (sub_skb->data[6] << 8) | sub_skb->data[7]; in amsdu_to_msdu()
368 if (sub_skb->len >= 8 && in amsdu_to_msdu()
369 ((!memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) && in amsdu_to_msdu()
[all …]