Lines Matching defs:caching

26 /* Pooling of allocated pages is necessary because changing the caching
132 /* Reset the caching and pages of size 1 << order */
133 static void ttm_pool_free_page(struct ttm_pool *pool, enum ttm_caching caching,
144 if (caching != ttm_cached && !PageHighMem(p))
163 /* Apply a new caching to an array of pages */
165 enum ttm_caching caching)
173 switch (caching) {
260 enum ttm_caching caching, unsigned int order)
263 pt->caching = caching;
283 ttm_pool_free_page(pt->pool, pt->caching, pt->order, p);
286 /* Return the pool_type to use for the given caching and order */
288 enum ttm_caching caching,
292 return &pool->caching[caching].orders[order];
295 switch (caching) {
298 return &pool->caching[caching].orders[order];
306 return &pool->caching[caching].orders[order];
335 ttm_pool_free_page(pt->pool, pt->caching, pt->order, p);
383 * @caching: The page caching mode used by the range.
393 enum ttm_caching caching,
408 pt = ttm_pool_select_type(pool, caching, order);
412 ttm_pool_free_page(pool, caching, order, *pages);
433 struct page **caching = tt->pages;
461 page_caching = tt->caching;
462 pt = ttm_pool_select_type(pool, tt->caching, order);
465 r = ttm_pool_apply_caching(caching, pages,
466 tt->caching);
470 caching = pages;
479 caching = pages;
492 r = ttm_pool_apply_caching(caching, pages,
493 tt->caching);
496 caching = pages;
503 caching = pages;
516 r = ttm_pool_apply_caching(caching, pages, tt->caching);
527 caching_divide = caching - tt->pages;
528 ttm_pool_free_range(pool, tt, tt->caching, 0, caching_divide);
545 ttm_pool_free_range(pool, tt, tt->caching, 0, tt->num_pages);
581 if (pt != &pool->caching[i].orders[j])
619 if (pt != &pool->caching[i].orders[j])
755 ttm_pool_debugfs_orders(pool->caching[i].orders, m);