Lines Matching refs:nr_free
302 static int ttm_page_pool_free(struct ttm_page_pool *pool, unsigned nr_free, in ttm_page_pool_free() argument
310 npages_to_free = nr_free; in ttm_page_pool_free()
312 if (NUM_PAGES_TO_ALLOC < nr_free) in ttm_page_pool_free()
346 if (likely(nr_free != FREE_ALL_PAGES)) in ttm_page_pool_free()
347 nr_free -= freed_pages; in ttm_page_pool_free()
349 if (NUM_PAGES_TO_ALLOC >= nr_free) in ttm_page_pool_free()
350 npages_to_free = nr_free; in ttm_page_pool_free()
357 if (nr_free) in ttm_page_pool_free()
374 nr_free -= freed_pages; in ttm_page_pool_free()
384 return nr_free; in ttm_page_pool_free()
410 unsigned nr_free = shrink_pages; in ttm_pool_shrink_scan() local
415 shrink_pages = ttm_page_pool_free(pool, nr_free, true); in ttm_pool_shrink_scan()
416 freed += nr_free - shrink_pages; in ttm_pool_shrink_scan()