Lines Matching refs:tpage
2436 static void tun_put_page(struct tun_page *tpage) in tun_put_page() argument
2438 if (tpage->page) in tun_put_page()
2439 __page_frag_cache_drain(tpage->page, tpage->count); in tun_put_page()
2445 struct tun_page *tpage) in tun_xdp_one() argument
2489 if (tpage->page == page) { in tun_xdp_one()
2490 ++tpage->count; in tun_xdp_one()
2492 tun_put_page(tpage); in tun_xdp_one()
2493 tpage->page = page; in tun_xdp_one()
2494 tpage->count = 1; in tun_xdp_one()
2578 struct tun_page tpage; in tun_sendmsg() local
2582 memset(&tpage, 0, sizeof(tpage)); in tun_sendmsg()
2590 ret = tun_xdp_one(tun, tfile, xdp, &flush, &tpage); in tun_sendmsg()
2605 tun_put_page(&tpage); in tun_sendmsg()