Searched refs:nr_to_scan (Results 1 – 19 of 19) sorted by relevance
/drivers/staging/android/ion/ |
D | ion_system_heap.c | 208 int nr_to_scan) in ion_system_heap_shrink() argument 219 if (!nr_to_scan) in ion_system_heap_shrink() 229 nr_to_scan); in ion_system_heap_shrink() 233 nr_to_scan); in ion_system_heap_shrink() 237 nr_to_scan); in ion_system_heap_shrink() 238 nr_to_scan -= nr_freed; in ion_system_heap_shrink() 240 if (nr_to_scan <= 0) in ion_system_heap_shrink() 244 nr_to_scan); in ion_system_heap_shrink() 245 nr_to_scan -= nr_freed; in ion_system_heap_shrink() 247 if (nr_to_scan <= 0) in ion_system_heap_shrink()
|
D | ion_page_pool.c | 118 int nr_to_scan) in ion_page_pool_shrink() argument 128 if (nr_to_scan == 0) in ion_page_pool_shrink() 131 while (freed < nr_to_scan) { in ion_page_pool_shrink()
|
D | ion_priv.h | 183 int (*shrink)(struct ion_heap *heap, gfp_t gfp_mask, int nr_to_scan); 442 int nr_to_scan);
|
D | ion.c | 1333 sc.nr_to_scan = val; in debug_shrink_set() 1337 sc.nr_to_scan = objs; in debug_shrink_set() 1351 sc.nr_to_scan = 0; in debug_shrink_get()
|
D | ion_heap.c | 287 int to_scan = sc->nr_to_scan; in ion_heap_shrink_scan()
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | sec_bulk.c | 242 sc->nr_to_scan = min_t(unsigned long, sc->nr_to_scan, in enc_pools_shrink_scan() 244 if (sc->nr_to_scan > 0) { in enc_pools_shrink_scan() 245 enc_pools_release_free_pages(sc->nr_to_scan); in enc_pools_shrink_scan() 247 (long)sc->nr_to_scan, page_pools.epp_free_pages); in enc_pools_shrink_scan() 266 return sc->nr_to_scan; in enc_pools_shrink_scan()
|
/drivers/staging/android/ |
D | lowmemorykiller.c | 115 sc->nr_to_scan, sc->gfp_mask, other_free, in lowmem_scan() 120 sc->nr_to_scan, sc->gfp_mask); in lowmem_scan() 193 sc->nr_to_scan, sc->gfp_mask, rem); in lowmem_scan()
|
D | ashmem.c | 463 if (--sc->nr_to_scan <= 0) in ashmem_shrink_scan() 795 .nr_to_scan = LONG_MAX, in ashmem_ioctl()
|
/drivers/gpu/drm/i915/ |
D | i915_gem_shrinker.c | 298 sc->nr_to_scan, in i915_gem_shrinker_scan() 302 if (freed < sc->nr_to_scan) in i915_gem_shrinker_scan() 304 sc->nr_to_scan - freed, in i915_gem_shrinker_scan()
|
/drivers/gpu/drm/msm/ |
D | msm_gem_shrinker.c | 86 if (freed >= sc->nr_to_scan) in msm_gem_shrinker_scan()
|
/drivers/md/ |
D | dm-bufio.c | 1551 static unsigned long __scan(struct dm_bufio_client *c, unsigned long nr_to_scan, in __scan() argument 1565 if (!--nr_to_scan || ((count - freed) <= retain_target)) in __scan() 1585 freed = __scan(c, sc->nr_to_scan, sc->gfp_mask); in dm_bufio_shrink_scan()
|
D | raid5.c | 6450 while (ret < sc->nr_to_scan && in raid5_cache_scan()
|
/drivers/staging/lustre/lustre/ldlm/ |
D | ldlm_pool.c | 907 return ldlm_pools_scan(LDLM_NAMESPACE_CLIENT, sc->nr_to_scan, in ldlm_pools_cli_scan()
|
/drivers/gpu/drm/ttm/ |
D | ttm_page_alloc.c | 402 int shrink_pages = sc->nr_to_scan; in ttm_pool_shrink_scan()
|
D | ttm_page_alloc_dma.c | 1015 unsigned shrink_pages = sc->nr_to_scan; in ttm_dma_pool_shrink_scan()
|
/drivers/staging/lustre/lustre/obdclass/ |
D | lu_object.c | 1807 unsigned long remain = sc->nr_to_scan, freed = 0; in lu_cache_shrink_scan() 1837 return sc->nr_to_scan - remain; in lu_cache_shrink_scan()
|
/drivers/md/bcache/ |
D | sysfs.c | 623 sc.nr_to_scan = strtoul_or_return(buf); in STORE()
|
D | btree.c | 661 unsigned long i, nr = sc->nr_to_scan; in bch_mca_scan()
|
/drivers/android/ |
D | binder_alloc.c | 987 NULL, sc->nr_to_scan); in binder_shrink_scan()
|