/freebsd-11-stable/sys/dev/cxgbe/iw_cxgbe/ |
H A D | id_table.c | 49 u32 c4iw_id_alloc(struct c4iw_id_table *alloc) argument 54 spin_lock_irqsave(&alloc->lock, flags); 56 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last); 57 if (obj >= alloc->max) 58 obj = find_first_zero_bit(alloc->table, alloc->max); 60 if (obj < alloc->max) { 61 if (alloc 76 c4iw_id_free(struct c4iw_id_table *alloc, u32 obj) argument 88 c4iw_id_table_alloc(struct c4iw_id_table *alloc, u32 start, u32 num, u32 reserved, u32 flags) argument 114 c4iw_id_table_free(struct c4iw_id_table *alloc) argument [all...] |
/freebsd-11-stable/contrib/unbound/util/ |
H A D | alloc.c | 2 * util/alloc.c - memory allocation service. 43 #include "util/alloc.h" 64 * @param alloc: the structure to fill up. 67 prealloc_setup(struct alloc_cache* alloc) argument 78 alloc_set_special_next(p, alloc->quar); 79 alloc->quar = p; 80 alloc->num_quar++; 86 prealloc_blocks(struct alloc_cache* alloc, size_t num) argument 96 r->next = (char*)alloc->reg_list; 97 alloc 103 alloc_init(struct alloc_cache* alloc, struct alloc_cache* super, int thread_num) argument 131 alloc_clear_special_list(struct alloc_cache* alloc) argument 146 alloc_clear_special(struct alloc_cache* alloc) argument 160 alloc_clear(struct alloc_cache* alloc) argument 195 alloc_get_id(struct alloc_cache* alloc) argument 214 alloc_special_obtain(struct alloc_cache* alloc) argument 254 pushintosuper(struct alloc_cache* alloc, alloc_special_type* mem) argument 279 alloc_special_release(struct alloc_cache* alloc, alloc_special_type* mem) argument 304 alloc_stats(struct alloc_cache* alloc) argument 310 alloc_get_mem(struct alloc_cache* alloc) argument 329 alloc_reg_obtain(struct alloc_cache* alloc) argument 342 alloc_reg_release(struct alloc_cache* alloc, struct regional* r) argument 357 alloc_set_id_cleanup(struct alloc_cache* alloc, void (*cleanup)(void*), void* arg) argument [all...] |
H A D | alloc.h | 2 * util/alloc.h - memory allocation service. 101 * Init alloc (zeroes the struct). 102 * @param alloc: this parameter is allocated by the caller. 104 * Pass this argument NULL to init the toplevel alloc structure. 107 void alloc_init(struct alloc_cache* alloc, struct alloc_cache* super, 111 * Free the alloc. Pushes all the cached items into the super structure. 112 * Or deletes them if alloc->super is NULL. 113 * Does not free the alloc struct itself (it was also allocated by caller). 114 * @param alloc: is almost zeroed on exit (except some stats). 116 void alloc_clear(struct alloc_cache* alloc); [all...] |
/freebsd-11-stable/contrib/gcc/ |
H A D | vec.c | 40 unsigned alloc; member in struct:vec_prefix 50 unsigned alloc = 0; local 57 alloc = pfx->alloc; 66 gcc_assert (alloc - num < (unsigned) reserve); 70 alloc = num + reserve; 74 if (!alloc) 75 alloc = 4; 76 else if (alloc < 16) 78 alloc 101 unsigned alloc = alloc = calculate_allocation (pfx, reserve, exact); local 173 unsigned alloc = calculate_allocation (pfx, reserve, exact); local [all...] |
/freebsd-11-stable/contrib/llvm-project/lld/Common/ |
H A D | Memory.cpp | 19 for (SpecificAllocBase *alloc : SpecificAllocBase::instances) 20 alloc->reset();
|
/freebsd-11-stable/sys/dev/mthca/ |
H A D | mthca_pd.c | 46 pd->pd_num = mthca_alloc(&dev->pd_table.alloc); 56 mthca_free(&dev->pd_table.alloc, pd->pd_num); 66 mthca_free(&dev->pd_table.alloc, pd->pd_num); 71 return mthca_alloc_init(&dev->pd_table.alloc, 80 mthca_alloc_cleanup(&dev->pd_table.alloc);
|
H A D | mthca_uar.c | 38 uar->index = mthca_alloc(&dev->uar_table.alloc); 49 mthca_free(&dev->uar_table.alloc, uar->index); 56 ret = mthca_alloc_init(&dev->uar_table.alloc, 65 mthca_alloc_cleanup(&dev->uar_table.alloc); 75 mthca_alloc_cleanup(&dev->uar_table.alloc);
|
H A D | mthca_allocator.c | 40 u32 mthca_alloc(struct mthca_alloc *alloc) argument 45 spin_lock_irqsave(&alloc->lock, flags); 47 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last); 48 if (obj >= alloc->max) { 49 alloc->top = (alloc->top + alloc->max) & alloc 64 mthca_free(struct mthca_alloc *alloc, u32 obj) argument 79 mthca_alloc_init(struct mthca_alloc *alloc, u32 num, u32 mask, u32 reserved) argument 105 mthca_alloc_cleanup(struct mthca_alloc *alloc) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/lld/COFF/ |
H A D | TypeMerger.h | 22 TypeMerger(llvm::BumpPtrAllocator &alloc) argument 23 : typeTable(alloc), iDTable(alloc), globalTypeTable(alloc), 24 globalIDTable(alloc) {}
|
/freebsd-11-stable/contrib/llvm-project/lld/include/lld/Common/ |
H A D | Memory.h | 46 void reset() override { alloc.DestroyAll(); } 47 llvm::SpecificBumpPtrAllocator<T> alloc; member in struct:lld::SpecificAlloc 53 static SpecificAlloc<T> alloc; local 54 return new (alloc.alloc.Allocate()) T(std::forward<U>(args)...);
|
/freebsd-11-stable/contrib/subversion/subversion/libsvn_ra_serf/ |
H A D | merge.c | 300 serf_bucket_alloc_t *alloc, 308 svn_ra_serf__add_open_tag_buckets(body, alloc, 330 svn_ra_serf__add_open_tag_buckets(body, alloc, "S:lock", SVN_VA_NULL); 332 svn_ra_serf__add_open_tag_buckets(body, alloc, "lock-path", SVN_VA_NULL); 333 svn_ra_serf__add_cdata_len_buckets(body, alloc, path.data, path.len); 334 svn_ra_serf__add_close_tag_buckets(body, alloc, "lock-path"); 336 svn_ra_serf__add_tag_buckets(body, "lock-token", val, alloc); 338 svn_ra_serf__add_close_tag_buckets(body, alloc, "S:lock"); 341 svn_ra_serf__add_close_tag_buckets(body, alloc, "S:lock-token-list"); 348 serf_bucket_alloc_t *alloc, 295 svn_ra_serf__merge_lock_token_list(apr_hash_t *lock_tokens, const char *parent, serf_bucket_t *body, serf_bucket_alloc_t *alloc, apr_pool_t *pool) argument 344 create_merge_body(serf_bucket_t **bkt, void *baton, serf_bucket_alloc_t *alloc, apr_pool_t *pool , apr_pool_t *scratch_pool) argument [all...] |
H A D | get_deleted_rev.c | 97 serf_bucket_alloc_t *alloc, 104 buckets = serf_bucket_aggregate_create(alloc); 106 svn_ra_serf__add_open_tag_buckets(buckets, alloc, 114 alloc); 119 alloc); 124 alloc); 126 svn_ra_serf__add_close_tag_buckets(buckets, alloc, 92 create_getdrev_body(serf_bucket_t **body_bkt, void *baton, serf_bucket_alloc_t *alloc, apr_pool_t *pool , apr_pool_t *scratch_pool) argument
|
H A D | request_body.c | 33 serf_bucket_alloc_t *alloc; member in struct:svn_ra_serf__request_body_t 117 if (!b->alloc) 118 b->alloc = serf_bucket_allocator_create(b->scratch_pool, 122 b->collect_bucket = serf_bucket_aggregate_create(b->alloc); 126 b->alloc)); 168 serf_bucket_alloc_t *alloc, 181 *body_bkt = serf_bucket_file_create(b->file, alloc); 187 NULL, NULL, alloc); 166 request_body_delegate(serf_bucket_t **body_bkt, void *baton, serf_bucket_alloc_t *alloc, apr_pool_t *request_pool, apr_pool_t *scratch_pool) argument
|
H A D | mergeinfo.c | 138 serf_bucket_alloc_t *alloc, 145 body_bkt = serf_bucket_aggregate_create(alloc); 147 svn_ra_serf__add_open_tag_buckets(body_bkt, alloc, 155 alloc); 158 alloc); 163 "yes", alloc); 176 this_path, alloc); 180 svn_ra_serf__add_close_tag_buckets(body_bkt, alloc, 135 create_mergeinfo_body(serf_bucket_t **bkt, void *baton, serf_bucket_alloc_t *alloc, apr_pool_t *pool , apr_pool_t *scratch_pool) argument
|
H A D | getlocationsegments.c | 118 serf_bucket_alloc_t *alloc, 125 buckets = serf_bucket_aggregate_create(alloc); 127 svn_ra_serf__add_open_tag_buckets(buckets, alloc, 134 alloc); 139 alloc); 144 alloc); 149 alloc); 151 svn_ra_serf__add_close_tag_buckets(buckets, alloc, 114 create_gls_body(serf_bucket_t **body_bkt, void *baton, serf_bucket_alloc_t *alloc, apr_pool_t *pool , apr_pool_t *scratch_pool) argument
|
/freebsd-11-stable/sys/dev/drm/ |
H A D | sis_ds.c | 55 set->alloc = -1; 72 set->list[free].alloc_next = set->alloc; 73 set->alloc = free; 81 int alloc = set->alloc; local 84 while (alloc != -1) { 85 if (set->list[alloc].val == item) { 88 set->list[alloc].alloc_next; 90 set->alloc = set->list[alloc] [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Process/Darwin/ |
H A D | CFBundle.cpp | 38 CFAllocatorRef alloc = kCFAllocatorDefault; local 48 alloc, cf_path.get(), kCFURLPOSIXPathStyle, true)); 50 reset(::CFBundleCreate(alloc, m_bundle_url.get()));
|
/freebsd-11-stable/crypto/openssh/ |
H A D | sshbuf.c | 41 buf->alloc > buf->max_size || 42 buf->size > buf->alloc || 76 ret->alloc = SSHBUF_SIZE_INIT; 81 if ((ret->cd = ret->d = calloc(1, ret->alloc)) == NULL) { 96 ret->alloc = ret->size = ret->max_size = len; 138 ret->alloc = SSHBUF_SIZE_INIT; 143 if ((ret->cd = ret->d = calloc(1, ret->alloc)) == NULL) 144 ret->alloc = 0; 178 explicit_bzero(buf->d, buf->alloc); 197 explicit_bzero(buf->d, buf->alloc); [all...] |
/freebsd-11-stable/sys/sys/ |
H A D | _unrhdr.h | 43 u_int alloc; /* Count of memory allocations */ member in struct:unrhdr
|
/freebsd-11-stable/share/doc/papers/kernmalloc/ |
H A D | Makefile | 7 EXTRA= alloc.fig usage.tbl
|
/freebsd-11-stable/contrib/unbound/services/cache/ |
H A D | rrset.h | 64 * @param alloc: initial default rrset key allocation. 68 struct alloc_cache* alloc); 82 * @param alloc: initial default rrset key allocation. 86 struct config_file* cfg, struct alloc_cache* alloc); 125 * @param alloc: how to allocate (and deallocate) the special rrset key. 134 struct alloc_cache* alloc, time_t timenow); 147 * @param alloc: how to allocate (and deallocate) the special rrset key. 152 struct alloc_cache* alloc, time_t timenow);
|
/freebsd-11-stable/crypto/heimdal/kuser/ |
H A D | generate-requests.c | 39 unsigned n, alloc; local 47 alloc = n = 0; 50 if (n >= alloc) { 51 alloc += 16; 52 w = erealloc (w, alloc * sizeof(char **));
|
/freebsd-11-stable/contrib/jemalloc/include/jemalloc/ |
H A D | jemalloc_typedefs.h | 50 chunk_alloc_t *alloc; member in struct:__anon1802
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_symbolizer_libbacktrace.h | 33 static LibbacktraceSymbolizer *get(LowLevelAllocator *alloc);
|
/freebsd-11-stable/contrib/libstdc++/include/ext/pb_ds/detail/ |
H A D | map_debug_base.hpp | 154 __gnu_cxx::throw_allocator<char> alloc; local 155 const double orig_throw_prob = alloc.get_throw_prob(); 156 alloc.set_throw_prob(0); 172 alloc.set_throw_prob(orig_throw_prob); 313 __gnu_cxx::throw_allocator<char> alloc; local 314 const double orig_throw_prob = alloc.get_throw_prob(); 315 alloc.set_throw_prob(0); 326 alloc.set_throw_prob(orig_throw_prob); 334 __gnu_cxx::throw_allocator<char> alloc; local 335 const double orig_throw_prob = alloc [all...] |