• Home
  • Raw
  • Download

Lines Matching full: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, in ttm_pool_free_page() argument
143 if (caching != ttm_cached && !PageHighMem(p)) in ttm_pool_free_page()
162 /* Apply a new caching to an array of pages */
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()
285 /* Return the pool_type to use for the given caching and order */
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()
327 ttm_pool_free_page(pt->pool, pt->caching, pt->order, p); in ttm_pool_shrink()
374 * @caching: The page caching mode used by the range.
384 enum ttm_caching caching, in ttm_pool_free_range() argument
399 pt = ttm_pool_select_type(pool, caching, order); in ttm_pool_free_range()
403 ttm_pool_free_page(pool, caching, order, *pages); in ttm_pool_free_range()
424 struct page **caching = tt->pages; in ttm_pool_alloc() local
452 page_caching = tt->caching; in ttm_pool_alloc()
453 pt = ttm_pool_select_type(pool, tt->caching, order); in ttm_pool_alloc()
456 r = ttm_pool_apply_caching(caching, pages, in ttm_pool_alloc()
457 tt->caching); in ttm_pool_alloc()
461 caching = pages; in ttm_pool_alloc()
470 caching = pages; in ttm_pool_alloc()
483 r = ttm_pool_apply_caching(caching, pages, in ttm_pool_alloc()
484 tt->caching); in ttm_pool_alloc()
487 caching = pages; in ttm_pool_alloc()
494 caching = pages; in ttm_pool_alloc()
507 r = ttm_pool_apply_caching(caching, pages, tt->caching); in ttm_pool_alloc()
518 caching_divide = caching - tt->pages; in ttm_pool_alloc()
519 ttm_pool_free_range(pool, tt, tt->caching, 0, caching_divide); in ttm_pool_alloc()
536 ttm_pool_free_range(pool, tt, tt->caching, 0, tt->num_pages); in ttm_pool_free()
569 ttm_pool_type_init(&pool->caching[i].orders[j], in ttm_pool_init()
590 ttm_pool_type_fini(&pool->caching[i].orders[j]); in ttm_pool_fini()
722 ttm_pool_debugfs_orders(pool->caching[i].orders, m); in ttm_pool_debugfs()