Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/staging/rtl8723bs/hal/
Drtl8723bs_recv.c248 _pkt *pkt_copy = NULL; in rtl8723bs_recv_tasklet() local
317 pkt_copy = rtw_skb_alloc(alloc_sz); in rtl8723bs_recv_tasklet()
319 if (pkt_copy) { in rtl8723bs_recv_tasklet()
320 pkt_copy->dev = padapter->pnetdev; in rtl8723bs_recv_tasklet()
321 precvframe->u.hdr.pkt = pkt_copy; in rtl8723bs_recv_tasklet()
322 …skb_reserve(pkt_copy, 8 - ((SIZE_PTR)(pkt_copy->data) & 7));/* force pkt_copy->data at 8-byte alig… in rtl8723bs_recv_tasklet()
323 …skb_reserve(pkt_copy, shift_sz);/* force ip_hdr at 8-byte alignment address according to shift_sz.… in rtl8723bs_recv_tasklet()
324 memcpy(pkt_copy->data, (ptr + rx_report_sz + pattrib->shift_sz), skb_len); in rtl8723bs_recv_tasklet()
325 precvframe->u.hdr.rx_head = pkt_copy->head; in rtl8723bs_recv_tasklet()
326 precvframe->u.hdr.rx_data = precvframe->u.hdr.rx_tail = pkt_copy->data; in rtl8723bs_recv_tasklet()
[all …]
/Linux-v4.19/drivers/staging/rtl8188eu/os_dep/
Dusb_ops_linux.c40 struct sk_buff *pkt_copy = NULL; in recvbuf2recvframe() local
115 pkt_copy = netdev_alloc_skb(adapt->pnetdev, alloc_sz); in recvbuf2recvframe()
116 if (pkt_copy) { in recvbuf2recvframe()
117 pkt_copy->dev = adapt->pnetdev; in recvbuf2recvframe()
118 precvframe->pkt = pkt_copy; in recvbuf2recvframe()
119 …skb_reserve(pkt_copy, 8 - ((size_t)(pkt_copy->data) & 7));/* force pkt_copy->data at 8-byte alignm… in recvbuf2recvframe()
120 …skb_reserve(pkt_copy, shift_sz);/* force ip_hdr at 8-byte alignment address according to shift_sz.… in recvbuf2recvframe()
121 memcpy(pkt_copy->data, (pbuf + pattrib->drvinfo_sz + RXDESC_SIZE), skb_len); in recvbuf2recvframe()
169 pkt_copy = NULL; in recvbuf2recvframe()
/Linux-v4.19/drivers/staging/rtl8712/
Drtl8712_recv.c1015 _pkt *pkt_copy = NULL; in recvbuf2recvframe() local
1070 pkt_copy = netdev_alloc_skb(padapter->pnetdev, alloc_sz); in recvbuf2recvframe()
1071 if (pkt_copy) { in recvbuf2recvframe()
1072 precvframe->u.hdr.pkt = pkt_copy; in recvbuf2recvframe()
1073 skb_reserve(pkt_copy, 4 - ((addr_t)(pkt_copy->data) in recvbuf2recvframe()
1075 skb_reserve(pkt_copy, shift_sz); in recvbuf2recvframe()
1076 memcpy(pkt_copy->data, pbuf, tmp_len); in recvbuf2recvframe()
1078 precvframe->u.hdr.rx_tail = pkt_copy->data; in recvbuf2recvframe()
1079 precvframe->u.hdr.rx_end = pkt_copy->data + alloc_sz; in recvbuf2recvframe()
1101 pkt_copy = NULL; in recvbuf2recvframe()