Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 25 of 289) sorted by relevance

12345678910>>...12

/freebsd-13.1/contrib/unbound/util/
H A Dalloc.c106 memset(alloc, 0, sizeof(*alloc)); in alloc_init()
114 alloc->last_id |= alloc->next_id; in alloc_init()
122 prealloc_blocks(alloc, alloc->max_reg_blocks); in alloc_init()
125 lock_protect(&alloc->lock, alloc, sizeof(*alloc)); in alloc_init()
164 if(!alloc) in alloc_clear()
169 if(alloc->super && alloc->quar) { in alloc_clear()
176 alloc->super->quar = alloc->quar; in alloc_clear()
177 alloc->super->num_quar += alloc->num_quar; in alloc_clear()
201 (*alloc->cleanup)(alloc->cleanup_arg); in alloc_get_id()
204 alloc->next_id = (uint64_t)alloc->thread_num; in alloc_get_id()
[all …]
H A Dalloc.h107 void alloc_init(struct alloc_cache* alloc, struct alloc_cache* super,
116 void alloc_clear(struct alloc_cache* alloc);
124 void alloc_clear_special(struct alloc_cache* alloc);
132 alloc_special_type* alloc_special_obtain(struct alloc_cache* alloc);
140 void alloc_special_release(struct alloc_cache* alloc, alloc_special_type* mem);
148 uint64_t alloc_get_id(struct alloc_cache* alloc);
155 size_t alloc_get_mem(struct alloc_cache* alloc);
161 void alloc_stats(struct alloc_cache* alloc);
168 struct regional* alloc_reg_obtain(struct alloc_cache* alloc);
175 void alloc_reg_release(struct alloc_cache* alloc, struct regional* r);
[all …]
/freebsd-13.1/sys/dev/cxgbe/iw_cxgbe/
H A Did_table.c58 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last); in c4iw_id_alloc()
60 obj = find_first_zero_bit(alloc->table, alloc->max); in c4iw_id_alloc()
67 if (alloc->last >= alloc->max) in c4iw_id_alloc()
68 alloc->last = 0; in c4iw_id_alloc()
70 obj += alloc->start; in c4iw_id_alloc()
82 obj -= alloc->start; in c4iw_id_free()
95 alloc->start = start; in c4iw_id_table_alloc()
100 alloc->last = 0; in c4iw_id_table_alloc()
101 alloc->max = num; in c4iw_id_table_alloc()
105 if (!alloc->table) in c4iw_id_table_alloc()
[all …]
/freebsd-13.1/sys/dev/mthca/
H A Dmthca_allocator.c47 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last); in mthca_alloc()
49 alloc->top = (alloc->top + alloc->max) & alloc->mask; in mthca_alloc()
50 obj = find_first_zero_bit(alloc->table, alloc->max); in mthca_alloc()
55 obj |= alloc->top; in mthca_alloc()
73 alloc->last = min(alloc->last, obj); in mthca_free()
74 alloc->top = (alloc->top + alloc->max) & alloc->mask; in mthca_free()
88 alloc->last = 0; in mthca_alloc_init()
89 alloc->top = 0; in mthca_alloc_init()
90 alloc->max = num; in mthca_alloc_init()
91 alloc->mask = mask; in mthca_alloc_init()
[all …]
H A Dmthca_uar.c38 uar->index = mthca_alloc(&dev->uar_table.alloc); in mthca_uar_alloc()
49 mthca_free(&dev->uar_table.alloc, uar->index); in mthca_uar_free()
56 ret = mthca_alloc_init(&dev->uar_table.alloc, in mthca_init_uar_table()
65 mthca_alloc_cleanup(&dev->uar_table.alloc); in mthca_init_uar_table()
75 mthca_alloc_cleanup(&dev->uar_table.alloc); in mthca_cleanup_uar_table()
H A Dmthca_pd.c46 pd->pd_num = mthca_alloc(&dev->pd_table.alloc); in mthca_pd_alloc()
56 mthca_free(&dev->pd_table.alloc, pd->pd_num); in mthca_pd_alloc()
66 mthca_free(&dev->pd_table.alloc, pd->pd_num); in mthca_pd_free()
71 return mthca_alloc_init(&dev->pd_table.alloc, in mthca_init_pd_table()
80 mthca_alloc_cleanup(&dev->pd_table.alloc); in mthca_cleanup_pd_table()
/freebsd-13.1/contrib/subversion/subversion/libsvn_ra_serf/
H A Dmerge.c306 svn_ra_serf__add_open_tag_buckets(body, alloc, in svn_ra_serf__merge_lock_token_list()
346 serf_bucket_alloc_t *alloc, in create_merge_body() argument
353 body_bkt = serf_bucket_aggregate_create(alloc); in create_merge_body()
362 svn_ra_serf__add_cdata_len_buckets(body_bkt, alloc, in create_merge_body()
369 svn_ra_serf__add_empty_tag_buckets(body_bkt, alloc, in create_merge_body()
371 svn_ra_serf__add_empty_tag_buckets(body_bkt, alloc, in create_merge_body()
375 svn_ra_serf__add_empty_tag_buckets(body_bkt, alloc, in create_merge_body()
377 svn_ra_serf__add_empty_tag_buckets(body_bkt, alloc, in create_merge_body()
379 svn_ra_serf__add_empty_tag_buckets(body_bkt, alloc, in create_merge_body()
381 svn_ra_serf__add_empty_tag_buckets(body_bkt, alloc, in create_merge_body()
[all …]
H A Dlist.c171 serf_bucket_alloc_t *alloc, in create_list_body() argument
179 buckets = serf_bucket_aggregate_create(alloc); in create_list_body()
181 svn_ra_serf__add_open_tag_buckets(buckets, alloc, in create_list_body()
188 alloc); in create_list_body()
192 alloc); in create_list_body()
195 alloc); in create_list_body()
204 alloc); in create_list_body()
208 svn_ra_serf__add_empty_tag_buckets(buckets, alloc, in create_list_body()
220 svn_ra_serf__add_tag_buckets(buckets, "S:prop", name, alloc); in create_list_body()
223 svn_ra_serf__add_close_tag_buckets(buckets, alloc, in create_list_body()
H A Dget_deleted_rev.c94 serf_bucket_alloc_t *alloc, in create_getdrev_body() argument
101 buckets = serf_bucket_aggregate_create(alloc); in create_getdrev_body()
103 svn_ra_serf__add_open_tag_buckets(buckets, alloc, in create_getdrev_body()
111 alloc); in create_getdrev_body()
116 alloc); in create_getdrev_body()
121 alloc); in create_getdrev_body()
123 svn_ra_serf__add_close_tag_buckets(buckets, alloc, in create_getdrev_body()
H A Dgetlocationsegments.c116 serf_bucket_alloc_t *alloc, in create_gls_body() argument
123 buckets = serf_bucket_aggregate_create(alloc); in create_gls_body()
125 svn_ra_serf__add_open_tag_buckets(buckets, alloc, in create_gls_body()
132 alloc); in create_gls_body()
137 alloc); in create_gls_body()
142 alloc); in create_gls_body()
147 alloc); in create_gls_body()
149 svn_ra_serf__add_close_tag_buckets(buckets, alloc, in create_gls_body()
H A Dlog.c414 serf_bucket_alloc_t *alloc, in create_log_body() argument
421 buckets = serf_bucket_aggregate_create(alloc); in create_log_body()
423 svn_ra_serf__add_open_tag_buckets(buckets, alloc, in create_log_body()
431 alloc); in create_log_body()
435 alloc); in create_log_body()
441 alloc); in create_log_body()
446 svn_ra_serf__add_empty_tag_buckets(buckets, alloc, in create_log_body()
472 alloc); in create_log_body()
494 alloc); in create_log_body()
498 svn_ra_serf__add_empty_tag_buckets(buckets, alloc, in create_log_body()
[all …]
H A Dmergeinfo.c137 serf_bucket_alloc_t *alloc, in create_mergeinfo_body() argument
144 body_bkt = serf_bucket_aggregate_create(alloc); in create_mergeinfo_body()
146 svn_ra_serf__add_open_tag_buckets(body_bkt, alloc, in create_mergeinfo_body()
154 alloc); in create_mergeinfo_body()
157 alloc); in create_mergeinfo_body()
162 "yes", alloc); in create_mergeinfo_body()
175 this_path, alloc); in create_mergeinfo_body()
179 svn_ra_serf__add_close_tag_buckets(body_bkt, alloc, in create_mergeinfo_body()
H A Dgetlocations.c116 serf_bucket_alloc_t *alloc, in create_get_locations_body() argument
124 buckets = serf_bucket_aggregate_create(alloc); in create_get_locations_body()
126 svn_ra_serf__add_open_tag_buckets(buckets, alloc, in create_get_locations_body()
134 alloc); in create_get_locations_body()
138 alloc); in create_get_locations_body()
145 alloc); in create_get_locations_body()
148 svn_ra_serf__add_close_tag_buckets(buckets, alloc, in create_get_locations_body()
H A Drequest_body.c33 serf_bucket_alloc_t *alloc; member
117 if (!b->alloc) in request_body_stream_write()
118 b->alloc = serf_bucket_allocator_create(b->scratch_pool, in request_body_stream_write()
122 b->collect_bucket = serf_bucket_aggregate_create(b->alloc); in request_body_stream_write()
126 b->alloc)); in request_body_stream_write()
168 serf_bucket_alloc_t *alloc, in request_body_delegate() argument
181 *body_bkt = serf_bucket_file_create(b->file, alloc); in request_body_delegate()
187 NULL, NULL, alloc); in request_body_delegate()
H A Dcommit.c206 serf_bucket_alloc_t *alloc, in create_checkout_body() argument
213 body_bkt = serf_bucket_aggregate_create(alloc); in create_checkout_body()
225 svn_ra_serf__add_cdata_len_buckets(body_bkt, alloc, in create_checkout_body()
540 serf_bucket_alloc_t *alloc, in get_encoding_and_cdata() argument
574 serf_bucket_alloc_t *alloc, in write_prop_xml() argument
745 serf_bucket_alloc_t *alloc, in create_proppatch_body() argument
754 body_bkt = serf_bucket_aggregate_create(alloc); in create_proppatch_body()
880 serf_bucket_alloc_t *alloc, in create_empty_put_body() argument
1105 serf_bucket_alloc_t *alloc, in create_txn_post_body() argument
1396 serf_bucket_alloc_t *alloc, in create_delete_body() argument
[all …]
H A Dgetdate.c102 serf_bucket_alloc_t *alloc, in create_getdate_body() argument
109 buckets = serf_bucket_aggregate_create(alloc); in create_getdate_body()
111 svn_ra_serf__add_open_tag_buckets(buckets, alloc, "S:dated-rev-report", in create_getdate_body()
119 alloc); in create_getdate_body()
121 svn_ra_serf__add_close_tag_buckets(buckets, alloc, "S:dated-rev-report"); in create_getdate_body()
/freebsd-13.1/sys/contrib/zstd/lib/compress/
H A Dzstd_cwksp.h239 void* alloc; in ZSTD_cwksp_reserve_internal() local
249 alloc = (BYTE *)alloc - 2 * ZSTD_CWKSP_ASAN_REDZONE_SIZE; in ZSTD_cwksp_reserve_internal()
255 assert(alloc >= bottom); in ZSTD_cwksp_reserve_internal()
256 if (alloc < bottom) { in ZSTD_cwksp_reserve_internal()
264 ws->allocStart = alloc; in ZSTD_cwksp_reserve_internal()
269 alloc = (BYTE *)alloc + ZSTD_CWKSP_ASAN_REDZONE_SIZE; in ZSTD_cwksp_reserve_internal()
275 return alloc; in ZSTD_cwksp_reserve_internal()
300 void* alloc = ws->tableEnd; in ZSTD_cwksp_reserve_table() local
323 return alloc; in ZSTD_cwksp_reserve_table()
358 alloc = (BYTE *)alloc + ZSTD_CWKSP_ASAN_REDZONE_SIZE; in ZSTD_cwksp_reserve_object()
[all …]
/freebsd-13.1/crypto/openssh/
H A Dsshbuf.c40 buf->alloc > buf->max_size || in sshbuf_check_sanity()
41 buf->size > buf->alloc || in sshbuf_check_sanity()
75 ret->alloc = SSHBUF_SIZE_INIT; in sshbuf_new()
164 explicit_bzero(buf->d, buf->alloc); in sshbuf_free()
186 buf->alloc = SSHBUF_SIZE_INIT; in sshbuf_reset()
201 return buf->alloc; in sshbuf_alloc()
245 buf->alloc = rlen; in sshbuf_set_max_size()
248 if (max_size < buf->alloc) in sshbuf_set_max_size()
318 if (len + buf->size <= buf->alloc) in sshbuf_allocate()
329 rlen = buf->alloc + need; in sshbuf_allocate()
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/
H A DRenderScriptRuntime.cpp1333 if (!alloc) in CaptureScriptInvokeForEachMulti()
1336 if (alloc) { in CaptureScriptInvokeForEachMulti()
1439 if (alloc) in CaptureAllocationInit()
1875 if (!alloc->address.isValid() || !alloc->context.isValid()) { in JITTypePointer()
1910 if (!alloc->type_ptr.isValid() || !alloc->context.isValid()) { in JITTypePacked()
2177 if (!alloc->address.isValid() || !alloc->data_ptr.isValid()) { in JITAllocationStride()
2416 if (!alloc) in LoadAllocation()
2636 if (!alloc) in SaveAllocation()
3157 return alloc; in FindAllocByID()
3174 return alloc; in FindAllocByID()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Demangle/
H A DMicrosoftDemangle.cpp328 QN->Components = Arena.alloc<NodeArrayNode>(); in synthesizeQualifiedName()
367 Arena.alloc<RttiBaseClassDescriptorNode>(); in demangleRttiBaseClassDescriptorNode()
1572 NodeList *Head = Arena.alloc<NodeList>(); in demangleNameScopeChain()
1875 TTN = Arena.alloc<ThunkSignatureNode>(); in demangleFunctionEncoding()
1878 TTN = Arena.alloc<ThunkSignatureNode>(); in demangleFunctionEncoding()
2087 NodeList *Head = Arena.alloc<NodeList>(); in demangleArrayType()
2099 Tail->Next = Arena.alloc<NodeList>(); in demangleArrayType()
2125 NodeList *Head = Arena.alloc<NodeList>(); in demangleFunctionParameterList()
2140 *Current = Arena.alloc<NodeList>(); in demangleFunctionParameterList()
2148 *Current = Arena.alloc<NodeList>(); in demangleFunctionParameterList()
[all …]
/freebsd-13.1/contrib/ntp/sntp/libevent/
H A Devthread.c93 if (target->alloc) in evthread_set_lock_callbacks()
99 if (target->alloc) { in evthread_set_lock_callbacks()
103 target->alloc == cbs->alloc && in evthread_set_lock_callbacks()
114 if (cbs->alloc && cbs->free && cbs->lock && cbs->unlock) { in evthread_set_lock_callbacks()
179 if (original_lock_fns_.alloc) { in debug_lock_alloc()
180 if (!(result->lock = original_lock_fns_.alloc( in debug_lock_alloc()
353 if (!enable_locks && original_lock_fns_.alloc == NULL) { in evthread_setup_global_lock_()
380 return evthread_lock_fns_.alloc(locktype); in evthread_setup_global_lock_()
388 lock->lock = original_lock_fns_.alloc( in evthread_setup_global_lock_()
409 return evthread_lock_fns_.alloc ? in evthreadimpl_lock_alloc_()
[all …]
/freebsd-13.1/contrib/libevent/
H A Devthread.c106 if (target->alloc) in evthread_set_lock_callbacks()
112 if (target->alloc) { in evthread_set_lock_callbacks()
116 target->alloc == cbs->alloc && in evthread_set_lock_callbacks()
127 if (cbs->alloc && cbs->free && cbs->lock && cbs->unlock) { in evthread_set_lock_callbacks()
200 if (original_lock_fns_.alloc) { in debug_lock_alloc()
201 if (!(result->lock = original_lock_fns_.alloc( in debug_lock_alloc()
374 if (!enable_locks && original_lock_fns_.alloc == NULL) { in evthread_setup_global_lock_()
401 return evthread_lock_fns_.alloc(locktype); in evthread_setup_global_lock_()
409 lock->lock = original_lock_fns_.alloc( in evthread_setup_global_lock_()
437 return evthread_lock_fns_.alloc ? in evthreadimpl_lock_alloc_()
[all …]
/freebsd-13.1/crypto/heimdal/kadmin/
H A Dadd-random-users.c45 unsigned n, alloc; in read_words() local
54 alloc = n = 0; in read_words()
59 if (n >= alloc) { in read_words()
60 alloc = max(alloc + 16, alloc * 2); in read_words()
61 w = erealloc (w, alloc * sizeof(char **)); in read_words()
/freebsd-13.1/crypto/heimdal/kuser/
H A Dgenerate-requests.c39 unsigned n, alloc; in read_words() local
47 alloc = n = 0; in read_words()
50 if (n >= alloc) { in read_words()
51 alloc += 16; in read_words()
52 w = erealloc (w, alloc * sizeof(char **)); in read_words()
/freebsd-13.1/contrib/unbound/services/cache/
H A Drrset.c61 struct alloc_cache* alloc) in rrset_cache_create() argument
69 ub_rrset_key_delete, rrset_data_delete, alloc); in rrset_cache_create()
83 struct config_file* cfg, struct alloc_cache* alloc) in rrset_cache_adjust() argument
89 r = rrset_cache_create(cfg, alloc); in rrset_cache_adjust()
174 uint64_t newid = alloc_get_id(alloc); in rrset_update_id()
187 struct alloc_cache* alloc, time_t timenow) in rrset_cache_update() argument
213 ub_packed_rrset_parsedelete(k, alloc); in rrset_cache_update()
235 rrset_update_id(ref, alloc); in rrset_cache_update()
244 struct alloc_cache* alloc, time_t timenow) in rrset_cache_update_wildcard() argument
248 rrset = packed_rrset_copy_alloc(rrset, alloc, timenow); in rrset_cache_update_wildcard()
[all …]

12345678910>>...12