Lines Matching +full:compound +full:- +full:device
1 // SPDX-License-Identifier: GPL-2.0-only
5 * An arbitrary-length arbitrary-offset area of memory which resides within a
10 * fragments. This is used by the network stack and network device drivers to
11 * provide a backing region of memory for use as either an sk_buff->head, or to
67 nc->encoded_page = page ? in __page_frag_cache_refill()
75 if (!nc->encoded_page) in page_frag_cache_drain()
78 __page_frag_cache_drain(encoded_page_decode_page(nc->encoded_page), in page_frag_cache_drain()
79 nc->pagecnt_bias); in page_frag_cache_drain()
80 nc->encoded_page = 0; in page_frag_cache_drain()
97 unsigned long encoded_page = nc->encoded_page; in __page_frag_alloc_align()
107 encoded_page = nc->encoded_page; in __page_frag_alloc_align()
115 nc->pagecnt_bias = PAGE_FRAG_CACHE_MAX_SIZE + 1; in __page_frag_alloc_align()
116 nc->offset = 0; in __page_frag_alloc_align()
120 offset = __ALIGN_KERNEL_MASK(nc->offset, ~align_mask); in __page_frag_alloc_align()
137 if (!page_ref_sub_and_test(page, nc->pagecnt_bias)) in __page_frag_alloc_align()
150 nc->pagecnt_bias = PAGE_FRAG_CACHE_MAX_SIZE + 1; in __page_frag_alloc_align()
154 nc->pagecnt_bias--; in __page_frag_alloc_align()
155 nc->offset = offset + fragsz; in __page_frag_alloc_align()
162 * Frees a page fragment allocated out of either a compound or order 0 page.