Home
last modified time | relevance | path

Searched refs:allocated (Results 1 – 25 of 542) sorted by relevance

12345678910>>...22

/freebsd/contrib/libarchive/libarchive/
H A Darchive_write_disk_set_standard_lookup.c126 char *allocated = NULL; in lookup_gid()
138 free(allocated); in lookup_gid()
139 allocated = malloc(bufsize); in lookup_gid()
140 if (allocated == NULL) in lookup_gid()
142 buffer = allocated; in lookup_gid()
146 free(allocated); in lookup_gid()
195 char *allocated = NULL; in lookup_uid()
207 free(allocated); in lookup_uid()
208 allocated = malloc(bufsize); in lookup_uid()
209 if (allocated in lookup_uid()
127 char *allocated = NULL; lookup_gid() local
196 char *allocated = NULL; lookup_uid() local
[all...]
/freebsd/contrib/libcbor/src/cbor/
H A Dmaps.c18 return item->metadata.map_metadata.allocated; in cbor_map_allocated()
28 .metadata = {.map_metadata = {.allocated = size, in cbor_new_definite_map()
44 .metadata = {.map_metadata = {.allocated = 0, in cbor_new_indefinite_map()
58 if (metadata->end_ptr >= metadata->allocated) { in _cbor_map_add_key()
66 if (metadata->end_ptr >= metadata->allocated) { in _cbor_map_add_key()
69 if (!_cbor_safe_to_multiply(CBOR_BUFFER_GROWTH, metadata->allocated)) { in _cbor_map_add_key()
73 size_t new_allocation = metadata->allocated == 0 in _cbor_map_add_key()
75 : CBOR_BUFFER_GROWTH * metadata->allocated; in _cbor_map_add_key()
85 metadata->allocated = new_allocation; in _cbor_map_add_key()
H A Darrays.c19 return item->metadata.array_metadata.allocated; in cbor_array_allocated()
51 if (metadata->end_ptr >= metadata->allocated) { in cbor_array_push()
57 if (metadata->end_ptr >= metadata->allocated) { in cbor_array_push()
59 if (!_cbor_safe_to_multiply(CBOR_BUFFER_GROWTH, metadata->allocated)) { in cbor_array_push()
63 size_t new_allocation = metadata->allocated == 0 in cbor_array_push()
65 : CBOR_BUFFER_GROWTH * metadata->allocated; in cbor_array_push()
74 metadata->allocated = new_allocation; in cbor_array_push()
111 .allocated = size, in cbor_new_definite_array()
126 .allocated = 0, in cbor_new_indefinite_array()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/alloc_class/
H A Dalloc_class_016_pos.ksh48 result=$(zpool get -Hp allocated $TESTPOOL $CLASS_DISK0)
50 allocated=$3
51 echo $allocated bytes allocated on special device $CLASS_DISK0
54 if [[ $allocated -lt 20971520 ]]
56 log_fail "$allocated on special vdev $CLASS_DISK0, but expecting 20M"
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_symbolizer_libbacktrace.cpp44 uptr size, allocated; member
51 if (needed > data->allocated) { in CplusV3DemangleCallback()
52 data->allocated *= 2; in CplusV3DemangleCallback()
53 if (needed > data->allocated) in CplusV3DemangleCallback()
54 data->allocated = needed; in CplusV3DemangleCallback()
55 char *buf = (char *)InternalAlloc(data->allocated); in CplusV3DemangleCallback()
72 data.allocated = 0; in CplusV3Demangle()
75 if (data.size + 64 > data.allocated) in CplusV3Demangle()
/freebsd/lib/libthr/thread/
H A Dthr_spec.c69 if (_thread_keytable[i].allocated == 0) { in _thr_key_create()
70 _thread_keytable[i].allocated = 1; in _thr_key_create()
95 if (_thread_keytable[key].allocated) { in _thr_key_delete()
96 _thread_keytable[key].allocated = 0; in _thr_key_delete()
123 if (_thread_keytable[key].allocated && in _thread_cleanupspecific()
176 !_thread_keytable[key].allocated) in _thr_setspecific()
211 if (_thread_keytable[key].allocated && pthread->specific != NULL && in _thr_getspecific()
235 if (!_thread_keytable[key].allocated) in _thr_tsd_unload()
/freebsd/crypto/krb5/src/util/
H A Dt_array.pm47 size_t allocated;
58 arr->allocated = 10;
65 return arr->allocated;
82 size_t oldsize = sizeof(*arr->elts) * arr->allocated;
88 if (newcount < arr->allocated)
99 arr->allocated = newcount;
106 if (idx < 0 || (unsigned long) idx >= arr->allocated)
/freebsd/sys/crypto/via/
H A Dpadlock_cipher.c164 padlock_cipher_alloc(struct cryptop *crp, int *allocated) in padlock_cipher_alloc() argument
171 *allocated = 0; in padlock_cipher_alloc()
175 *allocated = 1; in padlock_cipher_alloc()
189 int allocated; in padlock_cipher_process() local
191 buf = padlock_cipher_alloc(crp, &allocated); in padlock_cipher_process()
218 if (allocated) { in padlock_cipher_process()
229 if (allocated) { in padlock_cipher_process()
/freebsd/contrib/pam-krb5/pam-util/
H A Dvector.c51 vector->allocated = 1; in vector_new()
105 vector->allocated = size; in vector_resize()
121 if (vector->count == vector->allocated) in vector_add()
122 if (!vector_resize(vector, vector->allocated + 1)) in vector_add()
227 if (vector->allocated < count && !vector_resize(vector, count)) in vector_split_multi()
266 if (vector->allocated == vector->count) in vector_exec()
284 if (vector->allocated == vector->count) in vector_exec_env()
/freebsd/krb5/lib/gssapi/
H A Derrmap.h59 size_t allocated; member
70 arr->allocated = 10; in mecherrmap__pairarray_init()
77 return arr->allocated; in mecherrmap__pairarray_size()
94 size_t oldsize = sizeof(*arr->elts) * arr->allocated; in mecherrmap__pairarray_grow()
100 if (newcount < arr->allocated) in mecherrmap__pairarray_grow()
111 arr->allocated = newcount; in mecherrmap__pairarray_grow()
118 if (idx < 0 || (unsigned long) idx >= arr->allocated) in mecherrmap__pairarray_getaddr()
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_allocator.cpp201 void *allocated; in MsanAllocate() local
204 allocated = allocator.Allocate(cache, size, alignment); in MsanAllocate()
208 allocated = allocator.Allocate(cache, size, alignment); in MsanAllocate()
210 if (UNLIKELY(!allocated)) { in MsanAllocate()
218 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in MsanAllocate()
221 if (allocator.FromPrimary(allocated)) in MsanAllocate()
222 __msan_clear_and_unpoison(allocated, size); in MsanAllocate()
224 __msan_unpoison(allocated, size); // Mem is already zeroed. in MsanAllocate()
226 __msan_poison(allocated, size); in MsanAllocate()
230 __msan_set_origin(allocated, size, o.raw_id()); in MsanAllocate()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_allocator.cpp108 void *allocated; in DFsanAllocate() local
111 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate()
115 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate()
117 if (UNLIKELY(!allocated)) { in DFsanAllocate()
125 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in DFsanAllocate()
128 internal_memset(allocated, 0, size); in DFsanAllocate()
129 dfsan_set_label(0, allocated, size); in DFsanAllocate()
131 dfsan_set_label(0, allocated, size); in DFsanAllocate()
133 return allocated; in DFsanAllocate()
/freebsd/contrib/pam-krb5/tests/fakepam/
H A Dlogging.c65 output->allocated = 1; in output_new()
82 if (output->count == output->allocated) { in output_add()
83 n = output->allocated + 1; in output_add()
86 output->allocated = n; in output_add()
/freebsd/crypto/heimdal/lib/ntlm/
H A Dntlm.c100 uint16_t allocated; member
223 CHECK(krb5_ret_uint16(sp, &buf->allocated), 0); in ret_sec_buffer()
234 CHECK(krb5_store_uint16(sp, buf->allocated), 0); in store_sec_buffer()
614 domain.allocated = domain.length; in heim_ntlm_encode_type1()
617 domain.allocated = 0; in heim_ntlm_encode_type1()
620 hostname.offset = domain.allocated + domain.offset; in heim_ntlm_encode_type1()
623 hostname.allocated = hostname.length; in heim_ntlm_encode_type1()
626 hostname.allocated = 0; in heim_ntlm_encode_type1()
763 targetname.allocated = targetname.length; in heim_ntlm_encode_type2()
765 targetinfo.offset = targetname.allocated + targetname.offset; in heim_ntlm_encode_type2()
[all …]
/freebsd/contrib/pam-krb5/tests/pam-util/
H A Dvector-t.c50 is_int(4, vector->allocated, "vector_resize works"); in main()
54 is_int(4, vector->allocated, "...and no reallocation when adding strings"); in main()
69 is_int(4, copy->allocated, "...and has right allocated count"); in main()
79 is_int(4, vector->allocated, "...but doesn't free the allocation"); in main()
106 is_int(3, vector->allocated, "...and doesn't free allocation"); in main()
/freebsd/contrib/googletest/googletest/samples/
H A Dsample10_unittest.cc60 static int allocated() { return allocated_; } in allocated() function in __anondf3407f30111::Water
76 initially_allocated_ = Water::allocated(); in OnTestStart()
81 int difference = Water::allocated() - initially_allocated_; in OnTestEnd()
/freebsd/sys/dev/ixl/
H A Dixl_pf_qmgr.c79 qmgr->qinfo[i].allocated = true; in ixl_pf_qmgr_alloc_contiguous()
118 if (!qmgr->qinfo[i].allocated) { in ixl_pf_qmgr_alloc_scattered()
121 qmgr->qinfo[i].allocated = true; in ixl_pf_qmgr_alloc_scattered()
170 if (!qmgr->qinfo[i].allocated) in ixl_pf_qmgr_get_num_free()
186 if (qmgr->qinfo[i].allocated) in ixl_pf_qmgr_get_first_free()
306 if (!qmgr->qinfo[i].allocated) { in ixl_pf_qmgr_find_free_contiguous_block()
/freebsd/contrib/jemalloc/src/
H A Dbase.c72 * in some consistent-but-allocated state. in base_unmap()
206 base->allocated += size; in base_extent_bump_alloc_post()
214 assert(base->allocated <= base->resident); in base_extent_bump_alloc_post()
322 base->allocated += sizeof(base_block_t); in base_extent_alloc()
332 assert(base->allocated <= base->resident); in base_extent_alloc()
352 * allocated using them. So we use some stack ehooks to bootstrap its in base_new()
388 base->allocated = sizeof(base_block_t); in base_new()
394 assert(base->allocated <= base->resident);
495 base_stats_get(tsdn_t *tsdn, base_t *base, size_t *allocated, size_t *resident,
500 assert(base->allocated <
481 base_stats_get(tsdn_t * tsdn,base_t * base,size_t * allocated,size_t * resident,size_t * mapped,size_t * n_thp) base_stats_get() argument
[all...]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/raidz/
H A Draidz_expand_003_neg.ksh97 allocated=$(zpool list -Hp -o allocated $pool)
98 log_must set_tunable64 RAIDZ_EXPAND_MAX_REFLOW_BYTES $((allocated / 4))
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_allocator.cpp205 void *allocated; in HwasanAllocate() local
207 allocated = allocator.Allocate(t->allocator_cache(), size, alignment); in HwasanAllocate()
211 allocated = allocator.Allocate(cache, size, alignment); in HwasanAllocate()
213 if (UNLIKELY(!allocated)) { in HwasanAllocate()
222 if (allocator.FromPrimary(allocated)) in HwasanAllocate()
223 internal_memset(allocated, 0, size); in HwasanAllocate()
226 internal_memset(allocated, flags()->malloc_fill_byte, fill_size); in HwasanAllocate()
229 u8 *tail = reinterpret_cast<u8 *>(allocated) + orig_size; in HwasanAllocate()
236 void *user_ptr = allocated; in HwasanAllocate()
245 u8 *short_granule = reinterpret_cast<u8 *>(allocated) + full_granule_size; in HwasanAllocate()
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DSSL_alloc_buffers.pod21 control when buffers are freed and allocated.
27 to control where and how buffers are allocated.
49 The SSL_alloc_buffers() function returns 1 if the buffers have been allocated.
50 This value is also returned if the buffers had been allocated before calling
/freebsd/contrib/ncurses/ncurses/tinfo/
H A Dcomp_scan.c198 static size_t allocated; in next_char() local
207 allocated = 0; in next_char()
234 if (used + (LEXBUFSIZ / 4) >= allocated) { in next_char()
235 allocated += (allocated + LEXBUFSIZ); in next_char()
236 result = typeRealloc(char, allocated, result); in next_char()
245 if (get_text(result + used, (int) (allocated - used))) { in next_char()
257 _nc_STRCAT(result, "\n", allocated); in next_char()
/freebsd/contrib/tcp_wrappers/
H A Denviron.c34 static int allocated = 0; /* environ is, or is not, allocated */ variable
151 envp = allocated ? in addenv()
157 allocated = 1; in addenv()
/freebsd/sys/contrib/device-tree/Bindings/powerpc/fsl/
H A Ddcsr.txt57 This node represents the region of DCSR space allocated to the EPU
107 This node represents the region of DCSR space allocated to the NPC
144 This node represents the region of DCSR space allocated to the NXC
168 This node represents the region of DCSR space allocated to
202 This node represents the region of DCSR space allocated to
231 This node represents the region of DCSR space allocated to
259 This node represents the region of DCSR space allocated to
291 This node represents the region of DCSR space allocated to
320 This node represents the region of DCSR space allocated to
349 This node represents the region of DCSR space allocated t
[all...]
/freebsd/sys/crypto/aesni/
H A Daesni.c325 aesni_cipher_alloc(struct cryptop *crp, int start, int length, bool *allocated) in aesni_cipher_alloc() argument
331 *allocated = false; in aesni_cipher_alloc()
336 *allocated = true; in aesni_cipher_alloc()
339 *allocated = false; in aesni_cipher_alloc()
622 bool encflag, allocated, authallocated, outallocated, outcopy; in aesni_cipher_crypt() local
626 allocated = false; in aesni_cipher_crypt()
629 crp->crp_payload_length, &allocated); in aesni_cipher_crypt()
658 if (allocated) in aesni_cipher_crypt()
673 outcopy = allocated; in aesni_cipher_crypt()
759 if (allocated) in aesni_cipher_crypt()

12345678910>>...22