/drivers/gpu/drm/panfrost/ |
D | panfrost_gem_shrinker.c | 19 panfrost_gem_shrinker_count(struct shrinker *shrinker, struct shrink_control *sc) in panfrost_gem_shrinker_count() argument 22 container_of(shrinker, struct panfrost_device, shrinker); in panfrost_gem_shrinker_count() 66 panfrost_gem_shrinker_scan(struct shrinker *shrinker, struct shrink_control *sc) in panfrost_gem_shrinker_scan() argument 69 container_of(shrinker, struct panfrost_device, shrinker); in panfrost_gem_shrinker_scan() 103 pfdev->shrinker.count_objects = panfrost_gem_shrinker_count; in panfrost_gem_shrinker_init() 104 pfdev->shrinker.scan_objects = panfrost_gem_shrinker_scan; in panfrost_gem_shrinker_init() 105 pfdev->shrinker.seeks = DEFAULT_SEEKS; in panfrost_gem_shrinker_init() 106 WARN_ON(register_shrinker(&pfdev->shrinker)); in panfrost_gem_shrinker_init() 119 if (pfdev->shrinker.nr_deferred) { in panfrost_gem_shrinker_cleanup() 120 unregister_shrinker(&pfdev->shrinker); in panfrost_gem_shrinker_cleanup()
|
D | panfrost_device.h | 120 struct shrinker shrinker; member
|
/drivers/gpu/drm/msm/ |
D | msm_gem_shrinker.c | 25 msm_gem_shrinker_count(struct shrinker *shrinker, struct shrink_control *sc) in msm_gem_shrinker_count() argument 28 container_of(shrinker, struct msm_drm_private, shrinker); in msm_gem_shrinker_count() 124 msm_gem_shrinker_scan(struct shrinker *shrinker, struct shrink_control *sc) in msm_gem_shrinker_scan() argument 127 container_of(shrinker, struct msm_drm_private, shrinker); in msm_gem_shrinker_scan() 159 ret = msm_gem_shrinker_scan(&priv->shrinker, &sc); in msm_gem_shrinker_shrink() 218 priv->shrinker.count_objects = msm_gem_shrinker_count; in msm_gem_shrinker_init() 219 priv->shrinker.scan_objects = msm_gem_shrinker_scan; in msm_gem_shrinker_init() 220 priv->shrinker.seeks = DEFAULT_SEEKS; in msm_gem_shrinker_init() 221 WARN_ON(register_shrinker(&priv->shrinker)); in msm_gem_shrinker_init() 237 if (priv->shrinker.nr_deferred) { in msm_gem_shrinker_cleanup() [all …]
|
D | msm_drv.h | 236 struct shrinker shrinker; member
|
/drivers/gpu/drm/i915/gem/ |
D | i915_gem_shrinker.c | 288 i915_gem_shrinker_count(struct shrinker *shrinker, struct shrink_control *sc) in i915_gem_shrinker_count() argument 291 container_of(shrinker, struct drm_i915_private, mm.shrinker); in i915_gem_shrinker_count() 308 i915->mm.shrinker.batch = in i915_gem_shrinker_count() 309 max((i915->mm.shrinker.batch + avg) >> 1, in i915_gem_shrinker_count() 317 i915_gem_shrinker_scan(struct shrinker *shrinker, struct shrink_control *sc) in i915_gem_shrinker_scan() argument 320 container_of(shrinker, struct drm_i915_private, mm.shrinker); in i915_gem_shrinker_scan() 422 i915->mm.shrinker.scan_objects = i915_gem_shrinker_scan; in i915_gem_driver_register__shrinker() 423 i915->mm.shrinker.count_objects = i915_gem_shrinker_count; in i915_gem_driver_register__shrinker() 424 i915->mm.shrinker.seeks = DEFAULT_SEEKS; in i915_gem_driver_register__shrinker() 425 i915->mm.shrinker.batch = 4096; in i915_gem_driver_register__shrinker() [all …]
|
/drivers/dma-buf/heaps/ |
D | deferred-free-helper.c | 76 static unsigned long freelist_shrink_count(struct shrinker *shrinker, in freelist_shrink_count() argument 82 static unsigned long freelist_shrink_scan(struct shrinker *shrinker, in freelist_shrink_scan() argument 102 static struct shrinker freelist_shrinker = {
|
D | page_pool.c | 241 static unsigned long dmabuf_page_pool_shrink_count(struct shrinker *shrinker, in dmabuf_page_pool_shrink_count() argument 247 static unsigned long dmabuf_page_pool_shrink_scan(struct shrinker *shrinker, in dmabuf_page_pool_shrink_scan() argument 255 struct shrinker pool_shrinker = {
|
/drivers/virtio/ |
D | virtio_balloon.c | 121 struct shrinker shrinker; member 839 static unsigned long virtio_balloon_shrinker_scan(struct shrinker *shrinker, in virtio_balloon_shrinker_scan() argument 842 struct virtio_balloon *vb = container_of(shrinker, in virtio_balloon_shrinker_scan() 843 struct virtio_balloon, shrinker); in virtio_balloon_shrinker_scan() 848 static unsigned long virtio_balloon_shrinker_count(struct shrinker *shrinker, in virtio_balloon_shrinker_count() argument 851 struct virtio_balloon *vb = container_of(shrinker, in virtio_balloon_shrinker_count() 852 struct virtio_balloon, shrinker); in virtio_balloon_shrinker_count() 873 unregister_shrinker(&vb->shrinker); in virtio_balloon_unregister_shrinker() 878 vb->shrinker.scan_objects = virtio_balloon_shrinker_scan; in virtio_balloon_register_shrinker() 879 vb->shrinker.count_objects = virtio_balloon_shrinker_count; in virtio_balloon_register_shrinker() [all …]
|
/drivers/misc/ |
D | vmw_balloon.c | 385 struct shrinker shrinker; member 1521 static unsigned long vmballoon_shrinker_scan(struct shrinker *shrinker, in vmballoon_shrinker_scan() argument 1563 static unsigned long vmballoon_shrinker_count(struct shrinker *shrinker, in vmballoon_shrinker_count() argument 1574 unregister_shrinker(&b->shrinker); in vmballoon_unregister_shrinker() 1586 b->shrinker.scan_objects = vmballoon_shrinker_scan; in vmballoon_register_shrinker() 1587 b->shrinker.count_objects = vmballoon_shrinker_count; in vmballoon_register_shrinker() 1588 b->shrinker.seeks = DEFAULT_SEEKS; in vmballoon_register_shrinker() 1590 r = register_shrinker(&b->shrinker); in vmballoon_register_shrinker()
|
/drivers/xen/xenbus/ |
D | xenbus_probe_backend.c | 279 static unsigned long backend_shrink_memory_count(struct shrinker *shrinker, in backend_shrink_memory_count() argument 287 static struct shrinker backend_memory_shrinker = {
|
/drivers/md/ |
D | dm-bufio.c | 114 struct shrinker shrinker; member 1716 static unsigned long dm_bufio_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in dm_bufio_shrink_scan() 1727 c = container_of(shrink, struct dm_bufio_client, shrinker); in dm_bufio_shrink_scan() 1734 static unsigned long dm_bufio_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in dm_bufio_shrink_count() 1736 struct dm_bufio_client *c = container_of(shrink, struct dm_bufio_client, shrinker); in dm_bufio_shrink_count() 1846 c->shrinker.count_objects = dm_bufio_shrink_count; in dm_bufio_client_create() 1847 c->shrinker.scan_objects = dm_bufio_shrink_scan; in dm_bufio_client_create() 1848 c->shrinker.seeks = 1; in dm_bufio_client_create() 1849 c->shrinker.batch = 0; in dm_bufio_client_create() 1850 r = register_shrinker(&c->shrinker); in dm_bufio_client_create() [all …]
|
D | raid5.h | 668 struct shrinker shrinker; member
|
D | raid5.c | 7089 unregister_shrinker(&conf->shrinker); in free_conf() 7134 static unsigned long raid5_cache_scan(struct shrinker *shrink, in raid5_cache_scan() 7137 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker); in raid5_cache_scan() 7155 static unsigned long raid5_cache_count(struct shrinker *shrink, in raid5_cache_count() 7158 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker); in raid5_cache_count() 7388 conf->shrinker.seeks = DEFAULT_SEEKS * conf->raid_disks * 4; in setup_conf() 7389 conf->shrinker.scan_objects = raid5_cache_scan; in setup_conf() 7390 conf->shrinker.count_objects = raid5_cache_count; in setup_conf() 7391 conf->shrinker.batch = 128; in setup_conf() 7392 conf->shrinker.flags = 0; in setup_conf() [all …]
|
D | dm-zoned-metadata.c | 190 struct shrinker mblk_shrinker; 620 static unsigned long dmz_mblock_shrinker_count(struct shrinker *shrink, in dmz_mblock_shrinker_count() 631 static unsigned long dmz_mblock_shrinker_scan(struct shrinker *shrink, in dmz_mblock_shrinker_scan()
|
/drivers/gpu/drm/ttm/ |
D | ttm_pool.c | 75 static struct shrinker mm_shrinker; 592 static unsigned long ttm_pool_shrinker_scan(struct shrinker *shrink, in ttm_pool_shrinker_scan() 605 static unsigned long ttm_pool_shrinker_count(struct shrinker *shrink, in ttm_pool_shrinker_count()
|
/drivers/staging/android/ |
D | ashmem.c | 478 ashmem_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in ashmem_shrink_scan() 520 ashmem_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in ashmem_shrink_count() 530 static struct shrinker ashmem_shrinker = {
|
/drivers/android/ |
D | binder_alloc.c | 1049 binder_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in binder_shrink_count() 1056 binder_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in binder_shrink_scan() 1065 static struct shrinker binder_shrinker = {
|
/drivers/md/bcache/ |
D | bcache.h | 542 struct shrinker shrink;
|
D | btree.c | 646 static unsigned long bch_mca_scan(struct shrinker *shrink, in bch_mca_scan() 713 static unsigned long bch_mca_count(struct shrinker *shrink, in bch_mca_count()
|
/drivers/gpu/drm/i915/ |
D | i915_drv.h | 605 struct shrinker shrinker; member
|