Home
last modified time | relevance | path

Searched refs:shrink (Results 1 – 21 of 21) 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);
1358 ttm_mem_unregister_shrink(glob->mem_glob, &glob->shrink); in ttm_bo_global_kobj_release()
1392 ttm_mem_init_shrink(&glob->shrink, ttm_bo_swapout); in ttm_bo_global_init()
1393 ret = ttm_mem_register_shrink(glob->mem_glob, &glob->shrink); in ttm_bo_global_init()
1617 static int ttm_bo_swapout(struct ttm_mem_shrink *shrink) in ttm_bo_swapout() argument
1620 container_of(shrink, struct ttm_bo_global, shrink); in ttm_bo_swapout()
1700 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.c1012 ttm_dma_pool_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in ttm_dma_pool_shrink_scan() argument
1054 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.h126 int (*shrink)(struct ion_heap *heap, gfp_t gfp_mask, int nr_to_scan); member
Dion_system_heap.c253 .shrink = ion_system_heap_shrink,
Dion.c1572 if ((heap->flags & ION_HEAP_FLAG_DEFER_FREE) || heap->ops->shrink) in ion_device_add_heap()
/drivers/staging/lustre/lustre/lov/
Dlov_merge.c114 u64 size, int shrink) in lov_adjust_kms() argument
123 if (shrink) { in lov_adjust_kms()
Dlov_internal.h135 u64 size, int shrink);
/drivers/md/bcache/
Dbtree.c661 static unsigned long bch_mca_scan(struct shrinker *shrink, in bch_mca_scan() argument
664 struct cache_set *c = container_of(shrink, struct cache_set, shrink); in bch_mca_scan()
727 static unsigned long bch_mca_count(struct shrinker *shrink, in bch_mca_count() argument
730 struct cache_set *c = container_of(shrink, struct cache_set, shrink); in bch_mca_count()
747 if (c->shrink.list.next) in bch_btree_cache_free()
748 unregister_shrinker(&c->shrink); in bch_btree_cache_free()
809 c->shrink.count_objects = bch_mca_count; in bch_btree_cache_alloc()
810 c->shrink.scan_objects = bch_mca_scan; in bch_btree_cache_alloc()
811 c->shrink.seeks = 4; in bch_btree_cache_alloc()
812 c->shrink.batch = c->btree_pages * 2; in bch_btree_cache_alloc()
[all …]
Dsysfs.c629 c->shrink.scan_objects(&c->shrink, &sc); in STORE()
Dbcache.h502 struct shrinker shrink; member
/drivers/md/
Ddm-bufio.c1558 dm_bufio_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in dm_bufio_shrink_scan() argument
1563 c = container_of(shrink, struct dm_bufio_client, shrinker); in dm_bufio_shrink_scan()
1575 dm_bufio_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in dm_bufio_shrink_count() argument
1577 struct dm_bufio_client *c = container_of(shrink, struct dm_bufio_client, shrinker); in dm_bufio_shrink_count()
Draid5.c6474 static unsigned long raid5_cache_scan(struct shrinker *shrink, in raid5_cache_scan() argument
6477 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker); in raid5_cache_scan()
6495 static unsigned long raid5_cache_count(struct shrinker *shrink, in raid5_cache_count() argument
6498 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker); in raid5_cache_count()
/drivers/staging/android/
Dashmem.c461 ashmem_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in ashmem_shrink_scan() argument
492 ashmem_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in ashmem_shrink_count() argument
/drivers/md/persistent-data/
Ddm-array.c451 static int shrink(struct resize *resize) in shrink() function
665 r = ((new_size > old_size) ? grow : shrink)(&resize); in array_resize()
/drivers/android/
Dbinder_alloc.c979 binder_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in binder_shrink_count() argument
986 binder_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in binder_shrink_scan() argument
/drivers/infiniband/hw/mlx5/
Dmr.c468 int shrink = 0; in free_cached_mr() local
481 shrink = 1; in free_cached_mr()
484 if (shrink) in free_cached_mr()
/drivers/staging/lustre/lustre/include/
Dobd_class.h1146 int shrink) in obd_adjust_kms() argument
1153 rc = OBP(exp->exp_obd, adjust_kms)(exp, lsm, size, shrink); in obd_adjust_kms()
Dobd.h1041 u64 size, int shrink);