Home
last modified time | relevance | path

Searched refs:mm_shrink (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/
Dttm_page_alloc.c110 struct shrinker mm_shrink; member
431 manager->mm_shrink.count_objects = ttm_pool_shrink_count; in ttm_pool_mm_shrink_init()
432 manager->mm_shrink.scan_objects = ttm_pool_shrink_scan; in ttm_pool_mm_shrink_init()
433 manager->mm_shrink.seeks = 1; in ttm_pool_mm_shrink_init()
434 return register_shrinker(&manager->mm_shrink); in ttm_pool_mm_shrink_init()
439 unregister_shrinker(&manager->mm_shrink); in ttm_pool_mm_shrink_fini()
Dttm_page_alloc_dma.c167 struct shrinker mm_shrink; member
1149 manager->mm_shrink.count_objects = ttm_dma_pool_shrink_count; in ttm_dma_pool_mm_shrink_init()
1150 manager->mm_shrink.scan_objects = &ttm_dma_pool_shrink_scan; in ttm_dma_pool_mm_shrink_init()
1151 manager->mm_shrink.seeks = 1; in ttm_dma_pool_mm_shrink_init()
1152 return register_shrinker(&manager->mm_shrink); in ttm_dma_pool_mm_shrink_init()
1157 unregister_shrinker(&manager->mm_shrink); in ttm_dma_pool_mm_shrink_fini()