Home
last modified time | relevance | path

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

123

/linux/drivers/gpu/drm/xe/
H A Dxe_shrinker.c23 * @shrink: Pointer to the mm shrinker.
31 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()
116 /* Like the TTM LRU walk, skip bos we can't shrink now. */ in __xe_shrinker_walk()
177 xe_shrinker_count(struct shrinker *shrink, struct shrink_control *sc) in xe_shrinker_count()
179 struct xe_shrinker *shrinker = to_xe_shrinker(shrink); in xe_shrinker_count()
224 static unsigned long xe_shrinker_scan(struct shrinker *shrink, struct shrink_control *sc) in xe_shrinker_scan()
226 struct xe_shrinker *shrinker = to_xe_shrinker(shrink); in xe_shrinker_scan()
289 shrinker_free(shrinker->shrink); in xe_shrinker_fini()
174 xe_shrinker_count(struct shrinker * shrink,struct shrink_control * sc) xe_shrinker_count() argument
221 xe_shrinker_scan(struct shrinker * shrink,struct shrink_control * sc) xe_shrinker_scan() argument
[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.c44 static unsigned long nfsd_reply_cache_count(struct shrinker *shrink,
46 static unsigned long nfsd_reply_cache_scan(struct shrinker *shrink,
288 * @shrink: our registered shrinker context
297 nfsd_reply_cache_count(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_count()
299 struct nfsd_net *nn = shrink->private_data; in nfsd_reply_cache_count()
306 * @shrink: our registered shrinker context
316 nfsd_reply_cache_scan(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_scan()
318 struct nfsd_net *nn = shrink->private_data; in nfsd_reply_cache_scan()
296 nfsd_reply_cache_count(struct shrinker * shrink,struct shrink_control * sc) nfsd_reply_cache_count() argument
315 nfsd_reply_cache_scan(struct shrinker * shrink,struct shrink_control * sc) nfsd_reply_cache_scan() argument
/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/drivers/gpu/drm/msm/
H A Dmsm_gem_shrinker.c166 bool (*shrink)(struct drm_gem_object *obj); in msm_gem_shrinker_scan()
190 stages[i].shrink); in msm_gem_shrinker_scan()
159 bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket); msm_gem_shrinker_scan() member
/linux/fs/f2fs/
H A Dshrinker.c47 unsigned long f2fs_shrink_count(struct shrinker *shrink, in f2fs_shrink_count()
89 unsigned long f2fs_shrink_scan(struct shrinker *shrink, in f2fs_shrink_scan()
118 /* shrink extent cache entries */ in f2fs_shrink_scan()
121 /* shrink read extent cache entries */ in f2fs_shrink_scan()
125 /* shrink clean nat cache entries */ in f2fs_shrink_scan()
129 /* shrink free nids cache entries */ in f2fs_shrink_scan()
133 /* shrink generic cache entries */
40 f2fs_shrink_count(struct shrinker * shrink,struct shrink_control * sc) f2fs_shrink_count() argument
79 f2fs_shrink_scan(struct shrinker * shrink,struct shrink_control * sc) f2fs_shrink_scan() argument
/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/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()
491 .shrink = shmem_shrink,
/linux/rust/zerocopy/src/
H A Dmacros.rs40 /// # `#![allow(shrink)]`
42 /// If `#![allow(shrink)]` is provided, `transmute!` additionally supports
43 /// transmutations that shrink the size of the value; e.g.:
47 /// let u: u32 = transmute!(#![allow(shrink)] 0u64);
77 (#![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/filesystems/
H A Dbtrfs.rst34 * Online resize (shrink, grow)
/linux/rust/kernel/
H A Did_pool.rs25 /// if the grow or shrink is sill valid.
93 /// [`IdPool::grow`] or [`IdPool::shrink`] operation, which will check
153 /// pool.shrink(resizer); in shrink_request()
164 // Determine if the bitmap can shrink based on the position of in shrink_request()
167 // bitmap should shrink to half its current size. in shrink_request()
182 pub fn shrink(&mut self, mut resizer: PoolResizer) { in shrink()
183 // Between request to shrink that led to allocation of `resizer` and now, in shrink()
176 pub fn shrink(&mut self, mut resizer: PoolResizer) { shrink() method
/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.c1607 struct shrinker *shrink, in xfs_buftarg_shrink_scan() argument
1610 struct xfs_buftarg *btp = shrink->private_data; in xfs_buftarg_shrink_scan()
1629 struct shrinker *shrink, in xfs_buftarg_shrink_count() argument
1632 struct xfs_buftarg *btp = shrink->private_data; in xfs_buftarg_shrink_count()
H A Dxfs_icache.c2278 struct shrinker *shrink, in xfs_inodegc_shrinker_count() argument
2281 struct xfs_mount *mp = shrink->private_data; in xfs_inodegc_shrinker_count()
2299 struct shrinker *shrink, in xfs_inodegc_shrinker_scan() argument
2302 struct xfs_mount *mp = shrink->private_data; in xfs_inodegc_shrinker_scan()
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.c1518 bool shrink; in ntfs_ih_insert()
1523 shrink = data_size < old_allocated_size; in ntfs_ih_insert()
1524 if (shrink) in ntfs_ih_insert()
1538 if (!shrink) in ntfs_icx_parent_vcn()
1541 if (shrink)
1436 bool shrink; ntfs_ir_truncate() local
/linux/net/core/
H A Dfilter.c3840 /* Due to header shrink, MSS can be upgraded. */
3895 bool shrink = len_diff < 0; in BPF_CALL_4()
3903 if (!shrink) { in BPF_CALL_4()
3939 bool shrink = len_diff < 0; in BPF_CALL_4()
3965 if (!shrink) in __bpf_skb_min_len()
4012 if ((shrink && (len_diff_abs >= len_cur || in __bpf_skb_change_tail()
4014 (!shrink && (skb->len + len_diff_abs > len_max && in __bpf_skb_change_tail()
4018 ret = shrink ? bpf_skb_net_shrink(skb, off, len_diff_abs, flags) : in __bpf_skb_change_tail()
4442 static struct xdp_buff *bpf_xdp_shrink_data_zc(struct xdp_buff *xdp, int shrink, in BPF_CALL_2()
4452 zc_frag->data_end -= shrink;
3810 bool shrink = len_diff < 0; BPF_CALL_4() local
3854 bool shrink = len_diff < 0; BPF_CALL_4() local
4351 bpf_xdp_shrink_data_zc(struct xdp_buff * xdp,int shrink,bool tail,bool release) bpf_xdp_shrink_data_zc() argument
4370 bpf_xdp_shrink_data(struct xdp_buff * xdp,skb_frag_t * frag,int shrink,bool tail) bpf_xdp_shrink_data() argument
4403 int shrink = min_t(int, offset, skb_frag_size(frag)); bpf_xdp_frags_shrink_tail() local
12678 u32 shrink = min_t(u32, delta, skb_frag_size(frag)); bpf_xdp_pull_data() local
[all...]

123