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()
326 ttm_pool_free_page(pt->pool, pt->caching, pt->order, p); in ttm_pool_shrink()
364 struct page **caching = tt->pages; in ttm_pool_alloc() local
391 pt = ttm_pool_select_type(pool, tt->caching, order); in ttm_pool_alloc()
411 r = ttm_pool_apply_caching(caching, pages, in ttm_pool_alloc()
412 tt->caching); in ttm_pool_alloc()
415 caching = pages + (1 << order); in ttm_pool_alloc()
429 r = ttm_pool_apply_caching(caching, pages, tt->caching); in ttm_pool_alloc()
436 ttm_pool_free_page(pool, tt->caching, order, p); in ttm_pool_alloc()
442 ttm_pool_free_page(pool, tt->caching, order, tt->pages[i]); in ttm_pool_alloc()
472 pt = ttm_pool_select_type(pool, tt->caching, order); in ttm_pool_free()
476 ttm_pool_free_page(pool, tt->caching, order, in ttm_pool_free()
511 ttm_pool_type_init(&pool->caching[i].orders[j], in ttm_pool_init()
531 ttm_pool_type_fini(&pool->caching[i].orders[j]); in ttm_pool_fini()
662 ttm_pool_debugfs_orders(pool->caching[i].orders, m); in ttm_pool_debugfs()