/drivers/staging/android/ion/ |
H A D | ion_heap.c | 278 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 D | ion_priv.h | 126 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 D | ion.c | 1479 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 D | ion_system_heap.c | 238 .shrink = ion_system_heap_shrink,
|
/drivers/gpu/drm/ttm/ |
H A D | ttm_memory.c | 207 * 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 D | ttm_bo.c | 49 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 D | ttm_page_alloc.c | 104 * @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 D | ttm_page_alloc_dma.c | 987 /* 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 D | lov_merge.c | 114 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 D | lov_internal.h | 172 u64 size, int shrink);
|
/drivers/md/bcache/ |
H A D | btree.c | 661 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 D | bcache.h | 518 struct shrinker shrink; member in struct:cache_set
|
H A D | sysfs.c | 624 c->shrink.scan_objects(&c->shrink, &sc);
|
/drivers/md/persistent-data/ |
H A D | dm-array.c | 451 static int shrink(struct resize *resize) function 663 r = ((new_size > old_size) ? grow : shrink)(&resize);
|
/drivers/staging/android/ |
H A D | ashmem.c | 427 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 D | dm-bufio.c | 1483 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 D | mr.c | 443 int shrink = 0; local 456 shrink = 1; 459 if (shrink)
|
/drivers/staging/lustre/lustre/include/ |
H A D | obd_class.h | 1225 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 D | obd.h | 1180 u64 size, int shrink);
|