Home
last modified time | relevance | path

Searched refs:pages_to_free (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/
Dttm_page_alloc.c289 struct page **pages_to_free; in ttm_page_pool_free() local
297 pages_to_free = static_buf; in ttm_page_pool_free()
299 pages_to_free = kmalloc_array(npages_to_free, in ttm_page_pool_free()
302 if (!pages_to_free) { in ttm_page_pool_free()
314 pages_to_free[freed_pages++] = p; in ttm_page_pool_free()
327 ttm_pages_put(pages_to_free, freed_pages, pool->order); in ttm_page_pool_free()
362 ttm_pages_put(pages_to_free, freed_pages, pool->order); in ttm_page_pool_free()
364 if (pages_to_free != static_buf) in ttm_page_pool_free()
365 kfree(pages_to_free); in ttm_page_pool_free()
Dttm_page_alloc_dma.c409 struct page **pages_to_free; in ttm_dma_page_pool_free() local
418 pages_to_free = static_buf; in ttm_dma_page_pool_free()
420 pages_to_free = kmalloc_array(npages_to_free, in ttm_dma_page_pool_free()
424 if (!pages_to_free) { in ttm_dma_page_pool_free()
442 pages_to_free[freed_pages++] = dma_p->p; in ttm_dma_page_pool_free()
453 ttm_dma_pages_put(pool, &d_pages, pages_to_free, in ttm_dma_page_pool_free()
490 ttm_dma_pages_put(pool, &d_pages, pages_to_free, freed_pages); in ttm_dma_page_pool_free()
492 if (pages_to_free != static_buf) in ttm_dma_page_pool_free()
493 kfree(pages_to_free); in ttm_dma_page_pool_free()
/kernel/linux/linux-5.10/mm/
Dswap.c879 LIST_HEAD(pages_to_free); in release_pages()
952 list_add(&page->lru, &pages_to_free); in release_pages()
957 mem_cgroup_uncharge_list(&pages_to_free); in release_pages()
958 free_unref_page_list(&pages_to_free); in release_pages()
Dzsmalloc.c2322 unsigned long pages_to_free = 0; in zs_shrinker_count() local
2333 pages_to_free += zs_can_compact(class); in zs_shrinker_count()
2336 return pages_to_free; in zs_shrinker_count()
Dvmscan.c1792 LIST_HEAD(pages_to_free); in move_pages_to_lru()
1829 list_add(&page->lru, &pages_to_free); in move_pages_to_lru()
1855 list_splice(&pages_to_free, list); in move_pages_to_lru()
/kernel/linux/linux-5.10/drivers/virtio/
Dvirtio_balloon.c823 unsigned long pages_to_free) in shrink_free_pages() argument
827 pages_to_free = round_up(pages_to_free, in shrink_free_pages()
829 blocks_to_free = pages_to_free / VIRTIO_BALLOON_HINT_BLOCK_PAGES; in shrink_free_pages()