Lines Matching refs:caching
131 static void ttm_pool_free_page(struct ttm_pool *pool, enum ttm_caching caching, in ttm_pool_free_page() argument
142 if (caching != ttm_cached && !PageHighMem(p)) in ttm_pool_free_page()
163 enum ttm_caching caching) in ttm_pool_apply_caching() argument
171 switch (caching) { in ttm_pool_apply_caching()
258 enum ttm_caching caching, unsigned int order) in ttm_pool_type_init() argument
261 pt->caching = caching; in ttm_pool_type_init()
281 ttm_pool_free_page(pt->pool, pt->caching, pt->order, p); in ttm_pool_type_fini()
286 enum ttm_caching caching, in ttm_pool_select_type() argument
290 return &pool->caching[caching].orders[order]; in ttm_pool_select_type()
293 switch (caching) { in ttm_pool_select_type()
324 ttm_pool_free_page(pt->pool, pt->caching, pt->order, p); in ttm_pool_shrink()
365 struct page **caching = tt->pages; in ttm_pool_alloc() local
392 pt = ttm_pool_select_type(pool, tt->caching, order); in ttm_pool_alloc()
412 r = ttm_pool_apply_caching(caching, pages, in ttm_pool_alloc()
413 tt->caching); in ttm_pool_alloc()
416 caching = pages + (1 << order); in ttm_pool_alloc()
430 r = ttm_pool_apply_caching(caching, pages, tt->caching); in ttm_pool_alloc()
437 ttm_pool_free_page(pool, tt->caching, order, p); in ttm_pool_alloc()
443 ttm_pool_free_page(pool, tt->caching, order, tt->pages[i]); in ttm_pool_alloc()
473 pt = ttm_pool_select_type(pool, tt->caching, order); in ttm_pool_free()
477 ttm_pool_free_page(pool, tt->caching, order, in ttm_pool_free()
512 ttm_pool_type_init(&pool->caching[i].orders[j], in ttm_pool_init()
532 ttm_pool_type_fini(&pool->caching[i].orders[j]); in ttm_pool_fini()
658 ttm_pool_debugfs_orders(pool->caching[i].orders, m); in ttm_pool_debugfs()