| /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() 67 /// The size of an allocated array is represented by a Capacity instance. 71 class Capacity { 73 explicit Capacity(uint8_t idx) : Index(idx) {} in Capacity() function 76 Capacity() : Index(0) {} in Capacity() function 78 /// Get the capacity of an array that can hold at least N elements. 79 static Capacity get(size_t N) { in get() 80 return Capacity(N ? Log2_64_Ceil(N) : 0); in get() [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/arm/ |
| H A D | cpu-capacity.txt | 2 ARM CPUs capacity bindings 15 2 - CPU capacity definition 18 CPU capacity is a number that provides the scheduler information about CPUs 27 final capacity should, however, be: 43 3 - capacity-dmips-mhz 46 capacity-dmips-mhz is an optional cpu node [1] property: u32 value 47 representing CPU capacity expressed in normalized DMIPS/MHz. At boot time, the 48 maximum frequency available to the cpu is then used to calculate the capacity 51 capacity-dmips-mhz property is all-or-nothing: if it is specified for a cpu 53 fall back to the default capacity value for every CPU. If cpufreq is not [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/cpu/ |
| H A D | cpu-capacity.txt | 2 CPU capacity bindings 15 2 - CPU capacity definition 18 CPU capacity is a number that provides the scheduler information about CPUs 27 final capacity should, however, be: 43 3 - capacity-dmips-mhz 46 capacity-dmips-mhz is an optional cpu node [1] property: u32 value 47 representing CPU capacity expressed in normalized DMIPS/MHz. At boot time, the 48 maximum frequency available to the cpu is then used to calculate the capacity 51 capacity-dmips-mhz property is all-or-nothing: if it is specified for a cpu 53 fall back to the default capacity value for every CPU. If cpufreq is not [all …]
|
| /freebsd/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_iobuf.c | 59 size_t capacity; /**< capacity of @p buf */ member 67 * buffer of @p size and @p capacity. in BHND_NVRAM_IOPS_DEFN() 72 * If @p capacity is less than @p size, a capacity of @p size will be used. in BHND_NVRAM_IOPS_DEFN() 75 * @param capacity The total capacity of the I/O context buffer; in BHND_NVRAM_IOPS_DEFN() 77 * @p capacity via bhnd_nvram_io_setsize(). in BHND_NVRAM_IOPS_DEFN() 81 * @retval NULL the requested @p capacity is less than in BHND_NVRAM_IOPS_DEFN() 85 bhnd_nvram_iobuf_empty(size_t size, size_t capacity) in BHND_NVRAM_IOPS_DEFN() 91 /* Sanity check the capacity */ in BHND_NVRAM_IOPS_DEFN() 92 if (size > capacity) in BHND_NVRAM_IOPS_DEFN() 95 /* Would sizeof(iobuf)+capacity overflow? */ in BHND_NVRAM_IOPS_DEFN() [all …]
|
| H A D | bhnd_nvram_ioptr.c | 58 size_t capacity; /**< capacity at @p ptr */ member 74 * @param capacity The maximum number of bytes that may be mapped in BHND_NVRAM_IOPS_DEFN() 80 * @retval NULL the requested @p capacity is less than @p size. in BHND_NVRAM_IOPS_DEFN() 83 bhnd_nvram_ioptr_new(const void *ptr, size_t size, size_t capacity, in BHND_NVRAM_IOPS_DEFN() 88 /* Sanity check the capacity */ in BHND_NVRAM_IOPS_DEFN() 89 if (size > capacity) in BHND_NVRAM_IOPS_DEFN() 100 ioptr->capacity = capacity; in BHND_NVRAM_IOPS_DEFN() 128 /* Can't exceed the actual capacity */ in bhnd_nvram_ioptr_setsize() 129 if (size > ioptr->capacity) in bhnd_nvram_ioptr_setsize()
|
| /freebsd/share/man/man4/ |
| H A D | acpi_battery.4 | 73 Battery capacity in percent, 136 capacity and charge rate encoded in the following: 146 Note that capacity is expressed in mWh or mAh, 150 The Battery's design capacity, 151 which is the nominal capacity of a new battery. 156 Predicted battery capacity when fully charged. 168 Design capacity of warning. 169 When a discharging battery device reaches this capacity, 172 Design capacity of low. 177 approximately equal to the value of Design Capacity. [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/ |
| H A D | HashTable.h | 105 support::ulittle32_t Capacity; member 115 explicit HashTable(uint32_t Capacity) { in HashTable() argument 116 Buckets.resize(Capacity); in HashTable() 123 if (H->Capacity == 0) in load() 125 "Invalid Hash Table Capacity"); in load() 126 if (H->Size > maxLoad(H->Capacity)) in load() 130 Buckets.resize(H->Capacity); in load() 186 H.Capacity = capacity(); in commit() 212 uint32_t capacity() const { return Buckets.size(); } in capacity() function 222 uint32_t H = Traits.hashLookupKey(K) % capacity(); in find_as() [all …]
|
| /freebsd/sys/dev/acpica/ |
| H A D | acpiio.h | 60 #define ACPI_BIF_UNITS_MW 0 /* Capacity in mWh, rate in mW. */ 61 #define ACPI_BIF_UNITS_MA 1 /* Capacity in mAh, rate in mA. */ 62 uint32_t dcap; /* Design Capacity */ 63 uint32_t lfcap; /* Last Full capacity */ 66 uint32_t wcap; /* WARN capacity */ 67 uint32_t lcap; /* Low capacity */ 83 #define ACPI_BIX_UNITS_MW 0 /* Capacity in mWh, rate in mW. */ 84 #define ACPI_BIX_UNITS_MA 1 /* Capacity in mAh, rate in mA. */ 85 uint32_t dcap; /* Design Capacity */ 86 uint32_t lfcap; /* Last Full capacity */ [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | SmallVector.cpp | 57 "1 byte elements have word-sized type for size and capacity"); 63 std::string Reason = "SmallVector unable to grow. Requested capacity (" + in report_size_overflow() 74 /// Report that this vector is already at maximum capacity. Throws 79 "SmallVector capacity unable to grow. Already at maximum size " + in report_at_maximum_capacity() 93 // Ensure we can fit the new capacity. in getNewCapacity() 94 // This is only going to be applicable when the capacity is 32 bit. in getNewCapacity() 100 // default MinSize of 0, but the current capacity cannot be increased. in getNewCapacity() 101 // This is only going to be applicable when the capacity is 32 bit. in getNewCapacity() 105 // In theory 2*capacity can overflow if the capacity is 64 bit, but the in getNewCapacity() 106 // original capacity would never be large enough for this to be a problem. in getNewCapacity() [all …]
|
| H A D | TextEncoding.cpp | 58 HandleOverflow(size_t &Capacity, char *&Output, size_t &OutputLength, in HandleOverflow() argument 63 Capacity = in HandleOverflow() 64 (Capacity < Result.max_size() / 2) ? 2 * Capacity : Result.max_size(); in HandleOverflow() 66 Result.resize_for_overwrite(Capacity); in HandleOverflow() 68 OutputLength = Capacity; in HandleOverflow() 148 size_t Capacity = Result.capacity(); in convertString() local 149 size_t OutputLength = Capacity; in convertString() 150 Result.resize_for_overwrite(Capacity); in convertString() 172 if (Capacity < Result.max_size()) { in convertString() 173 HandleOverflow(Capacity, Output, OutputLength, Result); in convertString() [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/libc/src/__support/ |
| H A D | fixedvector.h | 1 //===-- A data structure for a fixed capacity data store --------*- C++ -*-===// 22 template <typename T, size_t CAPACITY> class FixedVector { 23 cpp::array<T, CAPACITY> store; 29 using iterator = typename cpp::array<T, CAPACITY>::iterator; 32 LIBC_ASSERT(begin + CAPACITY >= end); 37 using const_iterator = typename cpp::array<T, CAPACITY>::const_iterator; 40 LIBC_ASSERT(begin + CAPACITY >= end); 47 LIBC_ASSERT(count <= CAPACITY); 53 if (item_count == CAPACITY) in push_back() 106 LIBC_INLINE static void destroy(FixedVector<T, CAPACITY> *store) { in destroy() [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/power/supply/ |
| H A D | battery.yaml | 64 description: battery design capacity 99 ocv-capacity-celsius: 102 for each of the battery capacity lookup table. 126 '^ocv-capacity-table-[0-9]+$': 130 of the battery and corresponding battery capacity percent, which is used 131 to look up battery capacity according to current OCV value. And the open 137 - description: battery capacity percent 162 ocv-capacity-celsius = <(-10) 0 10>; 164 ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>; 166 ocv-capacity-table-1 = <4200000 100>, <4185000 95>, <4113000 90>; [all …]
|
| /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); 178 /// capacity - Return the total number of elements in the currently allocated [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
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | TypeLocBuilder.h | 29 /// The capacity of the current buffer. 30 size_t Capacity; variable 48 : Buffer(InlineBuffer), Capacity(InlineCapacity), Index(InlineCapacity), in TypeLocBuilder() 59 /// Ensures that this buffer has at least as much capacity as described. 61 if (Requested > Capacity) in reserve() 87 Index = Capacity; in clear() 115 size_t FullDataSize = Capacity - Index; in getTypeSourceInfo() 128 size_t FullDataSize = Capacity - Index; in getTypeLocInContext() 138 /// Grow to the given capacity.
|
| /freebsd/sys/contrib/device-tree/src/arm64/cix/ |
| H A D | sky1.dtsi | 24 capacity-dmips-mhz = <403>; 32 capacity-dmips-mhz = <403>; 40 capacity-dmips-mhz = <403>; 48 capacity-dmips-mhz = <403>; 56 capacity-dmips-mhz = <1024>; 64 capacity-dmips-mhz = <1024>; 72 capacity-dmips-mhz = <1024>; 80 capacity-dmips-mhz = <1024>; 88 capacity-dmips-mhz = <1024>; 96 capacity-dmips-mhz = <1024>; [all …]
|
| /freebsd/crypto/openssl/test/ |
| H A D | quic_cc_test.c | 42 * some capacity of the network until the packet exits the network. Note that 43 * the capacity is not known to the congestion controller as the entire point of 44 * a congestion controller is to correctly estimate this capacity and this is 98 uint64_t capacity; /* bytes/s */ member 109 uint64_t capacity, uint64_t latency) in net_sim_init() argument 114 s->capacity = capacity; in net_sim_init() 117 s->spare_capacity = capacity; in net_sim_init() 150 * increase our spare capacity. in net_sim_send() 312 s->capacity, in dump_state() 325 * capacity. The average estimated channel capacity should not be too far from [all …]
|
| /freebsd/sys/contrib/device-tree/src/arm/samsung/ |
| H A D | exynos5422-cpus.dtsi | 65 capacity-dmips-mhz = <539>; 78 capacity-dmips-mhz = <539>; 91 capacity-dmips-mhz = <539>; 104 capacity-dmips-mhz = <539>; 117 capacity-dmips-mhz = <1024>; 130 capacity-dmips-mhz = <1024>; 143 capacity-dmips-mhz = <1024>; 156 capacity-dmips-mhz = <1024>;
|
| H A D | exynos5420-cpus.dtsi | 66 capacity-dmips-mhz = <1024>; 78 capacity-dmips-mhz = <1024>; 90 capacity-dmips-mhz = <1024>; 102 capacity-dmips-mhz = <1024>; 114 capacity-dmips-mhz = <539>; 126 capacity-dmips-mhz = <539>; 138 capacity-dmips-mhz = <539>; 150 capacity-dmips-mhz = <539>;
|
| /freebsd/sys/contrib/ck/src/ |
| H A D | ck_hs.c | 91 unsigned long capacity; member 114 if (i->offset >= map->capacity) in _ck_hs_next() 130 } while (++i->offset < map->capacity); in _ck_hs_next() 230 map->capacity = n_entries; in ck_hs_map_create() 255 ck_hs_reset_size(struct ck_hs *hs, unsigned long capacity) in ck_hs_reset_size() argument 260 map = ck_hs_map_create(hs, capacity); in ck_hs_reset_size() 275 return ck_hs_reset_size(hs, previous->capacity); in ck_hs_reset() 334 unsigned long capacity) in ck_hs_grow() argument 342 if (map->capacity > capacity) in ck_hs_grow() 345 update = ck_hs_map_create(hs, capacity); in ck_hs_grow() [all …]
|
| H A D | ck_ht.c | 88 CK_HT_TYPE capacity; member 170 map->capacity = n_entries; in ck_ht_map_create() 171 map->step = ck_cc_ffsll(map->capacity); in ck_ht_map_create() 172 map->mask = map->capacity - 1; in ck_ht_map_create() 393 memset(map->probe_bound, 0, sizeof(CK_HT_WORD) * map->capacity); in ck_ht_gc() 402 size = sizeof(CK_HT_WORD) * map->capacity; in ck_ht_gc() 413 for (i = 0; i < map->capacity; i++) { in ck_ht_gc() 484 for (i = 0; i < map->capacity; i++) in ck_ht_gc() 616 if (i->offset >= map->capacity) in ck_ht_next() 623 } while (++i->offset < map->capacity); in ck_ht_next() [all …]
|
| /freebsd/contrib/unbound/sldns/ |
| H A D | sbuffer.c | 19 sldns_buffer_new(size_t capacity) in sldns_buffer_new() argument 27 buffer->_data = (uint8_t *) malloc(capacity); in sldns_buffer_new() 34 buffer->_limit = buffer->_capacity = capacity; in sldns_buffer_new() 74 sldns_buffer_set_capacity(sldns_buffer *buffer, size_t capacity) in sldns_buffer_set_capacity() argument 79 assert(buffer->_position <= capacity && !buffer->_fixed); in sldns_buffer_set_capacity() 81 data = (uint8_t *) realloc(buffer->_data, capacity); in sldns_buffer_set_capacity() 87 buffer->_limit = buffer->_capacity = capacity; in sldns_buffer_set_capacity()
|
| /freebsd/contrib/ldns/ |
| H A D | buffer.c | 16 ldns_buffer_new(size_t capacity) in ldns_buffer_new() argument 24 buffer->_data = (uint8_t *) LDNS_XMALLOC(uint8_t, capacity); in ldns_buffer_new() 31 buffer->_limit = buffer->_capacity = capacity; in ldns_buffer_new() 60 ldns_buffer_set_capacity(ldns_buffer *buffer, size_t capacity) in ldns_buffer_set_capacity() argument 65 assert(buffer->_position <= capacity); in ldns_buffer_set_capacity() 68 data = (uint8_t *) LDNS_XREALLOC(buffer->_data, uint8_t, capacity); in ldns_buffer_set_capacity() 74 buffer->_limit = buffer->_capacity = capacity; in ldns_buffer_set_capacity()
|
| /freebsd/sys/contrib/device-tree/src/arm64/amlogic/ |
| H A D | meson-gxm.dtsi | 46 capacity-dmips-mhz = <1024>; 50 capacity-dmips-mhz = <1024>; 54 capacity-dmips-mhz = <1024>; 58 capacity-dmips-mhz = <1024>; 66 capacity-dmips-mhz = <1024>; 77 capacity-dmips-mhz = <1024>; 88 capacity-dmips-mhz = <1024>; 99 capacity-dmips-mhz = <1024>;
|