Lines Matching refs:nc
49 static struct page *__page_frag_cache_refill(struct page_frag_cache *nc, in __page_frag_cache_refill() argument
67 nc->encoded_page = page ? in __page_frag_cache_refill()
73 void page_frag_cache_drain(struct page_frag_cache *nc) in page_frag_cache_drain() argument
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()
93 void *__page_frag_alloc_align(struct page_frag_cache *nc, in __page_frag_alloc_align() argument
97 unsigned long encoded_page = nc->encoded_page; in __page_frag_alloc_align()
103 page = __page_frag_cache_refill(nc, gfp_mask); 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()