Home
last modified time | relevance | path

Searched full:shrink (Results 1 – 25 of 323) sorted by relevance

12345678910>>...13

/freebsd/sys/dev/drm2/ttm/
H A Dttm_memory.h32 * struct ttm_mem_shrink - callback to shrink TTM memory usage.
48 * @shrink: A single callback to shrink TTM memory usage. Extend this
54 * @work: The workqueue callback for the shrink queue.
55 * @lock: Lock to protect the @shrink - and the memory accounting members,
71 struct ttm_mem_shrink *shrink; member
84 * @shrink: The object to initialize.
88 static inline void ttm_mem_init_shrink(struct ttm_mem_shrink *shrink, in ttm_mem_init_shrink() argument
91 shrink->do_shrink = func; in ttm_mem_init_shrink()
98 * @shrink: An initialized struct ttm_mem_shrink object to register.
105 struct ttm_mem_shrink *shrink) in ttm_mem_register_shrink() argument
[all …]
H A Dttm_memory.c154 * At this point we only support a single shrink callback.
164 struct ttm_mem_shrink *shrink; in ttm_shrink() local
167 if (glob->shrink == NULL) in ttm_shrink()
171 shrink = glob->shrink; in ttm_shrink()
173 ret = shrink->do_shrink(shrink); in ttm_shrink()
288 /* let the page allocator first stop the shrink work. */ in ttm_mem_global_release()
H A Dttm_bo.c43 static int ttm_bo_swapout(struct ttm_mem_shrink *shrink);
1472 ttm_mem_unregister_shrink(glob->mem_glob, &glob->shrink); in ttm_bo_global_kobj_release()
1513 ttm_mem_init_shrink(&glob->shrink, ttm_bo_swapout); in ttm_bo_global_init()
1514 ret = ttm_mem_register_shrink(glob->mem_glob, &glob->shrink); in ttm_bo_global_init()
1798 * A buffer object shrink method that tries to swap out the first
1802 static int ttm_bo_swapout(struct ttm_mem_shrink *shrink) in ttm_bo_swapout() argument
1805 container_of(shrink, struct ttm_bo_global, shrink); in ttm_bo_swapout()
1890 while (ttm_bo_swapout(&bdev->glob->shrink) == 0) in ttm_bo_swapout_all()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DShrinkWrap.cpp91 #define DEBUG_TYPE "shrink-wrap"
94 STATISTIC(NumCandidates, "Number of shrink-wrapping candidates");
96 "Number of shrink-wrapping candidates dropped because of frequency");
99 EnableShrinkWrapOpt("enable-shrink-wrap", cl::Hidden,
100 cl::desc("enable the shrink-wrapping pass"));
102 "enable-shrink-wrap-region-split", cl::init(true), cl::Hidden,
110 /// shrink-wrapping term for prologue/epilogue placement, this pass
205 /// This function tries to split the restore point if doing so can shrink the
249 /// shrink-wrapping.
252 /// Check if shrink wrapping is enabled for this target and function.
[all …]
H A DLiveRangeShrink.cpp1 //===- LiveRangeShrink.cpp - Move instructions to shrink live range -------===//
11 /// shrink live range of the def instruction. The code motion is limited within
39 "Number of insructions hoisted to shrink live range.");
56 StringRef getPassName() const override { return "Live Range Shrink"; }
67 INITIALIZE_PASS(LiveRangeShrink, "lrshrink", "Live Range Shrink Pass", false,
H A DLiveRangeEdit.cpp282 /// Find all live intervals that need to shrink, then remove the instruction.
336 // Check for live intervals that may shrink in eliminateDeadDef()
351 // Shrink read registers, unless it is likely to be expensive and in eliminateDeadDef()
352 // unlikely to change anything. We typically don't want to shrink the in eliminateDeadDef()
354 // Always shrink COPY uses that probably come from live range splitting. in eliminateDeadDef()
449 // Shrink just one live interval. Then delete new dead defs. in eliminateDeadDefs()
/freebsd/sys/contrib/openzfs/config/
H A Dkernel-shrink.m426 static unsigned long shrinker_cb(struct shrinker *shrink,
68 static unsigned long shrinker_cb(struct shrinker *shrink,
76 register_shrinker(&cache_shrinker, "vararg-reg-shrink-test");
98 static unsigned long shrinker_cb(struct shrinker *shrink,
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Darc_os.c177 arc_shrinker_count(struct shrinker *shrink, struct shrink_control *sc) in arc_shrinker_count() argument
181 * ARC's callback actually frees, so it may ask the ARC to shrink a in arc_shrinker_count()
184 * it may force the ARC to unnecessarily shrink very small. in arc_shrinker_count()
190 * In practice, we may be asked to shrink 4x the limit to satisfy one in arc_shrinker_count()
206 arc_shrinker_scan(struct shrinker *shrink, struct shrink_control *sc) in arc_shrinker_scan() argument
295 * system. This gives the ARC time to shrink in response to memory in arc_set_sys_free()
357 * swapping out pages when it is preferable to shrink the arc. in arc_lowmem_init()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIShrinkInstructions.cpp1 //===-- SIShrinkInstructions.cpp - Shrink Instructions --------------------===//
18 #define DEBUG_TYPE "si-shrink-instructions"
67 StringRef getPassName() const override { return "SI Shrink Instructions"; } in getPassName()
78 "SI Shrink Instructions", false, false)
143 /// Do not shrink the instruction if its registers are not expressible in the
150 assert(!Reg.isVirtual() && "Prior checks should ensure we only shrink " in shouldShrinkTrue16()
282 // Shrink NSA encoded instructions with contiguous VGPRs to non-NSA encoding.
402 // Shrink MAD to MADAK/MADMK and FMA to FMAAK/FMAMK.
405 // there is no reason to try to shrink them. in shrinkMadFma()
504 /// Attempt to shrink AND/OR/XOR operations requiring non-inlineable literals.
[all …]
H A DSILowerSGPRSpills.cpp176 // Use the points found by shrink-wrapping, if any. in calculateSaveRestoreBlocks()
199 // TODO: To support shrink wrapping, this would need to copy
250 assert(SaveBlocks.size() == 1 && "shrink wrapping not fully implemented"); in spillCalleeSavedRegs()
/freebsd/usr.bin/truncate/tests/
H A Dtruncate_test.sh222 "shrink a new 1m file"
236 # Shrink the existing file to 1k. We are using absolute sizes.
271 atf_set "descr" "Verifies truncate can make and shrink a new 1m file" \
286 # Shrink the existing file to 1k. We are using relative sizes.
375 # Create a new file and do a 100 byte negative relative shrink.
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FrameLowering.h154 /// This method is used by the shrink-wrapping pass to decide if
156 /// As soon as the target enable shrink-wrapping without overriding
164 /// This method is used by the shrink-wrapping pass to decide if
168 /// Returns true if the target will correctly handle shrink wrapping.
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dshrinker.h49 * my_count(struct shrinker *shrink, struct shrink_control *sc)
57 * my_scan(struct shrinker *shrink, struct shrink_control *sc)
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DThumb1FrameLowering.h48 /// This method is used by the shrink-wrapping pass to decide if
52 /// Disable shrink wrap as tBfar/BL will be used to adjust for long jumps.
/freebsd/contrib/ldns/
H A Dedns.c287 /* shrink the total EDNS size if the old EDNS option exists */ in ldns_edns_option_list_set_option()
362 /* shrink the array */ in ldns_edns_option_list_pop()
376 /* shrink the total EDNS size of the options if the popped EDNS option exists */ in ldns_edns_option_list_pop()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterpStack.h51 shrink(aligned_size<T>()); in pop()
64 shrink(aligned_size<T>()); in discard()
114 void shrink(size_t Size);
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetFrameLowering.h197 /// Returns true if the target will correctly handle shrink wrapping.
421 /// This method is used by the shrink-wrapping pass to decide if
423 /// As soon as the target enable shrink-wrapping without overriding
433 /// This method is used by the shrink-wrapping pass to decide if
435 /// As soon as the target enable shrink-wrapping without overriding
/freebsd/sys/contrib/zstd/programs/
H A Dzstd.1267 \fB\-\-train\-cover[=k#,d=#,steps=#,split=#,shrink[=#]]\fR
268 …\fId\fR <= \fIk\fR\. If \fIshrink\fR flag is not used, then the default value for \fIshrinkDict\fR…
271 …tithreading if \fBzstd\fR is compiled with threading support\. Having \fIshrink\fR enabled takes a…
292 \fBzstd \-\-train\-cover=shrink FILEs\fR
295 \fBzstd \-\-train\-cover=shrink=2 FILEs\fR
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCMachineFunctionInfo.h68 /// Do we have to disable shrink-wrapping? This has to be set if we emit any
70 /// in PEI is too late (happens after shrink-wrapping);
202 /// We certainly don't want to shrink wrap functions if we've emitted a
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DLibCallsShrinkWrap.h1 //===- LibCallsShrinkWrap.h - Shrink Wrap Library Calls -------------------===//
/freebsd/lib/libc/stdlib/
H A Drecallocarray.c48 * we do not shrink for series of small steps, oh well. in recallocarray()
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dmem_map_fuchsia.h47 // use. unmapImpl() can shrink this range, either at the beginning or at the
/freebsd/tools/build/test-includes/
H A DMakefile47 # ever shrink and never grow.
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerOptions.h41 bool Shrink = false; member
/freebsd/crypto/openssh/openbsd-compat/
H A Drecallocarray.c62 * we do not shrink for series of small steps, oh well. in recallocarray()

12345678910>>...13