/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_allocator_local_cache.h | 34 void *Allocate(SizeClassAllocator *allocator, uptr class_id) { in Allocate() 35 CHECK_NE(class_id, 0UL); in Allocate() 36 CHECK_LT(class_id, kNumClasses); in Allocate() 37 PerClass *c = &per_class_[class_id]; in Allocate() 39 if (UNLIKELY(!Refill(c, allocator, class_id))) in Allocate() 46 allocator->GetRegionBeginBySizeClass(class_id), chunk)); in Allocate() 49 void Deallocate(SizeClassAllocator *allocator, uptr class_id, void *p) { in Deallocate() 50 CHECK_NE(class_id, 0UL); in Deallocate() 51 CHECK_LT(class_id, kNumClasses); in Deallocate() 54 PerClass *c = &per_class_[class_id]; in Deallocate() [all …]
|
H A D | sanitizer_allocator_primary64.h | 67 void ReleasePageRangeToOS(uptr class_id, CompactPtrT from, CompactPtrT to) { in ReleasePageRangeToOS() argument 68 const uptr region_base = allocator_.GetRegionBeginBySizeClass(class_id); in ReleasePageRangeToOS() 163 for (uptr class_id = 1; class_id < kNumClasses; class_id++) { in ForceReleaseToOS() local 164 Lock l(&GetRegionInfo(class_id)->mutex); in ForceReleaseToOS() 165 MaybeReleaseToOS(&memory_mapper, class_id, true /*force*/); in ForceReleaseToOS() 175 AllocatorStats *stat, uptr class_id, in ReturnToAllocator() argument 177 RegionInfo *region = GetRegionInfo(class_id); in ReturnToAllocator() 178 uptr region_beg = GetRegionBeginBySizeClass(class_id); in ReturnToAllocator() 190 class_id, ClassIdToSize(class_id)); in ReturnToAllocator() 198 MaybeReleaseToOS(memory_mapper, class_id, false /*force*/); in ReturnToAllocator() [all …]
|
H A D | sanitizer_allocator_primary32.h | 114 static uptr ClassIdToSize(uptr class_id) { in ClassIdToSize() argument 115 return (class_id == SizeClassMap::kBatchClassID) ? in ClassIdToSize() 116 kBatchSize : SizeClassMap::Size(class_id); in ClassIdToSize() 169 uptr class_id) { in AllocateBatch() argument 170 DCHECK_LT(class_id, kNumClasses); in AllocateBatch() 171 SizeClassInfo *sci = GetSizeClassInfo(class_id); in AllocateBatch() 174 if (UNLIKELY(!PopulateFreeList(stat, c, sci, class_id))) in AllocateBatch() 183 NOINLINE void DeallocateBatch(AllocatorStats *stat, uptr class_id, in DeallocateBatch() argument 185 DCHECK_LT(class_id, kNumClasses); in DeallocateBatch() 187 SizeClassInfo *sci = GetSizeClassInfo(class_id); in DeallocateBatch() [all …]
|
H A D | sanitizer_allocator_size_class_map.h | 145 static uptr Size(uptr class_id) { in Size() argument 149 if (UNLIKELY(class_id == kBatchClassID)) in Size() 151 if (class_id <= kMidClass) in Size() 152 return kMinSize * class_id; in Size() 153 class_id -= kMidClass; in Size() 154 uptr t = kMidSize << (class_id >> S); in Size() 155 return t + (t >> S) * (class_id & M); in Size()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_fake_stack.h | 91 static uptr FlagsOffset(uptr stack_size_log, uptr class_id) { in FlagsOffset() argument 92 uptr t = kNumberOfSizeClasses - 1 - class_id; in FlagsOffset() 97 static uptr NumberOfFrames(uptr stack_size_log, uptr class_id) { in NumberOfFrames() argument 98 return ((uptr)1) << (stack_size_log - kMinStackFrameSizeLog - class_id); in NumberOfFrames() 102 static uptr ModuloNumberOfFrames(uptr stack_size_log, uptr class_id, uptr n) { in ModuloNumberOfFrames() argument 103 return n & (NumberOfFrames(stack_size_log, class_id) - 1); in ModuloNumberOfFrames() 107 u8 *GetFlags(uptr stack_size_log, uptr class_id) { in GetFlags() argument 109 FlagsOffset(stack_size_log, class_id); in GetFlags() 113 u8 *GetFrame(uptr stack_size_log, uptr class_id, uptr pos) { in GetFrame() argument 116 (((uptr)1) << stack_size_log) * class_id + in GetFrame() [all …]
|
/freebsd/sys/dev/ppbus/ |
H A D | ppbconf.c | 211 int class_id = -1; in ppb_pnp_detect() local 271 class_id = i; in ppb_pnp_detect() 276 class_id = PPB_PnP_UNKNOWN; in ppb_pnp_detect() 279 return (class_id); in ppb_pnp_detect() 369 ppb->class_id = ppb_pnp_detect(bus); in ppb_scan_bus()
|
H A D | ppbconf.h | 235 int class_id; /* not a PnP device if class_id < 0 */ member
|
/freebsd/sys/net/altq/ |
H A D | altq_hfsc.h | 79 u_int class_id; member 122 u_int class_id; member
|
H A D | altq_hfsc.c | 1556 sp->class_id = cl->cl_id; in get_class_stats_v0() 1638 sp->class_id = cl->cl_id; in get_class_stats_v1()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/IntelJITProfiling/ |
H A D | jitprofiling.h | 199 unsigned int class_id; member
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/ |
H A D | JITLoaderVTune.cpp | 60 MethodMessage.class_id = 0; in registerJITLoaderVTuneRegisterImpl()
|
/freebsd/sys/dev/pci/ |
H A D | pcivar.h | 298 uint16_t class_id; member 313 .match_flag_class = 1, .class_id = (x)
|
H A D | pci.c | 6799 match &= class == id->class_id; in pci_match_device()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/IntelJITEvents/ |
H A D | IntelJITEventListener.cpp | 173 Result.class_id = 0; in FunctionDescToIntelJITFormat()
|