Lines Matching refs:pages
235 list_add(&p->lru, &pt->pages); in ttm_pool_type_give()
246 p = list_first_entry_or_null(&pt->pages, typeof(*p), lru); in ttm_pool_type_take()
264 INIT_LIST_HEAD(&pt->pages); in ttm_pool_type_init()
352 struct page ***pages) in ttm_pool_page_allocated() argument
364 for (i = 1 << order; i; --i, ++(*pages), ++p) in ttm_pool_page_allocated()
365 **pages = p; in ttm_pool_page_allocated()
387 struct page **pages = &tt->pages[start_page]; in ttm_pool_free_range() local
391 for (i = start_page; i < end_page; i += nr, pages += nr) { in ttm_pool_free_range()
394 order = ttm_pool_page_order(pool, *pages); in ttm_pool_free_range()
401 ttm_pool_type_give(pt, *pages); 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()
425 struct page **pages = tt->pages; in ttm_pool_alloc() local
456 r = ttm_pool_apply_caching(caching, pages, in ttm_pool_alloc()
461 caching = pages; in ttm_pool_alloc()
466 &pages); in ttm_pool_alloc()
470 caching = pages; in ttm_pool_alloc()
483 r = ttm_pool_apply_caching(caching, pages, in ttm_pool_alloc()
487 caching = pages; in ttm_pool_alloc()
490 &num_pages, &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()
622 list_for_each_entry(p, &pt->pages, lru) in ttm_pool_type_count()