Searched refs:pkt_copy (Results 1 – 3 of 3) sorted by relevance
/drivers/staging/rtl8723bs/hal/ |
D | rtl8723bs_recv.c | 232 struct sk_buff *pkt_copy = NULL; in rtl8723bs_recv_tasklet() local 297 pkt_copy = rtw_skb_alloc(alloc_sz); in rtl8723bs_recv_tasklet() 298 if (!pkt_copy) { in rtl8723bs_recv_tasklet() 303 pkt_copy->dev = padapter->pnetdev; in rtl8723bs_recv_tasklet() 304 precvframe->u.hdr.pkt = pkt_copy; in rtl8723bs_recv_tasklet() 305 …skb_reserve(pkt_copy, 8 - ((SIZE_PTR)(pkt_copy->data) & 7));/* force pkt_copy->data at 8-byte alig… in rtl8723bs_recv_tasklet() 306 …skb_reserve(pkt_copy, shift_sz);/* force ip_hdr at 8-byte alignment address according to shift_sz.… in rtl8723bs_recv_tasklet() 307 memcpy(pkt_copy->data, (ptr + rx_report_sz + pattrib->shift_sz), skb_len); in rtl8723bs_recv_tasklet() 308 precvframe->u.hdr.rx_head = pkt_copy->head; in rtl8723bs_recv_tasklet() 309 precvframe->u.hdr.rx_data = precvframe->u.hdr.rx_tail = pkt_copy->data; in rtl8723bs_recv_tasklet() [all …]
|
/drivers/staging/r8188eu/hal/ |
D | usb_ops_linux.c | 193 struct sk_buff *pkt_copy = NULL; in recvbuf2recvframe() local 264 pkt_copy = netdev_alloc_skb(adapt->pnetdev, alloc_sz); in recvbuf2recvframe() 265 if (pkt_copy) { in recvbuf2recvframe() 266 pkt_copy->dev = adapt->pnetdev; in recvbuf2recvframe() 267 precvframe->pkt = pkt_copy; in recvbuf2recvframe() 268 precvframe->rx_head = pkt_copy->data; in recvbuf2recvframe() 269 precvframe->rx_end = pkt_copy->data + alloc_sz; in recvbuf2recvframe() 270 …skb_reserve(pkt_copy, 8 - ((size_t)(pkt_copy->data) & 7));/* force pkt_copy->data at 8-byte alignm… in recvbuf2recvframe() 271 …skb_reserve(pkt_copy, shift_sz);/* force ip_hdr at 8-byte alignment address according to shift_sz.… in recvbuf2recvframe() 272 memcpy(pkt_copy->data, (pbuf + pattrib->drvinfo_sz + RXDESC_SIZE), skb_len); in recvbuf2recvframe() [all …]
|
/drivers/staging/rtl8712/ |
D | rtl8712_recv.c | 979 _pkt *pkt_copy = NULL; in recvbuf2recvframe() local 1034 pkt_copy = netdev_alloc_skb(padapter->pnetdev, alloc_sz); in recvbuf2recvframe() 1035 if (!pkt_copy) in recvbuf2recvframe() 1038 precvframe->u.hdr.pkt = pkt_copy; in recvbuf2recvframe() 1039 skb_reserve(pkt_copy, 4 - ((addr_t)(pkt_copy->data) % 4)); in recvbuf2recvframe() 1040 skb_reserve(pkt_copy, shift_sz); in recvbuf2recvframe() 1041 memcpy(pkt_copy->data, pbuf, tmp_len); in recvbuf2recvframe() 1042 precvframe->u.hdr.rx_head = pkt_copy->data; in recvbuf2recvframe() 1043 precvframe->u.hdr.rx_data = pkt_copy->data; in recvbuf2recvframe() 1044 precvframe->u.hdr.rx_tail = pkt_copy->data; in recvbuf2recvframe() [all …]
|