Searched refs:capacity (Results 1 - 25 of 72) sorted by relevance

123

/freebsd-10.1-release/contrib/llvm/include/llvm/Support/
H A DCapacity.h10 // This file defines the capacity function that computes the amount of
24 // This default definition of capacity should work for things like std::vector
26 return x.capacity() * sizeof(typename T::value_type);
/freebsd-10.1-release/contrib/ldns/
H A Dbuffer.c16 ldns_buffer_new(size_t capacity) argument
24 buffer->_data = (uint8_t *) LDNS_XMALLOC(uint8_t, capacity);
31 buffer->_limit = buffer->_capacity = capacity;
60 ldns_buffer_set_capacity(ldns_buffer *buffer, size_t capacity) argument
65 assert(buffer->_position <= capacity);
67 data = (uint8_t *) LDNS_XREALLOC(buffer->_data, uint8_t, capacity);
73 buffer->_limit = buffer->_capacity = capacity;
H A Dradix.c103 node->capacity = 0;
841 assert(node->capacity == 0);
849 node->capacity = 1;
855 assert(node->capacity > 0);
865 /** Is there enough capacity? */
866 if (node->len + need > node->capacity) {
867 /** Not enough capacity, grow array */
890 /** Is there enough capacity? */
891 if (node->len + need > node->capacity) {
892 /** Not enough capacity, gro
[all...]
/freebsd-10.1-release/contrib/unbound/ldns/
H A Dsbuffer.c19 sldns_buffer_new(size_t capacity) argument
27 buffer->_data = (uint8_t *) malloc(capacity);
34 buffer->_limit = buffer->_capacity = capacity;
72 sldns_buffer_set_capacity(sldns_buffer *buffer, size_t capacity) argument
77 assert(buffer->_position <= capacity);
79 data = (uint8_t *) realloc(buffer->_data, capacity);
85 buffer->_limit = buffer->_capacity = capacity;
/freebsd-10.1-release/usr.sbin/nscd/
H A Dhashtable.h54 size_t capacity; \
82 (table)->entries[var].field.capacity = \
129 ((entry)->field.capacity)
133 (entry)->field.capacity *= 2; \
135 (entry)->field.capacity * sizeof(type)); \
140 (entry)->field.capacity /= 2; \
142 (entry)->field.capacity * sizeof(type)); \
169 if (the_entry->field.size == the_entry->field.capacity) \
/freebsd-10.1-release/sys/dev/virtio/block/
H A Dvirtio_blk.h49 /* The capacity (in 512-byte sectors). */
50 uint64_t capacity; member in struct:virtio_blk_config
H A Dvirtio_blk.c455 uint64_t capacity; local
462 capacity = blkcfg.capacity * 512;
464 if (sc->vtblk_disk->d_mediasize != capacity)
465 vtblk_resize_disk(sc, capacity);
739 dp->d_mediasize = blkcfg->capacity * 512;
1012 /* The capacity is always available. */
1014 capacity), &blkcfg->capacity, sizeof(blkcfg->capacity));
[all...]
/freebsd-10.1-release/contrib/gcc/
H A Dtree-phinodes.c207 int capacity, i; local
209 capacity = ideal_phi_node_len (len);
211 phi = allocate_phi_node (capacity);
220 PHI_ARG_CAPACITY (phi) = capacity;
227 for (i = 0; i < capacity; i++)
368 If PHI has reached its maximum capacity, add a few slots. In this case,
/freebsd-10.1-release/contrib/ofed/management/opensm/complib/
H A Dcl_vector.c355 if (new_capacity <= p_vector->capacity) {
370 p_vector->capacity * sizeof(void *));
380 * We have to add capacity to the array. Determine how many
383 new_elements = new_capacity - p_vector->capacity;
397 for (i = p_vector->capacity; i < new_capacity; i++) {
404 p_vector->capacity = new_capacity;
425 if (size >= p_vector->capacity) {
429 /* Calculate the new capacity, taking into account the grow size. */
H A Dcl_ptr_vector.c178 if (new_capacity <= p_vector->capacity) {
193 p_vector->capacity * sizeof(void *));
203 p_vector->capacity = new_capacity;
223 if (size >= p_vector->capacity) {
227 /* Calculate the new capacity, taking into account the grow size. */
/freebsd-10.1-release/contrib/llvm/lib/Support/
H A Draw_ostream.cpp696 // capacity. This allows raw_ostream to write directly into the correct place,
705 SetBuffer(OS.end(), OS.capacity() - OS.size());
719 if (OS.capacity() - OS.size() < 64)
720 OS.reserve(OS.capacity() * 2);
721 SetBuffer(OS.end(), OS.capacity() - OS.size());
729 assert(OS.size() + Size <= OS.capacity() && "Invalid write_impl() call!");
739 if (OS.capacity() - OS.size() < 64)
740 OS.reserve(OS.capacity() * 2);
743 SetBuffer(OS.end(), OS.capacity() - OS.size());
/freebsd-10.1-release/contrib/ofed/management/opensm/include/complib/
H A Dcl_ptr_vector.h183 size_t capacity; member in struct:_cl_ptr_vector
195 * capacity
307 * The cl_ptr_vector_get_capacity function returns the capacity of
318 return (p_vector->capacity);
324 * [in] Pointer to a cl_ptr_vector_t structure whose capacity to return.
330 * The capacity is the number of elements that the pointer vector can store,
599 * [in] Pointer to a cl_ptr_vector_t structure whose capacity to set.
606 * CL_SUCCESS if the capacity was successfully set.
612 * cl_ptr_vector_set_capacity increases the capacity of the pointer vector.
614 * capacity i
[all...]
H A Dcl_vector.h297 size_t capacity; member in struct:_cl_vector
315 * capacity
456 * is left initialized to a zero capacity and size.
470 * The cl_vector_get_capacity function returns the capacity of a vector.
480 return (p_vector->capacity);
486 * [in] Pointer to a cl_vector_t structure whose capacity to return.
492 * The capacity is the number of elements that the vector can store, and
722 * [in] Pointer to a cl_vector_t structure whose capacity to set.
729 * CL_SUCCESS if the capacity was successfully set.
735 * cl_vector_set_capacity increases the capacity o
[all...]
/freebsd-10.1-release/contrib/ldns/ldns/
H A Dradix.h84 uint16_t capacity; member in struct:ldns_radix_node_t
/freebsd-10.1-release/contrib/ofed/management/opensm/opensm/
H A Dosm_mcast_tbl.c57 IN uint8_t const num_ports, IN uint16_t const capacity)
66 if (capacity == 0) {
74 p_tbl->num_entries = capacity;
84 p_tbl->max_mlid_ho = (uint16_t) (IB_LID_MCAST_START_HO + capacity - 1);
56 osm_mcast_tbl_init(IN osm_mcast_tbl_t * const p_tbl, IN uint8_t const num_ports, IN uint16_t const capacity) argument
/freebsd-10.1-release/contrib/unbound/services/cache/
H A Ddns.h164 * @param capacity: number of rrsets space to create in the array.
168 uint16_t qclass, struct regional* region, size_t capacity);
/freebsd-10.1-release/contrib/ofed/management/opensm/include/opensm/
H A Dosm_mcast_tbl.h119 IN uint8_t const num_ports, IN uint16_t const capacity);
125 * capacity
/freebsd-10.1-release/contrib/llvm/include/llvm/ADT/
H A DSmallVector.h51 /// capacity_in_bytes - This returns capacity()*sizeof(T).
130 /// capacity - Return the total number of elements in the currently allocated
132 size_t capacity() const { return capacity_ptr() - begin(); } function in class:llvm::SmallVectorTemplateCommon
269 size_t CurCapacity = this->capacity();
406 if (this->capacity() < N)
418 if (this->capacity() < N)
426 if (this->capacity() < N)
472 if (this->capacity() < NumElts)
694 /// capacity for.
698 /// Clients can use this in conjunction with capacity() t
[all...]
/freebsd-10.1-release/contrib/llvm/lib/Support/Windows/
H A DPath.inc55 DWORD len = ::GetTempPathW(result.capacity(), result.begin());
60 if (len > result.capacity()) {
220 DWORD Size = ::GetModuleFileNameW(NULL, PathName.data(), PathName.capacity());
228 if (Size == PathName.capacity())
268 len = ::GetCurrentDirectoryW(cur_path.capacity(), cur_path.data());
276 } while (len > cur_path.capacity());
/freebsd-10.1-release/sys/dev/hpt27xx/
H A Darray.h165 __HPT_RAW_LBA capacity; member in struct:_raw_partition
/freebsd-10.1-release/sys/dev/hptnr/
H A Darray.h164 __HPT_RAW_LBA capacity; member in struct:_raw_partition
/freebsd-10.1-release/sys/dev/hptrr/
H A Darray.h166 __HPT_RAW_LBA capacity; member in struct:_raw_partition
/freebsd-10.1-release/sys/dev/pst/
H A Dpst-raid.c142 printf("pst: capacity=%lld blocksize=%d\n",
143 psc->info->capacity, psc->info->block_size);
160 psc->disk->d_mediasize = psc->info->capacity;
167 (unsigned long long)psc->info->capacity / (1024 * 1024),
168 name, psc->info->capacity/(512*255*63), 255, 63,
/freebsd-10.1-release/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_diskstorage_tbl.c88 int32_t capacity; member in struct:disk_entry
224 entry->capacity = 0;
240 entry->capacity = (mediasize > INT_MAX ? INT_MAX : mediasize);
649 value->v.integer = entry->capacity;
/freebsd-10.1-release/contrib/libcxxrt/
H A Dlibelftc_dem_gnu3.c50 /** Total capacity */
51 size_t capacity; member in struct:vector_str
66 size_t size, capacity; member in struct:vector_type_qualifier
77 size_t size, capacity; member in struct:vector_read_cmd
214 assert(v->capacity > 0);
216 tmp_cap = v->capacity * BUFFER_GROWFACTOR;
218 assert(tmp_cap > v->capacity);
229 v->capacity = tmp_cap;
246 v->capacity = VECTOR_DEF_CAPACITY;
248 assert(v->capacity >
[all...]

Completed in 244 milliseconds

123