Lines Matching refs:caching

132 static void ttm_pool_free_page(struct ttm_pool *pool, enum ttm_caching caching,  in ttm_pool_free_page()  argument
143 if (caching != ttm_cached && !PageHighMem(p)) in ttm_pool_free_page()
164 enum ttm_caching caching) in ttm_pool_apply_caching() argument
172 switch (caching) { in ttm_pool_apply_caching()
259 enum ttm_caching caching, unsigned int order) in ttm_pool_type_init() argument
262 pt->caching = caching; in ttm_pool_type_init()
282 ttm_pool_free_page(pt->pool, pt->caching, pt->order, p); in ttm_pool_type_fini()
287 enum ttm_caching caching, in ttm_pool_select_type() argument
291 return &pool->caching[caching].orders[order]; in ttm_pool_select_type()
294 switch (caching) { in ttm_pool_select_type()
297 return &pool->caching[caching].orders[order]; in ttm_pool_select_type()
305 return &pool->caching[caching].orders[order]; in ttm_pool_select_type()
333 ttm_pool_free_page(pt->pool, pt->caching, pt->order, p); in ttm_pool_shrink()
390 enum ttm_caching caching, in ttm_pool_free_range() argument
405 pt = ttm_pool_select_type(pool, caching, order); in ttm_pool_free_range()
409 ttm_pool_free_page(pool, caching, order, *pages); in ttm_pool_free_range()
430 struct page **caching = tt->pages; in ttm_pool_alloc() local
458 page_caching = tt->caching; in ttm_pool_alloc()
459 pt = ttm_pool_select_type(pool, tt->caching, order); in ttm_pool_alloc()
462 r = ttm_pool_apply_caching(caching, pages, in ttm_pool_alloc()
463 tt->caching); in ttm_pool_alloc()
467 caching = pages; in ttm_pool_alloc()
476 caching = pages; in ttm_pool_alloc()
489 r = ttm_pool_apply_caching(caching, pages, in ttm_pool_alloc()
490 tt->caching); in ttm_pool_alloc()
493 caching = pages; in ttm_pool_alloc()
500 caching = pages; in ttm_pool_alloc()
513 r = ttm_pool_apply_caching(caching, pages, tt->caching); in ttm_pool_alloc()
524 caching_divide = caching - tt->pages; in ttm_pool_alloc()
525 ttm_pool_free_range(pool, tt, tt->caching, 0, caching_divide); in ttm_pool_alloc()
542 ttm_pool_free_range(pool, tt, tt->caching, 0, tt->num_pages); in ttm_pool_free()
578 if (pt != &pool->caching[i].orders[j]) in ttm_pool_init()
604 if (pt != &pool->caching[i].orders[j]) in ttm_pool_fini()
740 ttm_pool_debugfs_orders(pool->caching[i].orders, m); in ttm_pool_debugfs()