Home
last modified time | relevance | path

Searched refs:shrink (Results 1 – 25 of 48) sorted by relevance

12

/linux/drivers/gpu/drm/xe/
H A Dxe_shrinker.c31 struct shrinker *shrink; member
35 static struct xe_shrinker *to_xe_shrinker(struct shrinker *shrink) in to_xe_shrinker() argument
37 return shrink->private_data; in to_xe_shrinker()
139 xe_shrinker_count(struct shrinker *shrink, struct shrink_control *sc) in xe_shrinker_count() argument
141 struct xe_shrinker *shrinker = to_xe_shrinker(shrink); in xe_shrinker_count()
201 static unsigned long xe_shrinker_scan(struct shrinker *shrink, struct shrink_control *sc) in xe_shrinker_scan() argument
203 struct xe_shrinker *shrinker = to_xe_shrinker(shrink); in xe_shrinker_scan()
272 shrinker_free(shrinker->shrink); in xe_shrinker_fini()
290 shrinker->shrink = shrinker_alloc(0, "drm-xe_gem:%s", xe->drm.unique); in xe_shrinker_create()
291 if (!shrinker->shrink) { in xe_shrinker_create()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_pagemap_util.c55 struct shrinker *shrink; member
351 drm_pagemap_shrinker_count(struct shrinker *shrink, struct shrink_control *sc) in drm_pagemap_shrinker_count() argument
353 struct drm_pagemap_shrinker *shrinker = shrink->private_data; in drm_pagemap_shrinker_count()
360 drm_pagemap_shrinker_scan(struct shrinker *shrink, struct shrink_control *sc) in drm_pagemap_shrinker_scan() argument
362 struct drm_pagemap_shrinker *shrinker = shrink->private_data; in drm_pagemap_shrinker_scan()
402 shrinker_free(shrinker->shrink); in drm_pagemap_shrinker_fini()
420 struct shrinker *shrink; in drm_pagemap_shrinker_create_devm() local
427 shrink = shrinker_alloc(0, "drm-drm_pagemap:%s", drm->unique); in drm_pagemap_shrinker_create_devm()
428 if (!shrink) { in drm_pagemap_shrinker_create_devm()
436 shrinker->shrink = shrink; in drm_pagemap_shrinker_create_devm()
[all …]
/linux/scripts/
H A Dbloat-o-meter57 grow, shrink, add, remove, up, down = 0, 0, 0, 0, 0, 0
82 if d<0: shrink, down = shrink+1, down-d
86 return grow, shrink, add, remove, up, down, delta, old, new, otot, ntot
89 grow, shrink, add, remove, up, down, delta, old, new, otot, ntot = \
92 print("add/remove: %s/%s grow/shrink: %s/%s up/down: %s/%s (%s)" % \
93 (add, remove, grow, shrink, up, -down, up-down))
/linux/arch/powerpc/kernel/
H A Dtau_6xx.c117 int shrink; in tau_timeout() local
130 shrink = (2 + size - min_window) / 4; in tau_timeout()
131 if (shrink) { in tau_timeout()
132 tau[cpu].low += shrink; in tau_timeout()
133 tau[cpu].high -= shrink; in tau_timeout()
/linux/drivers/cpuidle/governors/
H A Dhaltpoll.c96 unsigned int shrink = guest_halt_poll_shrink; in adjust_poll_limit() local
99 if (shrink == 0) { in adjust_poll_limit()
102 val /= shrink; in adjust_poll_limit()
/linux/fs/nfsd/
H A Dnfscache.c43 static unsigned long nfsd_reply_cache_count(struct shrinker *shrink,
45 static unsigned long nfsd_reply_cache_scan(struct shrinker *shrink,
296 nfsd_reply_cache_count(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_count() argument
298 struct nfsd_net *nn = shrink->private_data; in nfsd_reply_cache_count()
315 nfsd_reply_cache_scan(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_scan() argument
317 struct nfsd_net *nn = shrink->private_data; in nfsd_reply_cache_scan()
/linux/fs/ubifs/
H A Dshrinker.c267 unsigned long ubifs_shrink_count(struct shrinker *shrink, in ubifs_shrink_count() argument
279 unsigned long ubifs_shrink_scan(struct shrinker *shrink, in ubifs_shrink_scan() argument
/linux/samples/pktgen/
H A Dfunctions.sh187 local shrink
195 shrink=( $(grep -E -o "$sep{2,}" <<< $addr) )
/linux/fs/f2fs/
H A Dshrinker.c40 unsigned long f2fs_shrink_count(struct shrinker *shrink, in f2fs_shrink_count() argument
79 unsigned long f2fs_shrink_scan(struct shrinker *shrink, in f2fs_shrink_scan() argument
/linux/drivers/gpu/drm/msm/
H A Dmsm_gem_shrinker.c159 bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket); in msm_gem_shrinker_scan() member
183 stages[i].shrink, in msm_gem_shrinker_scan()
/linux/drivers/md/bcache/
H A Dbtree.c665 static unsigned long bch_mca_scan(struct shrinker *shrink, in bch_mca_scan() argument
668 struct cache_set *c = shrink->private_data; in bch_mca_scan()
732 static unsigned long bch_mca_count(struct shrinker *shrink, in bch_mca_count() argument
735 struct cache_set *c = shrink->private_data; in bch_mca_count()
753 if (c->shrink) in bch_btree_cache_free()
754 shrinker_free(c->shrink); in bch_btree_cache_free()
829 c->shrink = shrinker_alloc(0, "md-bcache:%pU", c->set_uuid); in bch_btree_cache_alloc()
830 if (!c->shrink) { in bch_btree_cache_alloc()
835 c->shrink->count_objects = bch_mca_count; in bch_btree_cache_alloc()
836 c->shrink->scan_objects = bch_mca_scan; in bch_btree_cache_alloc()
[all …]
H A Dsysfs.c862 if (c->shrink) in STORE()
863 c->shrink->scan_objects(c->shrink, &sc); in STORE()
/linux/fs/erofs/
H A Dzutil.c242 static unsigned long erofs_shrink_count(struct shrinker *shrink, in erofs_shrink_count() argument
248 static unsigned long erofs_shrink_scan(struct shrinker *shrink, in erofs_shrink_scan() argument
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_shmem.c106 const unsigned int shrink[] = { in shmem_sg_alloc_table() local
109 }, *s = shrink; in shmem_sg_alloc_table()
495 .shrink = shmem_shrink,
/linux/Documentation/filesystems/
H A Dbtrfs.rst34 * Online resize (shrink, grow)
/linux/rust/kernel/
H A Did_pool.rs176 pub fn shrink(&mut self, mut resizer: PoolResizer) { in shrink() method
/linux/rust/zerocopy/src/
H A Dmacros.rs77 (#![allow(shrink)] $e:expr) => {{
1282 let x: [[u8; 2]; 3] = transmute!(#![allow(shrink)] array_of_u8s); in test_transmute()
1298 let _: () = transmute!(#![allow(shrink)] PanicOnDrop(())); in test_transmute()
1305 const X_SHRINK: [[u8; 2]; 3] = transmute!(#![allow(shrink)] ARRAY_OF_U8S); in test_transmute()
/linux/Documentation/userspace-api/media/v4l/
H A Dselection-api-intro.rst9 shrink or enlarge it to an image of arbitrary size. Next, the devices
/linux/Documentation/virt/
H A Dguest-halt-polling.rst42 Division factor used to shrink per-cpu guest_halt_poll_ns when
/linux/tools/mm/
H A Dslabinfo.c74 int shrink; variable
130 "-s|--shrink Shrink slabs\n" in usage()
334 set_obj(s, "shrink", 1); in slab_shrink()
738 set_obj(s, "shrink", 1); in slab_empty()
1342 else if (shrink) in output_slabs()
1408 { "shrink", no_argument, NULL, 's' },
1486 shrink = 1; in main()
1521 && !validate && !shrink && !set_debug && !show_ops) in main()
/linux/fs/xfs/
H A Dxfs_buf.c1606 struct shrinker *shrink, in xfs_buftarg_shrink_scan() argument
1609 struct xfs_buftarg *btp = shrink->private_data; in xfs_buftarg_shrink_scan()
1628 struct shrinker *shrink, in xfs_buftarg_shrink_count() argument
1631 struct xfs_buftarg *btp = shrink->private_data; in xfs_buftarg_shrink_count()
H A Dxfs_qm.c492 struct shrinker *shrink, in xfs_qm_shrink_scan() argument
495 struct xfs_quotainfo *qi = shrink->private_data; in xfs_qm_shrink_scan()
526 struct shrinker *shrink, in xfs_qm_shrink_count() argument
529 struct xfs_quotainfo *qi = shrink->private_data; in xfs_qm_shrink_count()
/linux/net/sunrpc/
H A Dauth.c475 rpcauth_cache_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in rpcauth_cache_shrink_scan() argument
489 rpcauth_cache_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in rpcauth_cache_shrink_count() argument
/linux/fs/ntfs/
H A Dindex.c1372 bool shrink; in ntfs_ir_truncate() local
1377 shrink = data_size < old_allocated_size; in ntfs_ir_truncate()
1378 if (shrink) in ntfs_ir_truncate()
1392 if (!shrink) in ntfs_ir_truncate()
1395 if (shrink) in ntfs_ir_truncate()
/linux/net/core/
H A Dfilter.c3810 bool shrink = len_diff < 0; in BPF_CALL_4() local
3818 if (!shrink) { in BPF_CALL_4()
3854 bool shrink = len_diff < 0; in BPF_CALL_4() local
3880 if (!shrink) in BPF_CALL_4()
3927 if ((shrink && (len_diff_abs >= len_cur || in BPF_CALL_4()
3929 (!shrink && (skb->len + len_diff_abs > len_max && in BPF_CALL_4()
3933 ret = shrink ? bpf_skb_net_shrink(skb, off, len_diff_abs, flags) : in BPF_CALL_4()
4352 static struct xdp_buff *bpf_xdp_shrink_data_zc(struct xdp_buff *xdp, int shrink, in bpf_xdp_shrink_data_zc() argument
4362 zc_frag->data_end -= shrink; in bpf_xdp_shrink_data_zc()
4364 zc_frag->data += shrink; in bpf_xdp_shrink_data_zc()
[all …]

12