| /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/dc/basics/ |
| H A D | amdgpu_vector.c | 39 uint32_t capacity, in dal_vector_construct() argument 44 if (!struct_size || !capacity) { in dal_vector_construct() 50 vector->container = kcalloc(capacity, struct_size, GFP_KERNEL); in dal_vector_construct() 53 vector->capacity = capacity; in dal_vector_construct() 93 vector->capacity = count; in dal_vector_presized_costruct() 121 uint32_t capacity, in dal_vector_create() argument 129 if (dal_vector_construct(vector, ctx, capacity, struct_size)) in dal_vector_create() 142 vector->capacity = 0; in dal_vector_destruct() 217 if (vector->count == vector->capacity) { in dal_vector_insert_at() 220 calc_increased_capacity(vector->capacity))) in dal_vector_insert_at() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/dmub/inc/ |
| H A D | dmub_rb.h | 43 uint32_t capacity; member 51 uint32_t capacity; member 70 data_count = rb->capacity - (rb->rptr - rb->wrpt); in dmub_rb_full() 72 return (data_count == (rb->capacity - DMUB_RB_CMD_SIZE)); in dmub_rb_full() 91 if (rb->wrpt >= rb->capacity) in dmub_rb_push_front() 92 rb->wrpt %= rb->capacity; in dmub_rb_push_front() 117 if (rb->rptr >= rb->capacity) in dmub_rb_pop_front() 118 rb->rptr %= rb->capacity; in dmub_rb_pop_front() 138 if (rptr >= rb->capacity) in dmub_rb_flush_pending() 139 rptr %= rb->capacity; in dmub_rb_flush_pending() [all …]
|
| /netbsd-src/sys/dev/audio/ |
| H A D | audiodef.h | 315 KASSERTMSG(idx < ring->capacity * 2, in auring_round() 316 "idx=%d ring->capacity=%d", idx, ring->capacity); in auring_round() 318 if (idx < ring->capacity) { in auring_round() 321 return idx - ring->capacity; in auring_round() 396 return frametobyte(&ring->fmt, ring->capacity); in auring_bytelen() 428 KASSERTMSG(ring->used + n <= ring->capacity, in auring_push_() 430 func, line, ring->used, n, ring->capacity); in auring_push_() 443 if (ring->head + ring->used <= ring->capacity) { in auring_get_contig_used() 446 return ring->capacity - ring->head; in auring_get_contig_used() 458 if (ring->head + ring->used < ring->capacity) { in auring_get_contig_free() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libobjc/ |
| H A D | sarray.c | 131 assert (soffset_decode (index) < array->capacity); /* Range check */ in sarray_at_put() 204 if (soffset_decode (index) >= array->capacity) in sarray_at_put_safe() 230 arr->capacity = num_indices*INDEX_CAPACITY; in sarray_new() 242 arr->capacity = num_indices*BUCKET_SIZE; in sarray_new() 293 size_t old_max_index = (array->capacity - 1)/INDEX_CAPACITY; in sarray_realloc() 301 size_t old_max_index = (array->capacity - 1)/BUCKET_SIZE; in sarray_realloc() 315 if (rounded_size <= array->capacity) in sarray_realloc() 322 if (rounded_size > array->capacity) in sarray_realloc() 333 array->capacity = rounded_size; in sarray_realloc() 390 size_t old_max_index = (array->capacity - 1)/INDEX_CAPACITY; in sarray_free() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libobjc/ |
| H A D | sarray.c | 131 assert (soffset_decode (index) < array->capacity); /* Range check */ in sarray_at_put() 204 if (soffset_decode (index) >= array->capacity) in sarray_at_put_safe() 230 arr->capacity = num_indices*INDEX_CAPACITY; in sarray_new() 242 arr->capacity = num_indices*BUCKET_SIZE; in sarray_new() 293 size_t old_max_index = (array->capacity - 1)/INDEX_CAPACITY; in sarray_realloc() 301 size_t old_max_index = (array->capacity - 1)/BUCKET_SIZE; in sarray_realloc() 315 if (rounded_size <= array->capacity) in sarray_realloc() 322 if (rounded_size > array->capacity) in sarray_realloc() 333 array->capacity = rounded_size; in sarray_realloc() 390 size_t old_max_index = (array->capacity - 1)/INDEX_CAPACITY; in sarray_free() [all …]
|
| /netbsd-src/external/bsd/nsd/dist/ |
| H A D | buffer.c | 25 buffer_create(region_type *region, size_t capacity) in buffer_create() argument 32 buffer->_data = (uint8_t *) xalloc(capacity); in buffer_create() 34 buffer->_limit = buffer->_capacity = capacity; in buffer_create() 83 buffer_set_capacity(buffer_type *buffer, size_t capacity) in buffer_set_capacity() argument 86 assert(buffer->_position <= capacity); in buffer_set_capacity() 87 buffer->_data = (uint8_t *) xrealloc(buffer->_data, capacity); in buffer_set_capacity() 88 buffer->_limit = buffer->_capacity = capacity; in buffer_set_capacity()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/profile/ |
| H A D | vector | 104 __profcxx_vector_size_construct(_M_conjure().capacity()); 114 _M_conjure().capacity(), 300 // 23.2.4.2 capacity: 307 _M_profile_resize(this->capacity(), __sz); 315 _M_profile_resize(this->capacity(), __sz); 323 _M_profile_resize(this->capacity(), __sz); 346 size_type __old_size = this->capacity(); 348 _M_profile_resize(__old_size, this->capacity()); 355 size_type __old_size = this->capacity(); 357 _M_profile_resize(__old_size, this->capacity()); [all …]
|
| /netbsd-src/external/bsd/unbound/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/PDB/Native/ |
| H A D | HashTable.h | 187 H.Capacity = capacity(); in commit() 213 uint32_t capacity() const { return Buckets.size(); } in capacity() function 223 uint32_t H = Traits.hashLookupKey(K) % capacity(); in find_as() 241 I = (I + 1) % capacity(); in find_as() 302 static uint32_t maxLoad(uint32_t capacity) { return capacity * 2 / 3 + 1; } in maxLoad() argument 307 uint32_t MaxLoad = maxLoad(capacity()); in grow() 308 if (S < maxLoad(capacity())) in grow() 310 assert(capacity() != UINT32_MAX && "Can't grow Hash table!"); in grow() 312 uint32_t NewCapacity = (capacity() <= INT32_MAX) ? MaxLoad * 2 : UINT32_MAX; in grow() 327 assert(capacity() == NewCapacity); in grow()
|
| /netbsd-src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/ |
| 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>;
|
| /netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/src/c++17/ |
| H A D | fs_path.cc | 225 int capacity() const { return _M_capacity; } in capacity() function 291 if (impl && impl->capacity() >= newsize) in operator =() 337 path::_List::capacity() const noexcept in capacity() function in path::_List 340 return ptr->capacity(); in capacity() 445 int curcap = curptr ? curptr->capacity() : 0; in reserve() 512 if (_M_pathname.capacity() < __len || _M_cmpts.capacity() < __maxcmpts) in operator /=() 575 int capacity = 0; in operator /=() 577 capacity += _M_cmpts.size(); in operator /=() 579 capacity += 1; in operator /=() 581 capacity += __p._M_cmpts.size(); in operator /=() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/src/c++17/ |
| H A D | fs_path.cc | 226 int capacity() const { return _M_capacity; } in capacity() function 292 if (impl && impl->capacity() >= newsize) in operator =() 338 path::_List::capacity() const noexcept in capacity() function in path::_List 341 return ptr->capacity(); in capacity() 446 int curcap = curptr ? curptr->capacity() : 0; in reserve() 513 if (_M_pathname.capacity() < __len || _M_cmpts.capacity() < __maxcmpts) in operator /=() 576 int capacity = 0; in operator /=() 578 capacity += _M_cmpts.size(); in operator /=() 580 capacity += 1; in operator /=() 582 capacity += __p._M_cmpts.size(); in operator /=() [all …]
|
| /netbsd-src/etc/powerd/scripts/ |
| H A D | sensor_battery | 21 warning-capacity|warning-under) 26 critical-capacity|critical-under) 41 high-capacity) 46 maximum-capacity)
|
| /netbsd-src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/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>;
|
| /netbsd-src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/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>;
|
| /netbsd-src/usr.sbin/envstat/ |
| H A D | config_lex.l | 52 …ENSORPROP warning-max|high-capacity|warning-min|warning-capacity|critical-max|maximum-capacity|cri…
|
| /netbsd-src/external/gpl3/gdb/dist/zlib/contrib/dotzlib/DotZLib/ |
| H A D | CircularBuffer.cs | 27 public CircularBuffer(int capacity) in CircularBuffer() argument 29 Debug.Assert( capacity > 0 ); in CircularBuffer() 30 _buffer = new byte[capacity]; in CircularBuffer() 31 _capacity = capacity; in CircularBuffer()
|
| /netbsd-src/external/gpl3/binutils.old/dist/zlib/contrib/dotzlib/DotZLib/ |
| H A D | CircularBuffer.cs | 27 public CircularBuffer(int capacity) in CircularBuffer() argument 29 Debug.Assert( capacity > 0 ); in CircularBuffer() 30 _buffer = new byte[capacity]; in CircularBuffer() 31 _capacity = capacity; in CircularBuffer()
|
| /netbsd-src/external/gpl3/gdb.old/dist/zlib/contrib/dotzlib/DotZLib/ |
| H A D | CircularBuffer.cs | 27 public CircularBuffer(int capacity) in CircularBuffer() argument 29 Debug.Assert( capacity > 0 ); in CircularBuffer() 30 _buffer = new byte[capacity]; in CircularBuffer() 31 _capacity = capacity; in CircularBuffer()
|
| /netbsd-src/common/dist/zlib/contrib/dotzlib/DotZLib/ |
| H A D | CircularBuffer.cs | 27 public CircularBuffer(int capacity) in CircularBuffer() argument 29 Debug.Assert( capacity > 0 ); in CircularBuffer() 30 _buffer = new byte[capacity]; in CircularBuffer() 31 _capacity = capacity; in CircularBuffer()
|
| /netbsd-src/external/gpl3/binutils/dist/zlib/contrib/dotzlib/DotZLib/ |
| H A D | CircularBuffer.cs | 27 public CircularBuffer(int capacity) in CircularBuffer() argument 29 Debug.Assert( capacity > 0 ); in CircularBuffer() 30 _buffer = new byte[capacity]; in CircularBuffer() 31 _capacity = capacity; in CircularBuffer()
|
| /netbsd-src/common/lib/libprop/ |
| H A D | prop_array.c | 259 _prop_array_alloc(unsigned int capacity) in _prop_array_alloc() argument 264 if (capacity != 0) { in _prop_array_alloc() 265 array = _PROP_CALLOC(capacity * sizeof(prop_object_t), in _prop_array_alloc() 279 pa->pa_capacity = capacity; in _prop_array_alloc() 291 _prop_array_expand(prop_array_t pa, unsigned int capacity) in _prop_array_expand() argument 301 array = _PROP_CALLOC(capacity * sizeof(*array), M_PROP_ARRAY); in _prop_array_expand() 307 pa->pa_capacity = capacity; in _prop_array_expand() 395 prop_array_create_with_capacity(unsigned int capacity) in prop_array_create_with_capacity() argument 398 return (_prop_array_alloc(capacity)); in prop_array_create_with_capacity() 495 prop_array_ensure_capacity(prop_array_t pa, unsigned int capacity) in prop_array_ensure_capacity() argument [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/include/ |
| H A D | vector.h | 35 uint32_t capacity; member 42 uint32_t capacity, 47 uint32_t capacity, 106 bool dal_vector_reserve(struct vector *vector, uint32_t capacity);
|