Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/net/
H A Dvirtio_net.c156 struct page_frag alloc_frag; member
1169 struct page_frag *alloc_frag = &rq->alloc_frag; in add_recvbuf_small() local
1178 if (unlikely(!skb_page_frag_refill(len, alloc_frag, gfp))) in add_recvbuf_small()
1181 buf = (char *)page_address(alloc_frag->page) + alloc_frag->offset; in add_recvbuf_small()
1182 get_page(alloc_frag->page); in add_recvbuf_small()
1183 alloc_frag->offset += len; in add_recvbuf_small()
1260 struct page_frag *alloc_frag = &rq->alloc_frag; in add_recvbuf_mergeable() local
1274 if (unlikely(!skb_page_frag_refill(len + room, alloc_frag, gfp))) in add_recvbuf_mergeable()
1277 buf = (char *)page_address(alloc_frag->page) + alloc_frag->offset; in add_recvbuf_mergeable()
1279 get_page(alloc_frag->page); in add_recvbuf_mergeable()
[all …]
H A Dtun.c1615 struct page_frag *alloc_frag, char *buf, in __tun_build_skb() argument
1627 get_page(alloc_frag->page); in __tun_build_skb()
1628 alloc_frag->offset += buflen; in __tun_build_skb()
1671 struct page_frag *alloc_frag = &current->task_frag; in tun_build_skb() local
1686 alloc_frag->offset = ALIGN((u64)alloc_frag->offset, SMP_CACHE_BYTES); in tun_build_skb()
1687 if (unlikely(!skb_page_frag_refill(buflen, alloc_frag, GFP_KERNEL))) in tun_build_skb()
1690 buf = (char *)page_address(alloc_frag->page) + alloc_frag->offset; in tun_build_skb()
1691 copied = copy_page_from_iter(alloc_frag->page, in tun_build_skb()
1692 alloc_frag->offset + pad, in tun_build_skb()
1703 return __tun_build_skb(tfile, alloc_frag, buf, buflen, len, in tun_build_skb()
[all …]
/OK3568_Linux_fs/kernel/drivers/vhost/
H A Dnet.c701 struct page_frag *alloc_frag = &net->page_frag; in vhost_net_build_xdp() local
721 alloc_frag->offset = ALIGN((u64)alloc_frag->offset, SMP_CACHE_BYTES); in vhost_net_build_xdp()
723 alloc_frag, GFP_KERNEL))) in vhost_net_build_xdp()
726 buf = (char *)page_address(alloc_frag->page) + alloc_frag->offset; in vhost_net_build_xdp()
727 copied = copy_page_from_iter(alloc_frag->page, in vhost_net_build_xdp()
728 alloc_frag->offset + in vhost_net_build_xdp()
750 copied = copy_page_from_iter(alloc_frag->page, in vhost_net_build_xdp()
751 alloc_frag->offset + pad, in vhost_net_build_xdp()
763 alloc_frag->offset += buflen; in vhost_net_build_xdp()