Searched refs:sub_skb (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.4/drivers/staging/rtl8723bs/os_dep/ |
D | recv_linux.c | 56 _pkt *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() 63 skb_reserve(sub_skb, 12); in rtw_os_alloc_msdu_pkt() 64 skb_put_data(sub_skb, (pdata + ETH_HLEN), nSubframe_Length); in rtw_os_alloc_msdu_pkt() 66 sub_skb = rtw_skb_clone(prframe->u.hdr.pkt); in rtw_os_alloc_msdu_pkt() 67 if (sub_skb) { in rtw_os_alloc_msdu_pkt() 68 sub_skb->data = pdata + ETH_HLEN; in rtw_os_alloc_msdu_pkt() 69 sub_skb->len = nSubframe_Length; in rtw_os_alloc_msdu_pkt() 70 skb_set_tail_pointer(sub_skb, nSubframe_Length); in rtw_os_alloc_msdu_pkt() [all …]
|
/Linux-v5.4/drivers/staging/rtl8192e/ |
D | rtllib_rx.c | 485 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-v5.4/drivers/staging/rtl8712/ |
D | rtl8712_recv.c | 329 _pkt *sub_skb, *subframes[MAX_SUBFRAME_COUNT]; in amsdu_to_msdu() local 355 sub_skb = dev_alloc_skb(nSubframe_Length + 12); in amsdu_to_msdu() 356 if (!sub_skb) in amsdu_to_msdu() 358 skb_reserve(sub_skb, 12); in amsdu_to_msdu() 359 skb_put_data(sub_skb, pdata, nSubframe_Length); in amsdu_to_msdu() 360 subframes[nr_subframes++] = sub_skb; in amsdu_to_msdu() 378 sub_skb = subframes[i]; in amsdu_to_msdu() 380 eth_type = (sub_skb->data[6] << 8) | sub_skb->data[7]; in amsdu_to_msdu() 381 if (sub_skb->len >= 8 && in amsdu_to_msdu() 382 ((!memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) && in amsdu_to_msdu() [all …]
|
/Linux-v5.4/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_rx.c | 534 struct sk_buff *sub_skb = prxb->subframes[i]; in ieee80211_indicate_packets() local 537 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in ieee80211_indicate_packets() 538 if (sub_skb->len >= 8 && in ieee80211_indicate_packets() 539 ((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() 545 memcpy(skb_push(sub_skb, ETH_ALEN), prxb->src, ETH_ALEN); in ieee80211_indicate_packets() 546 memcpy(skb_push(sub_skb, ETH_ALEN), prxb->dst, ETH_ALEN); in ieee80211_indicate_packets() 549 put_unaligned_be16(sub_skb->len, skb_push(sub_skb, 2)); in ieee80211_indicate_packets() 550 memcpy(skb_push(sub_skb, ETH_ALEN), prxb->src, ETH_ALEN); in ieee80211_indicate_packets() [all …]
|
/Linux-v5.4/drivers/staging/rtl8188eu/core/ |
D | rtw_recv.c | 1497 struct sk_buff *sub_skb, *subframes[MAX_SUBFRAME_COUNT]; in amsdu_to_msdu() local 1527 sub_skb = dev_alloc_skb(nSubframe_Length + 12); in amsdu_to_msdu() 1528 if (sub_skb) { in amsdu_to_msdu() 1529 skb_reserve(sub_skb, 12); in amsdu_to_msdu() 1530 skb_put_data(sub_skb, pdata, nSubframe_Length); in amsdu_to_msdu() 1532 sub_skb = skb_clone(prframe->pkt, GFP_ATOMIC); in amsdu_to_msdu() 1533 if (sub_skb) { in amsdu_to_msdu() 1534 sub_skb->data = pdata; in amsdu_to_msdu() 1535 sub_skb->len = nSubframe_Length; in amsdu_to_msdu() 1536 skb_set_tail_pointer(sub_skb, nSubframe_Length); in amsdu_to_msdu() [all …]
|