Searched refs:sub_skb (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/staging/rtl8723bs/os_dep/ |
H A D | recv_linux.c | 57 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() 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() 79 skb_pull(sub_skb, SNAP_SIZE); in rtw_os_alloc_msdu_pkt() 85 len = htons(sub_skb->len); in rtw_os_alloc_msdu_pkt() 86 memcpy(skb_push(sub_skb, 2), &len, 2); in rtw_os_alloc_msdu_pkt() [all …]
|
/openbmc/linux/drivers/staging/rtl8192e/ |
H A D | rtllib_rx.c | 477 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in rtllib_indicate_packets() 501 if (sub_skb) { in rtllib_indicate_packets() 505 memset(sub_skb->cb, 0, sizeof(sub_skb->cb)); in rtllib_indicate_packets() 506 sub_skb->protocol = eth_type_trans(sub_skb, in rtllib_indicate_packets() 510 sub_skb->dev->stats.rx_bytes += sub_skb->len; in rtllib_indicate_packets() 797 if (!sub_skb) in parse_subframe() 849 if (!sub_skb) in parse_subframe() 1228 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in rtllib_rx_indicate_pkt_legacy() 1261 memset(sub_skb->cb, 0, sizeof(sub_skb->cb)); in rtllib_rx_indicate_pkt_legacy() 1262 sub_skb->protocol = eth_type_trans(sub_skb, dev); in rtllib_rx_indicate_pkt_legacy() [all …]
|
/openbmc/linux/drivers/staging/rtl8712/ |
H A D | rtl8712_recv.c | 348 if (!sub_skb) in amsdu_to_msdu() 350 skb_reserve(sub_skb, 12); in amsdu_to_msdu() 370 sub_skb = subframes[i]; in amsdu_to_msdu() 372 eth_type = (sub_skb->data[6] << 8) | sub_skb->data[7]; in amsdu_to_msdu() 373 if (sub_skb->len >= 8 && in amsdu_to_msdu() 380 skb_pull(sub_skb, SNAP_SIZE); in amsdu_to_msdu() 388 len = htons(sub_skb->len); in amsdu_to_msdu() 396 if (sub_skb) { in amsdu_to_msdu() 397 sub_skb->protocol = in amsdu_to_msdu() 399 sub_skb->dev = padapter->pnetdev; in amsdu_to_msdu() [all …]
|
/openbmc/linux/drivers/staging/rtl8192u/ieee80211/ |
H A D | ieee80211_rx.c | 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() 549 put_unaligned_be16(sub_skb->len, skb_push(sub_skb, 2)); in indicate_packets() 560 sub_skb->protocol = eth_type_trans(sub_skb, dev); in indicate_packets() 561 memset(sub_skb->cb, 0, sizeof(sub_skb->cb)); in indicate_packets() 562 sub_skb->dev = dev; in indicate_packets() 566 netif_rx(sub_skb); in indicate_packets() 779 struct sk_buff *sub_skb; in parse_subframe() local 839 sub_skb->tail = sub_skb->data + nSubframe_Length; in parse_subframe() [all …]
|