Lines Matching refs:freed_pages
286 unsigned freed_pages) in ttm_pool_update_free_locked() argument
288 pool->npages -= freed_pages; in ttm_pool_update_free_locked()
289 pool->nfrees += freed_pages; in ttm_pool_update_free_locked()
306 unsigned freed_pages = 0, in ttm_page_pool_free() local
323 if (freed_pages >= npages_to_free) in ttm_page_pool_free()
326 pages_to_free[freed_pages++] = p; in ttm_page_pool_free()
328 if (freed_pages >= NUM_PAGES_TO_ALLOC) { in ttm_page_pool_free()
332 ttm_pool_update_free_locked(pool, freed_pages); in ttm_page_pool_free()
339 ttm_pages_put(pages_to_free, freed_pages); in ttm_page_pool_free()
341 nr_free -= freed_pages; in ttm_page_pool_free()
348 freed_pages = 0; in ttm_page_pool_free()
364 if (freed_pages) { in ttm_page_pool_free()
367 ttm_pool_update_free_locked(pool, freed_pages); in ttm_page_pool_free()
368 nr_free -= freed_pages; in ttm_page_pool_free()
373 if (freed_pages) in ttm_page_pool_free()
374 ttm_pages_put(pages_to_free, freed_pages); in ttm_page_pool_free()