/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | ArrayRecycler.h | 49 __asan_unpoison_memory_region(Entry, Capacity::get(Idx).getSize()); in pop() 51 __msan_allocated_memory(Entry, Capacity::get(Idx).getSize()); in pop() 63 __asan_poison_memory_region(Ptr, Capacity::get(Idx).getSize()); in push() 71 class Capacity { 73 explicit Capacity(uint8_t idx) : Index(idx) {} in Capacity() function 76 Capacity() : Index(0) {} in Capacity() function 79 static Capacity get(size_t N) { in get() 80 return Capacity(N ? Log2_64_Ceil(N) : 0); in get() 92 Capacity getNext() const { return Capacity(Index + 1); } in getNext() 125 T *allocate(Capacity Cap, AllocatorType &Allocator) { in allocate() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/ |
H A D | ThreadSafetyUtil.h | 88 : Data(Dat), Size(Sz), Capacity(Cp) {} in Data() 90 : Data(Cp == 0 ? nullptr : A.allocateT<T>(Cp)), Capacity(Cp) {} in SimpleArray() 94 : Data(A.Data), Size(A.Size), Capacity(A.Capacity) { in SimpleArray() 97 A.Capacity = 0; in SimpleArray() 104 Capacity = RHS.Capacity; 107 RHS.Size = RHS.Capacity = 0; 114 if (Ncp <= Capacity) in reserve() 118 Capacity = Ncp; in reserve() 124 if (Capacity == 0) in reserveCheck() 126 else if (Size + N < Capacity) in reserveCheck() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | mem_map.h | 34 MemMapDefault(uptr Base, uptr Capacity) : Base(Base), Capacity(Capacity) {} 46 uptr getCapacityImpl() { return Capacity; } 52 uptr Capacity = 0; 68 uptr getCapacityImpl() { return Capacity; } 72 uptr Capacity = 0; 33 MemMapDefault(uptr Base,uptr Capacity) MemMapDefault() argument 51 uptr Capacity = 0; global() variable 71 uptr Capacity = 0; global() variable
|
H A D | mem_map.cpp | 23 Capacity = Size; in mapImpl() 28 if (Size == Capacity) { in unmapImpl() 29 Base = MappedBase = Capacity = 0; in unmapImpl() 35 Capacity -= Size; in unmapImpl() 61 ::scudo::unmap(reinterpret_cast<void *>(Base), Capacity, UNMAP_ALL, &Data); in releaseImpl() 72 Capacity = Size; in createImpl()
|
H A D | mem_map_fuchsia.cpp | 95 MemMapFuchsia::MemMapFuchsia(uptr Base, uptr Capacity) in MemMapFuchsia() argument 96 : MapAddr(Base), WindowBase(Base), WindowSize(Capacity) { in MemMapFuchsia() 98 zx_status_t Status = _zx_vmo_create(Capacity, 0, &Vmo); in MemMapFuchsia() 100 dieOnError(Status, "zx_vmo_create", Capacity); in MemMapFuchsia() 245 Capacity = Size; in createImpl() 250 zx_status_t Status = _zx_vmar_unmap(_zx_vmar_root_self(), Base, Capacity); in releaseImpl()
|
H A D | mem_map_fuchsia.h | 41 MemMapFuchsia(uptr Base, uptr Capacity); 64 uptr getCapacityImpl() { return Capacity; } in getCapacityImpl() 68 uptr Capacity = 0; variable
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | ASTVector.h | 40 llvm::PointerIntPair<T *, 1, bool> Capacity; variable 47 bool getTag() const { return Capacity.getInt(); } in getTag() 48 void setTag(bool B) { Capacity.setInt(B); } in setTag() 52 ASTVector() : Capacity(nullptr, false) {} in ASTVector() 54 ASTVector(ASTVector &&O) : Begin(O.Begin), End(O.End), Capacity(O.Capacity) { in ASTVector() 56 O.Capacity.setPointer(nullptr); in ASTVector() 57 O.Capacity.setInt(false); in ASTVector() 60 ASTVector(const ASTContext &C, unsigned N) : Capacity(nullptr, false) { in ASTVector() 71 swap(Capacity, O.Capacity); 372 return (iterator) Capacity.getPointer(); in capacity_ptr() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | TypeLocBuilder.cpp | 68 assert(NewCapacity > Capacity); in grow() 72 unsigned NewIndex = Index + NewCapacity - Capacity; in grow() 75 Capacity - Index); in grow() 81 Capacity = NewCapacity; in grow() 97 size_t RequiredCapacity = Capacity + (LocalSize - Index); in pushImpl() 98 size_t NewCapacity = Capacity * 2; in pushImpl() 182 assert(Capacity - Index == TypeLoc::getFullDataSizeForType(T) && in pushImpl()
|
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Support/ |
H A D | BumpVector.h | 71 T *Capacity = nullptr; variable 169 if (End < Capacity) { in push_back() 184 if (End + Cnt <= Capacity) { in insert() 198 if (unsigned(Capacity-Begin) < N) in reserve() 204 size_t capacity() const { return Capacity - Begin; } in capacity() 235 size_t CurCapacity = Capacity-Begin; in grow() 260 Capacity = Begin+NewCapacity; in grow()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Demangle/ |
H A D | MicrosoftDemangle.h | 32 size_t Capacity = 0; member 36 void addNode(size_t Capacity) { in addNode() argument 38 NewHead->Buf = new uint8_t[Capacity]; in addNode() 40 NewHead->Capacity = Capacity; in addNode() 68 if (Head->Used <= Head->Capacity) in allocUnalignedBuffer() 87 if (Head->Used <= Head->Capacity) in allocArray() 106 if (Head->Used <= Head->Capacity) in alloc()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/ |
H A D | HashTable.h | 102 support::ulittle32_t Capacity; member 112 explicit HashTable(uint32_t Capacity) { in HashTable() argument 113 Buckets.resize(Capacity); in HashTable() 120 if (H->Capacity == 0) in load() 123 if (H->Size > maxLoad(H->Capacity)) in load() 127 Buckets.resize(H->Capacity); in load() 183 H.Capacity = capacity(); in commit()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SampleProfileInference.cpp | 133 void addEdge(uint64_t Src, uint64_t Dst, int64_t Capacity, int64_t Cost) { in addEdge() argument 134 assert(Capacity > 0 && "adding an edge of zero capacity"); in addEdge() 140 SrcEdge.Capacity = Capacity; in addEdge() 147 DstEdge.Capacity = 0; in addEdge() 223 assert(Edge.Capacity >= Edge.Flow && "incorrect edge flow"); in computeAugmentingPathCapacity() 224 uint64_t EdgeCapacity = uint64_t(Edge.Capacity - Edge.Flow); in computeAugmentingPathCapacity() 272 if (Edge.Flow < Edge.Capacity) { in findAugmentingPath() 426 if (Edge->Capacity == INF) in augmentFlowAlongDAG() 428 uint64_t MaxIntFlow = double(Edge->Capacity - Edge->Flow) / EdgeFlow; in augmentFlowAlongDAG() 449 EdgeFlow = std::min(EdgeFlow, uint64_t(Edge->Capacity - Edge->Flow)); in augmentFlowAlongDAG() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | IntervalMap.cpp | 120 IdxPair distribute(unsigned Nodes, unsigned Elements, unsigned Capacity, in distribute() argument 123 assert(Elements + Grow <= Nodes * Capacity && "Not enough room for elements"); in distribute() 150 assert(NewSize[n] <= Capacity && "Overallocated node"); in distribute()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | IntervalMap.h | 225 enum { Capacity = N }; enumerator 389 /// Elements + Grow <= Nodes * Capacity. 394 /// NewSize[i] <= Capacity. 402 /// Grow is set and NewSize[idx] == Capacity-1. The index points to the node 408 /// @param Capacity The capacity of each node. 414 IdxPair distribute(unsigned Nodes, unsigned Elements, unsigned Capacity, 511 assert(n <= NodeT::Capacity && "Size too big for node"); in NodeRef() 627 /// @return (insert position, new size), or (i, Capacity+1) on overflow. 1130 if (branched() || rootSize == RootLeaf::Capacity) in insert() 1218 const unsigned Nodes = RootLeaf::Capacity / Lea in branchRoot() [all...] |
H A D | SmallVector.h | 56 Size_T Size = 0, Capacity; variable 65 : BeginX(FirstEl), Capacity(static_cast<Size_T>(TotalCapacity)) {} in SmallVectorBase() 93 size_t capacity() const { return Capacity; } in capacity() 114 Capacity = static_cast<Size_T>(N); in set_allocation_range() 162 this->Size = this->Capacity = 0; // FIXME: Setting Capacity to 0 is suspect. in resetToSmall() 610 this->Capacity = RHS.Capacity; in assignRemote() 989 std::swap(this->Capacity, RHS.Capacity); in swap()
|
H A D | AddressRanges.h | 72 void reserve(size_t Capacity) { Ranges.reserve(Capacity); } in reserve() argument
|
/freebsd/sys/dev/hptmv/ |
H A D | gui_lib.c | 522 pInfo->Capacity = pVDevice->VDeviceCapacity; in hpt_get_device_info() 532 pInfo->Capacity = pVDevice->u.disk.dDeRealCapacity; in hpt_get_device_info() 546 pInfo->Capacity.lo32 = pVDevice->VDeviceCapacity; in hpt_get_device_info_v2() 547 pInfo->Capacity.hi32 = sizeof(LBA_T)>4? (pVDevice->VDeviceCapacity>>32) : 0; in hpt_get_device_info_v2() 557 pInfo->Capacity.lo32 = pVDevice->u.disk.dDeRealCapacity; in hpt_get_device_info_v2() 558 pInfo->Capacity.hi32 = 0; in hpt_get_device_info_v2() 824 param2.Capacity.lo32 = param2.Capacity.hi32 = 0; in hpt_create_array() 909 LBA_T Capacity; in hpt_add_disk_to_array() local 935 Capacity = pArray->VDeviceCapacity / (pArray->u.array.bArnMember - 1); in hpt_add_disk_to_array() 938 if(pDisk->u.disk.dDeRealCapacity < Capacity) return -1; in hpt_add_disk_to_array() [all …]
|
H A D | hptintf.h | 522 DWORD Capacity; /* array capacity */ member 537 LBA64 Capacity; /* array capacity */ member 618 LBA64 Capacity; /* specify array capacity (0 for default) */ member
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/ |
H A D | CodeGenDAGPatterns.h | 59 static unsigned constexpr Capacity = std::numeric_limits<uint8_t>::max() + 1; member 62 static unsigned constexpr NumWords = Capacity / WordWidth; 63 static_assert(NumWords * WordWidth == Capacity, 117 assert(Pos != Capacity); 122 Pos = End ? Capacity : find_from_pos(0); in const_iterator() 126 assert(Pos != Capacity); 161 return Capacity; in find_from_pos()
|
/freebsd/sys/dev/hptrr/ |
H A D | hptintf.h | 792 HPT_U32 Capacity; /* array capacity */ member 807 HPT_U64 Capacity; /* array capacity */ member 829 HPT_U64 Capacity; /* array capacity */ member 858 HPT_U64 Capacity; /* array capacity */ member 983 HPT_U64 Capacity; member 1005 HPT_U64 Capacity; member
|
/freebsd/sys/dev/hpt27xx/ |
H A D | hptintf.h | 984 HPT_U32 Capacity; /* array capacity */ member 999 HPT_U64 Capacity; /* array capacity */ member 1021 HPT_U64 Capacity; /* array capacity */ member 1050 HPT_U64 Capacity; /* array capacity */ member 1182 HPT_U64 Capacity; member 1206 HPT_U64 Capacity; member
|
/freebsd/sys/dev/hptnr/ |
H A D | hptintf.h | 980 HPT_U32 Capacity; /* array capacity */ member 995 HPT_U64 Capacity; /* array capacity */ member 1017 HPT_U64 Capacity; /* array capacity */ member 1046 HPT_U64 Capacity; /* array capacity */ member 1178 HPT_U64 Capacity; member 1202 HPT_U64 Capacity; member
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGCleanup.cpp | 83 unsigned Capacity = 1024; in allocate() local 84 while (Capacity < Size) Capacity *= 2; in allocate() 85 StartOfBuffer = new char[Capacity]; in allocate() 86 StartOfData = EndOfBuffer = StartOfBuffer + Capacity; in allocate()
|
/freebsd/sys/dev/aacraid/ |
H A D | aacraid_cam.c | 705 scsi_ulto4b(co->co_mntobj.Capacity-1, p->addr); in aac_container_special_command() 729 scsi_ulto4b(co->co_mntobj.Capacity-1, &p->addr[4]); in aac_container_special_command() 771 if (co->co_mntobj.Capacity > 0xffffff || in aac_container_special_command() 778 (co->co_mntobj.Capacity >> 16); in aac_container_special_command() 780 (co->co_mntobj.Capacity >> 8); in aac_container_special_command() 782 (co->co_mntobj.Capacity); in aac_container_special_command()
|
/freebsd/sys/contrib/device-tree/Bindings/power/supply/ |
H A D | max17040_battery.txt | 19 SOC == State of Charge == Capacity.
|