Lines Matching defs:caching

26 /* Pooling of allocated pages is necessary because changing the caching
139 /* Reset the caching and pages of size 1 << order */
140 static void ttm_pool_free_page(struct ttm_pool *pool, enum ttm_caching caching,
151 if (caching != ttm_cached && !PageHighMem(p))
232 static void ttm_pool_free_page(struct ttm_pool *pool, enum ttm_caching caching,
241 if (caching != ttm_cached && !PageHighMem(p))
254 /* Apply a new caching to an array of pages */
256 enum ttm_caching caching)
264 switch (caching) {
388 enum ttm_caching caching, unsigned int order)
391 pt->caching = caching;
413 ttm_pool_free_page(pt->pool, pt->caching, pt->order, p);
422 /* Return the pool_type to use for the given caching and order */
424 enum ttm_caching caching,
428 return &pool->caching[caching].orders[order];
431 switch (caching) {
434 return &pool->caching[caching].orders[order];
442 return &pool->caching[caching].orders[order];
470 ttm_pool_free_page(pt->pool, pt->caching, pt->order, p);
524 * @caching: The page caching mode used by the range.
534 enum ttm_caching caching,
549 pt = ttm_pool_select_type(pool, caching, order);
553 ttm_pool_free_page(pool, caching, order, *pages);
574 struct vm_page **caching = tt->pages;
605 page_caching = tt->caching;
606 pt = ttm_pool_select_type(pool, tt->caching, order);
609 r = ttm_pool_apply_caching(caching, pages,
610 tt->caching);
614 caching = pages;
623 caching = pages;
636 r = ttm_pool_apply_caching(caching, pages,
637 tt->caching);
640 caching = pages;
647 caching = pages;
660 r = ttm_pool_apply_caching(caching, pages, tt->caching);
671 caching_divide = caching - tt->pages;
672 ttm_pool_free_range(pool, tt, tt->caching, 0, caching_divide);
689 ttm_pool_free_range(pool, tt, tt->caching, 0, tt->num_pages);
725 if (pt != &pool->caching[i].orders[j])
751 if (pt != &pool->caching[i].orders[j])
894 ttm_pool_debugfs_orders(pool->caching[i].orders, m);