Home
last modified time | relevance | path

Searched refs:class_id (Results 1 – 14 of 14) sorted by relevance

/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_local_cache.h34 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 Dsanitizer_allocator_primary64.h67 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 Dsanitizer_allocator_primary32.h114 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 Dsanitizer_allocator_size_class_map.h145 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 Dasan_fake_stack.h91 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 Dppbconf.c211 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 Dppbconf.h235 int class_id; /* not a PnP device if class_id < 0 */ member
/freebsd/sys/net/altq/
H A Daltq_hfsc.h79 u_int class_id; member
122 u_int class_id; member
H A Daltq_hfsc.c1556 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 Djitprofiling.h199 unsigned int class_id; member
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DJITLoaderVTune.cpp60 MethodMessage.class_id = 0; in registerJITLoaderVTuneRegisterImpl()
/freebsd/sys/dev/pci/
H A Dpcivar.h298 uint16_t class_id; member
313 .match_flag_class = 1, .class_id = (x)
H A Dpci.c6799 match &= class == id->class_id; in pci_match_device()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/IntelJITEvents/
H A DIntelJITEventListener.cpp173 Result.class_id = 0; in FunctionDescToIntelJITFormat()