Lines Matching refs:caching
26 /* Pooling of allocated pages is necessary because changing the caching
131 /* Reset the caching and pages of size 1 << order */
132 static void ttm_pool_free_page(struct ttm_pool *pool, enum ttm_caching caching,
143 if (caching != ttm_cached && !PageHighMem(p))
162 /* Apply a new caching to an array of pages */
164 enum ttm_caching caching)
172 switch (caching) {
259 enum ttm_caching caching, unsigned int order)
262 pt->caching = caching;
282 ttm_pool_free_page(pt->pool, pt->caching, pt->order, p);
285 /* Return the pool_type to use for the given caching and order */
287 enum ttm_caching caching,
291 return &pool->caching[caching].orders[order];
294 switch (caching) {
327 ttm_pool_free_page(pt->pool, pt->caching, pt->order, p);
374 * @caching: The page caching mode used by the range.
384 enum ttm_caching caching,
399 pt = ttm_pool_select_type(pool, caching, order);
403 ttm_pool_free_page(pool, caching, order, *pages);
424 struct page **caching = tt->pages;
452 page_caching = tt->caching;
453 pt = ttm_pool_select_type(pool, tt->caching, order);
456 r = ttm_pool_apply_caching(caching, pages,
457 tt->caching);
461 caching = pages;
470 caching = pages;
483 r = ttm_pool_apply_caching(caching, pages,
484 tt->caching);
487 caching = pages;
494 caching = pages;
507 r = ttm_pool_apply_caching(caching, pages, tt->caching);
518 caching_divide = caching - tt->pages;
519 ttm_pool_free_range(pool, tt, tt->caching, 0, caching_divide);
536 ttm_pool_free_range(pool, tt, tt->caching, 0, tt->num_pages);
569 ttm_pool_type_init(&pool->caching[i].orders[j],
590 ttm_pool_type_fini(&pool->caching[i].orders[j]);
722 ttm_pool_debugfs_orders(pool->caching[i].orders, m);