/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 85 bhnd_nvram_iobuf_empty(size_t size, size_t capacity) in BHND_NVRAM_IOPS_DEFN() 92 if (size > capacity) in BHND_NVRAM_IOPS_DEFN() 96 if (SIZE_MAX - sizeof(*iobuf) < capacity) { in BHND_NVRAM_IOPS_DEFN() 101 iosz = sizeof(*iobuf) + capacity; in BHND_NVRAM_IOPS_DEFN() 112 iobuf->capacity = capacity; in BHND_NVRAM_IOPS_DEFN() 119 iobuf->buf = bhnd_nv_malloc(iobuf->capacity); in BHND_NVRAM_IOPS_DEFN() 244 if (size > iobuf->capacity) in bhnd_nvram_iobuf_setsize()
|
H A D | bhnd_nvram_ioptr.c | 58 size_t capacity; /**< capacity at @p ptr */ member 83 bhnd_nvram_ioptr_new(const void *ptr, size_t size, size_t capacity, in BHND_NVRAM_IOPS_DEFN() 89 if (size > capacity) in BHND_NVRAM_IOPS_DEFN() 100 ioptr->capacity = capacity; in BHND_NVRAM_IOPS_DEFN() 129 if (size > ioptr->capacity) in bhnd_nvram_ioptr_setsize()
|
/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 …]
|
H A D | ck_rhs.c | 119 unsigned long capacity; member 260 map->max_entries = (map->capacity * (unsigned long)hs->load_factor) / 100; in ck_rhs_set_load_factor() 262 if (ck_rhs_grow(hs, map->capacity << 1) == false) in ck_rhs_set_load_factor() 284 if (i->offset >= map->capacity) in ck_rhs_next() 298 } while (++i->offset < map->capacity); in ck_rhs_next() 368 map->capacity = n_entries; in ck_rhs_map_create() 373 map->max_entries = (map->capacity * (unsigned long)hs->load_factor) / 100; in ck_rhs_map_create() 401 ck_rhs_reset_size(struct ck_rhs *hs, unsigned long capacity) in ck_rhs_reset_size() argument 406 map = ck_rhs_map_create(hs, capacity); in ck_rhs_reset_size() 421 return ck_rhs_reset_size(hs, previous->capacity); in ck_rhs_reset() [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/elftoolchain/libelftc/ |
H A D | libelftc_vstr.c | 153 assert(v->capacity > 0); in vector_str_grow() 155 tmp_cap = BUFFER_GROW(v->capacity); in vector_str_grow() 157 assert(tmp_cap > v->capacity); in vector_str_grow() 168 v->capacity = tmp_cap; in vector_str_grow() 185 v->capacity = VECTOR_DEF_CAPACITY; in vector_str_init() 187 assert(v->capacity > 0); in vector_str_init() 189 if ((v->container = malloc(sizeof(char *) * v->capacity)) == NULL) in vector_str_init() 230 if (v->size == v->capacity && vector_str_grow(v) == false) in vector_str_push() 277 dst->capacity = tmp_cap; in vector_str_push_vector_head() 318 dst->capacity = tmp_cap; in vector_str_push_vector()
|
/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/usr.sbin/nscd/ |
H A D | hashtable.h | 52 size_t capacity; \ 80 (table)->entries[var].field.capacity = \ 127 ((entry)->field.capacity) 131 (entry)->field.capacity *= 2; \ 133 (entry)->field.capacity * sizeof(type)); \ 138 (entry)->field.capacity /= 2; \ 140 (entry)->field.capacity * sizeof(type)); \ 167 if (the_entry->field.size == the_entry->field.capacity) \
|
/freebsd/sbin/camcontrol/ |
H A D | depop.c | 103 uint64_t cap = scsi_8btou64(dtor_ptr[i].capacity); in depop_list() 117 int timeout, int verbosemode __unused, uint32_t elem, uint64_t capacity) in depop_remove() argument 131 capacity, in depop_remove() 208 uint64_t capacity = 0; in depop() local 213 capacity = strtoumax(optarg, &endptr, 0); in depop() 273 if (elem == 0 && capacity == 0) { in depop() 279 verbosemode, elem, capacity); in depop()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/ |
H A D | HashTable.h | 183 H.Capacity = capacity(); in commit() 209 uint32_t capacity() const { return Buckets.size(); } in capacity() function 219 uint32_t H = Traits.hashLookupKey(K) % capacity(); in find_as() 237 I = (I + 1) % capacity(); in find_as() 298 static uint32_t maxLoad(uint32_t capacity) { return capacity * 2 / 3 + 1; } in maxLoad() argument 303 uint32_t MaxLoad = maxLoad(capacity()); in grow() 304 if (S < maxLoad(capacity())) in grow() 306 assert(capacity() != UINT32_MAX && "Can't grow Hash table!"); in grow() 308 uint32_t NewCapacity = (capacity() <= INT32_MAX) ? MaxLoad * 2 : UINT32_MAX; in grow() 323 assert(capacity() == NewCapacity); in grow()
|
/freebsd/sys/contrib/device-tree/src/arm/samsung/ |
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>;
|
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>;
|
/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>;
|
H A D | meson-g12b.dtsi | 51 capacity-dmips-mhz = <592>; 61 capacity-dmips-mhz = <592>; 71 capacity-dmips-mhz = <1024>; 81 capacity-dmips-mhz = <1024>; 91 capacity-dmips-mhz = <1024>; 101 capacity-dmips-mhz = <1024>;
|
/freebsd/sys/contrib/device-tree/src/arm64/qcom/ |
H A D | sdm660.dtsi | 90 capacity-dmips-mhz = <1024>; 96 capacity-dmips-mhz = <1024>; 102 capacity-dmips-mhz = <1024>; 108 capacity-dmips-mhz = <1024>; 114 capacity-dmips-mhz = <640>; 120 capacity-dmips-mhz = <640>; 126 capacity-dmips-mhz = <640>; 132 capacity-dmips-mhz = <640>;
|
H A D | sdm632.dtsi | 65 capacity-dmips-mhz = <1980>; 70 capacity-dmips-mhz = <1980>; 75 capacity-dmips-mhz = <1980>; 80 capacity-dmips-mhz = <1980>;
|
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | vector.h | 35 DCHECK_LE(Size, capacity()); in push_back() 36 if (Size == capacity()) { in push_back() 55 constexpr uptr capacity() const { return CapacityBytes / sizeof(T); } in capacity() function 58 if (NewSize > capacity()) in reserve() 84 if (InitialCapacity > capacity())
|
/freebsd/sys/contrib/device-tree/src/arm64/apple/ |
H A D | t6002.dtsi | 77 capacity-dmips-mhz = <714>; 91 capacity-dmips-mhz = <714>; 105 capacity-dmips-mhz = <1024>; 119 capacity-dmips-mhz = <1024>; 133 capacity-dmips-mhz = <1024>; 147 capacity-dmips-mhz = <1024>; 161 capacity-dmips-mhz = <1024>; 175 capacity-dmips-mhz = <1024>; 189 capacity-dmips-mhz = <1024>; 203 capacity-dmips-mhz = <1024>;
|
H A D | t600x-common.dtsi | 69 capacity-dmips-mhz = <714>; 83 capacity-dmips-mhz = <714>; 97 capacity-dmips-mhz = <1024>; 111 capacity-dmips-mhz = <1024>; 125 capacity-dmips-mhz = <1024>; 139 capacity-dmips-mhz = <1024>; 153 capacity-dmips-mhz = <1024>; 167 capacity-dmips-mhz = <1024>; 181 capacity-dmips-mhz = <1024>; 195 capacity-dmips-mhz = <1024>;
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | zstdmt_compress.c | 91 size_t capacity; member 143 totalBufferSize += bufPool->bTable[u].capacity; in ZSTDMT_sizeof_bufferPool() 190 size_t const availBufferSize = buf.capacity; in ZSTDMT_getBuffer() 195 bufPool->nbBuffers, (U32)buf.capacity); in ZSTDMT_getBuffer() 209 buffer.capacity = (start==NULL) ? 0 : bSize; in ZSTDMT_getBuffer() 228 if (buffer.capacity < bSize) { in ZSTDMT_resizeBuffer() 232 newBuffer.capacity = start == NULL ? 0 : bSize; in ZSTDMT_resizeBuffer() 234 assert(newBuffer.capacity >= buffer.capacity); in ZSTDMT_resizeBuffer() 235 ZSTD_memcpy(newBuffer.start, buffer.start, buffer.capacity); in ZSTDMT_resizeBuffer() 254 (U32)buf.capacity, (U32)(bufPool->nbBuffers-1)); in ZSTDMT_releaseBuffer() [all …]
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_chain.h | 125 u32 capacity; member 240 return (u16)(p_chain->capacity - used); in ecore_chain_get_elem_left() 259 return p_chain->capacity - used; in ecore_chain_get_elem_left_u32() 267 p_chain->capacity); in ecore_chain_is_full() 270 p_chain->capacity); in ecore_chain_is_full() 478 return p_chain->capacity; in ecore_chain_get_capacity() 583 for (i = 0; i < p_chain->capacity; i++) in ecore_chain_reset() 630 p_chain->capacity = p_chain->usable_per_page * page_cnt; in ecore_chain_init_params() 769 (prod_idx - 1 + p_chain->capacity) % p_chain->capacity; in ecore_chain_set_prod() 800 (cons_idx - 1 + p_chain->capacity) % p_chain->capacity; in ecore_chain_set_cons()
|
/freebsd/sys/contrib/device-tree/src/arm64/arm/ |
H A D | juno-r1.dts | 102 capacity-dmips-mhz = <1024>; 119 capacity-dmips-mhz = <1024>; 136 capacity-dmips-mhz = <578>; 153 capacity-dmips-mhz = <578>; 170 capacity-dmips-mhz = <578>; 187 capacity-dmips-mhz = <578>;
|