Searched refs:shrink_pages (Results 1 – 2 of 2) sorted by relevance
384 int shrink_pages = sc->nr_to_scan; in ttm_pool_shrink_scan() local393 unsigned nr_free = shrink_pages; in ttm_pool_shrink_scan()396 if (shrink_pages == 0) in ttm_pool_shrink_scan()403 shrink_pages = ttm_page_pool_free(pool, nr_free_pool, true); in ttm_pool_shrink_scan()404 freed += (nr_free_pool - shrink_pages) << pool->order; in ttm_pool_shrink_scan()407 shrink_pages <<= pool->order; in ttm_pool_shrink_scan()
1098 unsigned shrink_pages = sc->nr_to_scan; in ttm_dma_pool_shrink_scan() local1115 if (shrink_pages == 0) in ttm_dma_pool_shrink_scan()1120 nr_free = shrink_pages; in ttm_dma_pool_shrink_scan()1122 shrink_pages = ttm_dma_page_pool_free(p->pool, nr_free, true); in ttm_dma_pool_shrink_scan()1123 freed += nr_free - shrink_pages; in ttm_dma_pool_shrink_scan()1127 nr_free, shrink_pages); in ttm_dma_pool_shrink_scan()