Home
last modified time | relevance | path

Searched refs:shrinker (Results 1 – 20 of 20) sorted by relevance

/drivers/gpu/drm/msm/
Dmsm_gem_shrinker.c49 msm_gem_shrinker_count(struct shrinker *shrinker, struct shrink_control *sc) in msm_gem_shrinker_count() argument
52 container_of(shrinker, struct msm_drm_private, shrinker); in msm_gem_shrinker_count()
73 msm_gem_shrinker_scan(struct shrinker *shrinker, struct shrink_control *sc) in msm_gem_shrinker_scan() argument
76 container_of(shrinker, struct msm_drm_private, shrinker); in msm_gem_shrinker_scan()
148 priv->shrinker.count_objects = msm_gem_shrinker_count; in msm_gem_shrinker_init()
149 priv->shrinker.scan_objects = msm_gem_shrinker_scan; in msm_gem_shrinker_init()
150 priv->shrinker.seeks = DEFAULT_SEEKS; in msm_gem_shrinker_init()
151 WARN_ON(register_shrinker(&priv->shrinker)); in msm_gem_shrinker_init()
167 if (priv->shrinker.nr_deferred) { in msm_gem_shrinker_cleanup()
169 unregister_shrinker(&priv->shrinker); in msm_gem_shrinker_cleanup()
Dmsm_drv.h157 struct shrinker shrinker; member
/drivers/gpu/drm/i915/
Di915_gem_shrinker.c255 i915_gem_shrinker_count(struct shrinker *shrinker, struct shrink_control *sc) in i915_gem_shrinker_count() argument
258 container_of(shrinker, struct drm_i915_private, mm.shrinker); in i915_gem_shrinker_count()
286 i915_gem_shrinker_scan(struct shrinker *shrinker, struct shrink_control *sc) in i915_gem_shrinker_scan() argument
289 container_of(shrinker, struct drm_i915_private, mm.shrinker); in i915_gem_shrinker_scan()
452 dev_priv->mm.shrinker.scan_objects = i915_gem_shrinker_scan; in i915_gem_shrinker_init()
453 dev_priv->mm.shrinker.count_objects = i915_gem_shrinker_count; in i915_gem_shrinker_init()
454 dev_priv->mm.shrinker.seeks = DEFAULT_SEEKS; in i915_gem_shrinker_init()
455 WARN_ON(register_shrinker(&dev_priv->mm.shrinker)); in i915_gem_shrinker_init()
474 unregister_shrinker(&dev_priv->mm.shrinker); in i915_gem_shrinker_cleanup()
Di915_drv.h1350 struct shrinker shrinker; member
/drivers/staging/android/ion/
Dion_heap.c268 static unsigned long ion_heap_shrink_count(struct shrinker *shrinker, in ion_heap_shrink_count() argument
271 struct ion_heap *heap = container_of(shrinker, struct ion_heap, in ion_heap_shrink_count()
272 shrinker); in ion_heap_shrink_count()
281 static unsigned long ion_heap_shrink_scan(struct shrinker *shrinker, in ion_heap_shrink_scan() argument
284 struct ion_heap *heap = container_of(shrinker, struct ion_heap, in ion_heap_shrink_scan()
285 shrinker); in ion_heap_shrink_scan()
311 heap->shrinker.count_objects = ion_heap_shrink_count; in ion_heap_init_shrinker()
312 heap->shrinker.scan_objects = ion_heap_shrink_scan; in ion_heap_init_shrinker()
313 heap->shrinker.seeks = DEFAULT_SEEKS; in ion_heap_init_shrinker()
314 heap->shrinker.batch = 0; in ion_heap_init_shrinker()
[all …]
Dion_priv.h235 struct shrinker shrinker; member
Dion.c1336 objs = heap->shrinker.count_objects(&heap->shrinker, &sc); in debug_shrink_set()
1340 heap->shrinker.scan_objects(&heap->shrinker, &sc); in debug_shrink_set()
1353 objs = heap->shrinker.count_objects(&heap->shrinker, &sc); in debug_shrink_get()
1398 if (heap->shrinker.count_objects && heap->shrinker.scan_objects) { in ion_device_add_heap()
/drivers/staging/android/
Dlowmemorykiller.c75 static unsigned long lowmem_count(struct shrinker *s, in lowmem_count()
84 static unsigned long lowmem_scan(struct shrinker *s, struct shrink_control *sc) in lowmem_scan()
198 static struct shrinker lowmem_shrinker = {
Dashmem.c440 ashmem_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in ashmem_shrink_scan()
471 ashmem_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in ashmem_shrink_count()
481 static struct shrinker ashmem_shrinker = {
/drivers/md/
Ddm-bufio.c115 struct shrinker shrinker; member
1574 dm_bufio_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in dm_bufio_shrink_scan()
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()
1597 c = container_of(shrink, struct dm_bufio_client, shrinker); in dm_bufio_shrink_count()
1703 c->shrinker.count_objects = dm_bufio_shrink_count; in dm_bufio_client_create()
1704 c->shrinker.scan_objects = dm_bufio_shrink_scan; in dm_bufio_client_create()
1705 c->shrinker.seeks = 1; in dm_bufio_client_create()
1706 c->shrinker.batch = 0; in dm_bufio_client_create()
1707 register_shrinker(&c->shrinker); in dm_bufio_client_create()
[all …]
Draid5.h539 struct shrinker shrinker; member
Draid5.c6400 if (conf->shrinker.nr_deferred) in free_conf()
6401 unregister_shrinker(&conf->shrinker); in free_conf()
6442 static unsigned long raid5_cache_scan(struct shrinker *shrink, in raid5_cache_scan()
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()
6466 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker); in raid5_cache_count()
6657 conf->shrinker.seeks = DEFAULT_SEEKS * conf->raid_disks * 4; in setup_conf()
6658 conf->shrinker.scan_objects = raid5_cache_scan; in setup_conf()
6659 conf->shrinker.count_objects = raid5_cache_count; in setup_conf()
6660 conf->shrinker.batch = 128; in setup_conf()
[all …]
/drivers/staging/lustre/lustre/ptlrpc/
Dsec_bulk.c216 static unsigned long enc_pools_shrink_count(struct shrinker *s, in enc_pools_shrink_count()
238 static unsigned long enc_pools_shrink_scan(struct shrinker *s, in enc_pools_shrink_scan()
369 static struct shrinker pools_shrinker = {
/drivers/staging/lustre/lustre/ldlm/
Dldlm_pool.c898 static unsigned long ldlm_pools_cli_count(struct shrinker *s, in ldlm_pools_cli_count()
904 static unsigned long ldlm_pools_cli_scan(struct shrinker *s, in ldlm_pools_cli_scan()
1082 static struct shrinker ldlm_pools_cli_shrinker = {
/drivers/gpu/drm/ttm/
Dttm_page_alloc.c112 struct shrinker mm_shrink;
395 ttm_pool_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in ttm_pool_shrink_scan()
424 ttm_pool_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in ttm_pool_shrink_count()
Dttm_page_alloc_dma.c174 struct shrinker mm_shrink;
1010 ttm_dma_pool_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in ttm_dma_pool_shrink_scan()
1052 ttm_dma_pool_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in ttm_dma_pool_shrink_count()
/drivers/android/
Dbinder_alloc.c975 binder_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in binder_shrink_count()
982 binder_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in binder_shrink_scan()
991 static struct shrinker binder_shrinker = {
/drivers/staging/lustre/lustre/obdclass/
Dlu_object.c1779 static unsigned long lu_cache_shrink_count(struct shrinker *sk, in lu_cache_shrink_count()
1802 static unsigned long lu_cache_shrink_scan(struct shrinker *sk, in lu_cache_shrink_scan()
1843 static struct shrinker lu_site_shrinker = {
/drivers/md/bcache/
Dbcache.h502 struct shrinker shrink;
Dbtree.c656 static unsigned long bch_mca_scan(struct shrinker *shrink, in bch_mca_scan()
720 static unsigned long bch_mca_count(struct shrinker *shrink, in bch_mca_count()