/drivers/gpu/drm/ttm/ |
D | ttm_memory.c | 217 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()
|
D | ttm_bo.c | 49 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()
|
D | ttm_page_alloc.c | 395 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
|
D | ttm_page_alloc_dma.c | 1012 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/ |
D | ion_heap.c | 276 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()
|
D | ion_priv.h | 126 int (*shrink)(struct ion_heap *heap, gfp_t gfp_mask, int nr_to_scan); member
|
D | ion_system_heap.c | 253 .shrink = ion_system_heap_shrink,
|
D | ion.c | 1572 if ((heap->flags & ION_HEAP_FLAG_DEFER_FREE) || heap->ops->shrink) in ion_device_add_heap()
|
/drivers/staging/lustre/lustre/lov/ |
D | lov_merge.c | 114 u64 size, int shrink) in lov_adjust_kms() argument 123 if (shrink) { in lov_adjust_kms()
|
D | lov_internal.h | 135 u64 size, int shrink);
|
/drivers/md/bcache/ |
D | btree.c | 661 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 …]
|
D | sysfs.c | 629 c->shrink.scan_objects(&c->shrink, &sc); in STORE()
|
D | bcache.h | 502 struct shrinker shrink; member
|
/drivers/md/ |
D | dm-bufio.c | 1558 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()
|
D | raid5.c | 6474 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/ |
D | ashmem.c | 461 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/ |
D | dm-array.c | 451 static int shrink(struct resize *resize) in shrink() function 665 r = ((new_size > old_size) ? grow : shrink)(&resize); in array_resize()
|
/drivers/android/ |
D | binder_alloc.c | 979 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/ |
D | mr.c | 468 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/ |
D | obd_class.h | 1146 int shrink) in obd_adjust_kms() argument 1153 rc = OBP(exp->exp_obd, adjust_kms)(exp, lsm, size, shrink); in obd_adjust_kms()
|
D | obd.h | 1041 u64 size, int shrink);
|