Lines Matching refs:npages
379 struct page *pages[], unsigned npages) in ttm_dma_pages_put() argument
384 if (npages && !(pool->type & IS_CACHED) && in ttm_dma_pages_put()
385 set_pages_array_wb(pages, npages)) in ttm_dma_pages_put()
387 pool->dev_name, npages); in ttm_dma_pages_put()
943 unsigned count = 0, i, npages = 0; in ttm_dma_unpopulate() local
967 npages = count; in ttm_dma_unpopulate()
969 npages = pool->npages_free - _manager->options.max_size; in ttm_dma_unpopulate()
972 if (npages < NUM_PAGES_TO_ALLOC) in ttm_dma_unpopulate()
973 npages = NUM_PAGES_TO_ALLOC; in ttm_dma_unpopulate()
998 if (npages) in ttm_dma_unpopulate()
999 ttm_dma_page_pool_free(pool, npages); in ttm_dma_unpopulate()