Lines Matching refs:cpages
307 struct page **pages, unsigned cpages) in ttm_set_pages_caching() argument
312 r = set_pages_array_uc(pages, cpages); in ttm_set_pages_caching()
315 pool->dev_name, cpages); in ttm_set_pages_caching()
318 r = set_pages_array_wc(pages, cpages); in ttm_set_pages_caching()
321 pool->dev_name, cpages); in ttm_set_pages_caching()
675 unsigned cpages) in ttm_dma_handle_caching_state_failure() argument
691 if (++i < cpages) in ttm_dma_handle_caching_state_failure()
713 unsigned i, cpages; in ttm_dma_pool_alloc_new_pages() local
731 for (i = 0, cpages = 0; i < count; ++i) { in ttm_dma_pool_alloc_new_pages()
739 if (cpages) { in ttm_dma_pool_alloc_new_pages()
741 cpages); in ttm_dma_pool_alloc_new_pages()
745 cpages); in ttm_dma_pool_alloc_new_pages()
758 caching_array[cpages++] = p; in ttm_dma_pool_alloc_new_pages()
759 if (cpages == max_cpages) { in ttm_dma_pool_alloc_new_pages()
762 cpages); in ttm_dma_pool_alloc_new_pages()
766 cpages); in ttm_dma_pool_alloc_new_pages()
769 cpages = 0; in ttm_dma_pool_alloc_new_pages()
775 if (cpages) { in ttm_dma_pool_alloc_new_pages()
776 r = ttm_set_pages_caching(pool, caching_array, cpages); in ttm_dma_pool_alloc_new_pages()
779 caching_array, cpages); in ttm_dma_pool_alloc_new_pages()
815 unsigned cpages = 0; in ttm_dma_page_pool_fill_locked() local
821 cpages++; in ttm_dma_page_pool_fill_locked()
824 pool->npages_free += cpages; in ttm_dma_page_pool_fill_locked()
825 r = cpages; in ttm_dma_page_pool_fill_locked()