Searched refs:shrink (Results 1 - 19 of 19) sorted by relevance

/drivers/staging/android/ion/
H A Dion_heap.c278 if (heap->ops->shrink)
279 total += heap->ops->shrink(heap, sc->gfp_mask, 0);
295 * shrink the free list first, no point in zeroing the memory if we're
306 if (heap->ops->shrink)
307 freed += heap->ops->shrink(heap, sc->gfp_mask, to_scan);
H A Dion_priv.h126 int (*shrink)(struct ion_heap *heap, gfp_t gfp_mask, int nr_to_scan); member in struct:ion_heap_ops
244 * If a heap sets the ION_HEAP_FLAG_DEFER_FREE flag or defines the shrink op
245 * this function will be called to setup a shrinker to shrink the freelists
246 * and call the heap's shrink op.
421 * @nr_to_scan: number of items to shrink in pages
H A Dion.c1479 objs = heap->shrinker.shrink(&heap->shrinker, &sc);
1482 heap->shrinker.shrink(&heap->shrinker, &sc);
1495 objs = heap->shrinker.shrink(&heap->shrinker, &sc);
1516 if ((heap->flags & ION_HEAP_FLAG_DEFER_FREE) || heap->ops->shrink)
1538 if (heap->shrinker.shrink) {
H A Dion_system_heap.c238 .shrink = ion_system_heap_shrink,
/drivers/gpu/drm/ttm/
H A Dttm_memory.c207 * At this point we only support a single shrink callback.
217 struct ttm_mem_shrink *shrink; local
220 if (glob->shrink == NULL)
224 shrink = glob->shrink;
226 ret = shrink->do_shrink(shrink);
411 /* let the page allocator first stop the shrink work. */
H A Dttm_bo.c49 static int ttm_bo_swapout(struct ttm_mem_shrink *shrink);
1353 ttm_mem_unregister_shrink(glob->mem_glob, &glob->shrink);
1387 ttm_mem_init_shrink(&glob->shrink, ttm_bo_swapout);
1388 ret = ttm_mem_register_shrink(glob->mem_glob, &glob->shrink);
1608 * A buffer object shrink method that tries to swap out the first
1612 static int ttm_bo_swapout(struct ttm_mem_shrink *shrink) argument
1615 container_of(shrink, struct ttm_bo_global, shrink);
1695 while (ttm_bo_swapout(&bdev->glob->shrink) == 0)
H A Dttm_page_alloc.c104 * @work: Work that is used to shrink the pool. Work is only run when there is
391 ttm_pool_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) argument
420 ttm_pool_shrink_count(struct shrinker *shrink, struct shrink_control *sc) argument
H A Dttm_page_alloc_dma.c987 /* shrink pool if necessary (only on !is_cached pools)*/
1005 ttm_dma_pool_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) argument
1037 pr_debug("%s: (%s:%d) Asked to shrink %d, have %d more to go\n",
1047 ttm_dma_pool_shrink_count(struct shrinker *shrink, struct shrink_control *sc) argument
/drivers/staging/lustre/lustre/lov/
H A Dlov_merge.c114 u64 size, int shrink)
123 if (shrink) {
129 stripe, kms > loi->loi_kms ? "increase":"shrink",
113 lov_adjust_kms(struct obd_export *exp, struct lov_stripe_md *lsm, u64 size, int shrink) argument
H A Dlov_internal.h172 u64 size, int shrink);
/drivers/md/bcache/
H A Dbtree.c661 static unsigned long bch_mca_scan(struct shrinker *shrink, argument
664 struct cache_set *c = container_of(shrink, struct cache_set, shrink);
725 static unsigned long bch_mca_count(struct shrinker *shrink, argument
728 struct cache_set *c = container_of(shrink, struct cache_set, shrink);
745 if (c->shrink.list.next)
746 unregister_shrinker(&c->shrink);
807 c->shrink.count_objects = bch_mca_count;
808 c->shrink
[all...]
H A Dbcache.h518 struct shrinker shrink; member in struct:cache_set
H A Dsysfs.c624 c->shrink.scan_objects(&c->shrink, &sc);
/drivers/md/persistent-data/
H A Ddm-array.c451 static int shrink(struct resize *resize) function
663 r = ((new_size > old_size) ? grow : shrink)(&resize);
/drivers/staging/android/
H A Dashmem.c427 ashmem_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) argument
458 ashmem_shrink_count(struct shrinker *shrink, struct shrink_control *sc) argument
/drivers/md/
H A Ddm-bufio.c1483 dm_bufio_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) argument
1488 c = container_of(shrink, struct dm_bufio_client, shrinker);
1500 dm_bufio_shrink_count(struct shrinker *shrink, struct shrink_control *sc) argument
1505 c = container_of(shrink, struct dm_bufio_client, shrinker);
/drivers/infiniband/hw/mlx5/
H A Dmr.c443 int shrink = 0; local
456 shrink = 1;
459 if (shrink)
/drivers/staging/lustre/lustre/include/
H A Dobd_class.h1225 int shrink)
1232 rc = OBP(exp->exp_obd, adjust_kms)(exp, lsm, size, shrink);
1223 obd_adjust_kms(struct obd_export *exp, struct lov_stripe_md *lsm, u64 size, int shrink) argument
H A Dobd.h1180 u64 size, int shrink);

Completed in 3880 milliseconds