Home
last modified time | relevance | path

Searched refs:shrink (Results 1 – 17 of 17) sorted by relevance

/drivers/gpu/drm/ttm/
Dttm_memory.c217 struct ttm_mem_shrink *shrink; in ttm_shrink() local
220 if (glob->shrink == NULL) in ttm_shrink()
224 shrink = glob->shrink; in ttm_shrink()
226 ret = shrink->do_shrink(shrink); in ttm_shrink()
Dttm_bo.c49 static int ttm_bo_swapout(struct ttm_mem_shrink *shrink);
1426 ttm_mem_unregister_shrink(glob->mem_glob, &glob->shrink); in ttm_bo_global_kobj_release()
1460 ttm_mem_init_shrink(&glob->shrink, ttm_bo_swapout); in ttm_bo_global_init()
1461 ret = ttm_mem_register_shrink(glob->mem_glob, &glob->shrink); in ttm_bo_global_init()
1661 static int ttm_bo_swapout(struct ttm_mem_shrink *shrink) in ttm_bo_swapout() argument
1664 container_of(shrink, struct ttm_bo_global, shrink); in ttm_bo_swapout()
1747 while (ttm_bo_swapout(&bdev->glob->shrink) == 0) in ttm_bo_swapout_all()
Dttm_page_alloc.c395 ttm_pool_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in ttm_pool_shrink_scan() argument
424 ttm_pool_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in ttm_pool_shrink_count() argument
Dttm_page_alloc_dma.c1010 ttm_dma_pool_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in ttm_dma_pool_shrink_scan() argument
1052 ttm_dma_pool_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in ttm_dma_pool_shrink_count() argument
/drivers/staging/android/ion/
Dion_heap.c276 if (heap->ops->shrink) in ion_heap_shrink_count()
277 total += heap->ops->shrink(heap, sc->gfp_mask, 0); in ion_heap_shrink_count()
304 if (heap->ops->shrink) in ion_heap_shrink_scan()
305 freed += heap->ops->shrink(heap, sc->gfp_mask, to_scan); in ion_heap_shrink_scan()
Dion_priv.h183 int (*shrink)(struct ion_heap *heap, gfp_t gfp_mask, int nr_to_scan); member
Dion_system_heap.c260 .shrink = ion_system_heap_shrink,
Dion.c1375 if ((heap->flags & ION_HEAP_FLAG_DEFER_FREE) || heap->ops->shrink) in ion_device_add_heap()
/drivers/md/bcache/
Dbtree.c656 static unsigned long bch_mca_scan(struct shrinker *shrink, in bch_mca_scan() argument
659 struct cache_set *c = container_of(shrink, struct cache_set, shrink); in bch_mca_scan()
720 static unsigned long bch_mca_count(struct shrinker *shrink, in bch_mca_count() argument
723 struct cache_set *c = container_of(shrink, struct cache_set, shrink); in bch_mca_count()
740 if (c->shrink.list.next) in bch_btree_cache_free()
741 unregister_shrinker(&c->shrink); in bch_btree_cache_free()
802 c->shrink.count_objects = bch_mca_count; in bch_btree_cache_alloc()
803 c->shrink.scan_objects = bch_mca_scan; in bch_btree_cache_alloc()
804 c->shrink.seeks = 4; in bch_btree_cache_alloc()
805 c->shrink.batch = c->btree_pages * 2; in bch_btree_cache_alloc()
[all …]
Dsysfs.c624 c->shrink.scan_objects(&c->shrink, &sc); in STORE()
Dbcache.h502 struct shrinker shrink; member
/drivers/staging/android/
Dashmem.c440 ashmem_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in ashmem_shrink_scan() argument
471 ashmem_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in ashmem_shrink_count() argument
/drivers/md/
Ddm-bufio.c1574 dm_bufio_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in dm_bufio_shrink_scan() argument
1579 c = container_of(shrink, struct dm_bufio_client, shrinker); in dm_bufio_shrink_scan()
1591 dm_bufio_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in dm_bufio_shrink_count() argument
1597 c = container_of(shrink, struct dm_bufio_client, shrinker); in dm_bufio_shrink_count()
Draid5.c6442 static unsigned long raid5_cache_scan(struct shrinker *shrink, in raid5_cache_scan() argument
6445 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker); in raid5_cache_scan()
6463 static unsigned long raid5_cache_count(struct shrinker *shrink, in raid5_cache_count() argument
6466 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker); in raid5_cache_count()
/drivers/android/
Dbinder_alloc.c975 binder_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in binder_shrink_count() argument
982 binder_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in binder_shrink_scan() argument
/drivers/md/persistent-data/
Ddm-array.c465 static int shrink(struct resize *resize) in shrink() function
679 r = ((new_size > old_size) ? grow : shrink)(&resize); in array_resize()
/drivers/infiniband/hw/mlx5/
Dmr.c499 int shrink = 0; in free_cached_mr() local
512 shrink = 1; in free_cached_mr()
515 if (shrink) in free_cached_mr()