Home
last modified time | relevance | path

Searched refs:nr_to_scan (Results 1 – 19 of 19) sorted by relevance

/drivers/staging/android/ion/
Dion_system_heap.c208 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()
Dion_page_pool.c118 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()
Dion_priv.h183 int (*shrink)(struct ion_heap *heap, gfp_t gfp_mask, int nr_to_scan);
442 int nr_to_scan);
Dion.c1333 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()
Dion_heap.c287 int to_scan = sc->nr_to_scan; in ion_heap_shrink_scan()
/drivers/staging/lustre/lustre/ptlrpc/
Dsec_bulk.c242 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/
Dlowmemorykiller.c115 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()
Dashmem.c463 if (--sc->nr_to_scan <= 0) in ashmem_shrink_scan()
795 .nr_to_scan = LONG_MAX, in ashmem_ioctl()
/drivers/gpu/drm/i915/
Di915_gem_shrinker.c298 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/
Dmsm_gem_shrinker.c86 if (freed >= sc->nr_to_scan) in msm_gem_shrinker_scan()
/drivers/md/
Ddm-bufio.c1551 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()
Draid5.c6450 while (ret < sc->nr_to_scan && in raid5_cache_scan()
/drivers/staging/lustre/lustre/ldlm/
Dldlm_pool.c907 return ldlm_pools_scan(LDLM_NAMESPACE_CLIENT, sc->nr_to_scan, in ldlm_pools_cli_scan()
/drivers/gpu/drm/ttm/
Dttm_page_alloc.c402 int shrink_pages = sc->nr_to_scan; in ttm_pool_shrink_scan()
Dttm_page_alloc_dma.c1015 unsigned shrink_pages = sc->nr_to_scan; in ttm_dma_pool_shrink_scan()
/drivers/staging/lustre/lustre/obdclass/
Dlu_object.c1807 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/
Dsysfs.c623 sc.nr_to_scan = strtoul_or_return(buf); in STORE()
Dbtree.c661 unsigned long i, nr = sc->nr_to_scan; in bch_mca_scan()
/drivers/android/
Dbinder_alloc.c987 NULL, sc->nr_to_scan); in binder_shrink_scan()