/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); 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()
|
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 | 1010 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/ |
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 | 183 int (*shrink)(struct ion_heap *heap, gfp_t gfp_mask, int nr_to_scan); member
|
D | ion_system_heap.c | 260 .shrink = ion_system_heap_shrink,
|
D | ion.c | 1375 if ((heap->flags & ION_HEAP_FLAG_DEFER_FREE) || heap->ops->shrink) in ion_device_add_heap()
|
/drivers/md/bcache/ |
D | btree.c | 656 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 …]
|
D | sysfs.c | 624 c->shrink.scan_objects(&c->shrink, &sc); in STORE()
|
D | bcache.h | 502 struct shrinker shrink; member
|
/drivers/staging/android/ |
D | ashmem.c | 440 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/ |
D | dm-bufio.c | 1574 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()
|
D | raid5.c | 6442 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/ |
D | binder_alloc.c | 975 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/ |
D | dm-array.c | 465 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/ |
D | mr.c | 499 int shrink = 0; in free_cached_mr() local 512 shrink = 1; in free_cached_mr() 515 if (shrink) in free_cached_mr()
|